﻿/*=========================================================
    SIL Repair360 Layout
=========================================================*/


:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --header: #0F2347;
    --background: #F5F7FB;
    --card: #FFFFFF;
    --text: #1F2937;
    --text-light: #6B7280;
    --border: #E5E7EB;
    --shadow-sm: 0 2px 8px rgba(15,23,42,.05);
    --shadow-md: 0 8px 24px rgba(15,23,42,.08);
    --shadow-lg: 0 20px 45px rgba(15,23,42,.12);
}

/*=========================================================
Body
=========================================================*/

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.app-body {
    margin: 0;
    font-family: 'Inter',sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/*=========================================================
Header
=========================================================*/

.app-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--header);
    height: 76px;
    box-shadow: var(--shadow-md);
}

/*=========================================================
Header Container
=========================================================*/

.header-container {
    max-width: 1700px;
    margin: auto;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
}

/*=========================================================
Brand
=========================================================*/

.brand-section {
    display: flex;
    align-items: center;
    min-width: 290px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg,#3B82F6,#2563EB);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .5px;
    box-shadow: 0 10px 20px rgba(37,99,235,.30);
}

.brand-details {
    margin-left: 15px;
}

.app-name {
    color: #fff;
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.3px;
}

.app-tagline {
    margin-top: 5px;
    color: #FFFFFF;
    font-size: 12px;
}

/*=========================================================
Navigation
=========================================================*/

.main-navigation {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
}

/*=========================================================
Navigation Links
=========================================================*/

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 76px;
    padding: 0 18px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: .25s;
    white-space: nowrap;
}

    .nav-link:hover {
        color: #fff;
    }

    .nav-link::after {
        content: "";
        position: absolute;
        left: 18px;
        right: 18px;
        bottom: 0;
        height: 4px;
        border-radius: 30px;
        background: transparent;
        transition: .25s;
    }

    .nav-link:hover::after {
        background: rgba(255,255,255,.18);
    }

    .nav-link.active {
        color: #FFFFFF !important;
        font-weight: 900;
    }

        .nav-link.active::after {
            background: #FFFFFF;
            height: 3px;
            border-radius: 999px;
        }

/*=========================================================
Dropdown
=========================================================*/

.nav-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-arrow {
    margin-left: 8px;
    font-size: 12px;
    transition: .25s;
}

.nav-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

/*=========================================================
    Premium Mega Dropdown
=========================================================*/

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    width: 760px;
    background: #FFFFFF;
    border: 1px solid #E8ECF3;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 12px 30px rgba(15,23,42,.08), 0 30px 70px rgba(15,23,42,.10);
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    z-index: 9999;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

/*=========================================================
Header
=========================================================*/

.dropdown-header {
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #EEF2F7;
}

    .dropdown-header h5 {
        margin: 0;
        font-size: 19px;
        font-weight: 700;
        color: #111827;
    }

    .dropdown-header p {
        margin-top: 6px;
        margin-bottom: 0;
        color: #6B7280;
        font-size: 14px;
        line-height: 1.5;
    }

/*=========================================================
Grid
=========================================================*/

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 14px;
}

/*=========================================================
Items
=========================================================*/

.dropdown-item {
    display: block;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 16px 18px;
    transition: all .22s ease;
    background: #FFFFFF;
}

    .dropdown-item:hover {
        background: #F8FAFD;
        border-color: #D8E5FF;
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(37,99,235,.08);
    }

.item-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.dropdown-item:hover .item-title {
    color: #2563EB;
}

.item-desc {
    display: block;
    font-size: 13px;
    color: #6B7280;
    line-height: 1.55;
}

/*=========================================================
Nice little top accent
=========================================================*/

.dropdown-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient( 90deg, #2563EB, #3B82F6, #60A5FA );
}
/*=========================================================
Profile Section
=========================================================*/

.profile-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: 260px;
}

.profile-divider {
    width: 1px;
    height: 42px;
    background: rgba(255,255,255,.12);
}

.profile-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    padding: 8px 0;
    transition: .25s;
}

    .profile-details:hover {
        opacity: .9;
    }

.profile-name {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1;
}

.profile-role {
    margin-top: 5px;
    font-size: 12px;
    color: #AFC3E8;
    font-weight: 400;
}

/*=========================================================
Main Content
=========================================================*/

.main-content {
    flex: 1;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 28px 32px 80px;
}

    .main-content .container-fluid {
        padding: 0;
    }

/*=========================================================
Footer
=========================================================*/

.app-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 48px;
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    z-index: 900;
}

.footer-container {
    max-width: 1700px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    font-size: 13px;
    color: #6B7280;
}

    .footer-container strong {
        color: #374151;
        font-weight: 600;
    }

.footer-separator {
    margin: 0 10px;
    color: #D1D5DB;
}

/*=========================================================
General Links
=========================================================*/

a {
    transition: .2s ease;
}

/*=========================================================
Selection
=========================================================*/

::selection {
    background: #2563EB;
    color: #FFFFFF;
}

/*=========================================================
Scrollbar
=========================================================*/

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background: #C5CEDA;
    border-radius: 20px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #94A3B8;
    }
