﻿/* ──────────────────────────────── */
/* GLOBAL BASE STYLES              */
/* ──────────────────────────────── */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

h1, h2, h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    margin-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

h2 {
    font-size: 1.8em;
}

h3 {
    font-size: 1.4em;
    color: #34495e;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ──────────────────────────────── */
/* DASHBOARD TILE GRID             */
/* ──────────────────────────────── */

.dashboard-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding: 0 20px;
}

.dashboard-card {
    width: 280px;
    height: 220px;
    background-color: #ffffff;
    border: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .dashboard-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    }

    .dashboard-card img {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }

/* ──────────────────────────────── */
/* DASHBOARD LINK (TOP RIGHT)      */
/* ──────────────────────────────── */

.dashboard-nav {
    position: absolute;
    top: 10px;
    right: 30px;
    z-index: 1000;
}

.dashboard-link {
    color: #1f2937;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95em;
    background-color: transparent;
    border: none;
}

    .dashboard-link i {
        margin-right: 6px;
        font-size: 1.2em;
        color: #3b82f6;
    }

/* ──────────────────────────────── */
/* HEADER STRIP                    */
/* ──────────────────────────────── */

.header-strip {
    position: relative;
    background-color: #dbeafe;
    padding: 15px 20px;
    border-left: 6px solid #3b82f6;
    border-radius: 8px;
    margin-bottom: 25px;
    min-height: 80px;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-text {
    flex-grow: 1;
}

.header-strip h2 {
    margin: 0;
    color: #1e3a8a;
}

.header-strip p {
    margin-top: 5px;
    color: #374151;
    font-size: 1.1em;
}

.header-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

/* ──────────────────────────────── */
/* BOTTOM NAVIGATION               */
/* ──────────────────────────────── */

.bottom-nav-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    border-top: 1px solid #ccc;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}

    .bottom-nav a {
        text-align: center;
        flex-grow: 1;
        color: #374151;
        font-size: 0.85em;
        text-decoration: none;
    }

    .bottom-nav i {
        display: block;
        font-size: 1.4em;
        margin-bottom: 4px;
    }

/*----------------------------------------------------------/
    /           MANUAL ENTRY FORM                   /
/---------------------------------------------------------*/

.add-manual-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 0.95em;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 20px;
}

    .add-manual-btn i {
        margin-right: 6px;
        font-size: 1.2em;
    }

.manual-entry-form {
    background-color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        font-weight: 500;
        margin-bottom: 6px;
    }

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.submit-manual-btn {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 0.95em;
    border-radius: 6px;
    cursor: pointer;
}

/*------------------Manual Viewer Tree Styling--------------------*/

.manufacturer-block {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    padding: 0.75rem;
    background-color: #fff;
    border-radius: 6px;
}

.manufacturer-toggle,
.category-toggle {
    background: none;
    border: none;
    color: #055ca3;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    text-align: left;
    margin-top: 10px;
}

    .manufacturer-toggle i,
    .category-toggle i {
        color: #055ca3;
        margin-right: 0.5rem;
        font-size: 1.2rem;
    }

.manufacturer-name {
    color: #055ca3;
    font-weight: 600;
    font-size: 1.1rem;
}

.category-name {
    color: #055ca3;
    font-weight: 600;
    font-size: 1rem;
}

.manual-item {
    margin-left: 2rem; /* Indent part under category */
    margin-bottom: 0.25rem;
}

.part-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.15rem 0;
}

.toggle-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    color: #055ca3;
    vertical-align: middle;
}

.part-text {
    color: #055ca3;
    font-weight: 600;
    font-size: 0.95rem;
}

.manual-list {
    margin-left: 2rem; /* Indent manuals under part */
    margin-top: 0.5rem;
}

    .manual-list ul {
        list-style-type: none; /* Remove bullet dots */
        padding-left: 0;
        margin-top: 0.25rem;
    }

.manual-link,
.manual-item a {
    color: #055ca3;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    padding: 0.1rem 0;
}

    .manual-link:hover,
    .manual-item a:hover {
        text-decoration: underline;
    }

/*===================Contacts.cshtml Styling=====================*/
.add-contact-button {
    background-color: #055ca3;
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 1rem;
}

    .add-contact-button i {
        margin-right: 0.5rem;
        font-size: 1.2rem;
    }

.contact-entry-form {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 6px;
    max-width: 500px;
}

.form-group {
    margin-bottom: 0.75rem;
}

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 0.25rem;
        color: #333;
    }

    .form-group input {
        width: 100%;
        padding: 0.4rem;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

.submit-contact-button {
    background-color: #055ca3;
    color: white;
    font-weight: bold;
    padding: 0.4rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.toggle-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    margin-bottom: 5px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

.contact-details {
    margin-left: 15px;
    margin-bottom: 10px;
}

.contractor-header {
    display: inline-block;
    cursor: pointer;
    font-size: 16px;
    color: #0056b3;
    font-weight: 600;
}



.contractor-name {
    color: #0056b3; /* Strong medium blue */
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.3px;
}

.toggle-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 16px;
    vertical-align: middle;
}

.job-assignment {
    font-size: 1.2rem;
    line-height: 2.0;
}