/* =========================================================
   RFORCAR NAVBAR
   ========================================================= */

.rfc-navbar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e9e9e9;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.rfc-navbar-inner {
    min-height: 70px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;

    display: flex;
    align-items: center;
    gap: 20px;
}


/* Menu button */

.rfc-menu-btn {
    display: none;

    border: 0;
    background: transparent;

    font-size: 21px;
    cursor: pointer;

    padding: 8px;
}


/* Logo */

.rfc-logo {
    display: flex;
    flex-direction: column;

    text-decoration: none;

    min-width: 145px;
}

.rfc-logo-name {
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    color: #111827;
}

.rfc-logo-tagline {
    margin-top: 4px;

    font-size: 10px;
    font-weight: 600;

    color: #6b7280;
    letter-spacing: .4px;
}

.rforcar-logo {
    display: flex;
    flex: 0 1 182px;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.rforcar-logo img {
    display: block;
    width: 182px;
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}


/* Search */

.rfc-search-form {
    flex: 1;

    max-width: 500px;

    height: 44px;

    display: flex;
    align-items: center;

    background: #f5f6f8;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    overflow: hidden;
}

.rfc-search-form i {
    margin-left: 14px;
    color: #6b7280;
}

.rfc-search-form input {
    flex: 1;

    height: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    padding: 0 12px;

    font-size: 14px;
}

.rfc-search-form button {
    height: 100%;

    border: 0;

    padding: 0 18px;

    background: #111827;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}


/* Navigation */

.rfc-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rfc-nav-links a {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 10px 12px;

    color: #374151;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    border-radius: 8px;
}

.rfc-nav-links a:hover {
    background: #f3f4f6;
    color: #111827;
}

.rfc-navbar-notification {
    position: relative;
    display: grid;
    flex: 0 0 80px;
    margin-left: auto;
    width: 80px;
    height: 80px;
    place-items: center;
    border-radius: 50%;
    color: #374151;
    font-size: 40px;
    text-decoration: none;
}

.rfc-navbar-notification:hover {
    background: #f3f4f6;
    color: #111827;
}

.rfc-navbar-notification:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.rfc-navbar-notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    line-height: 17px;
    text-align: center;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

#sidebar-wrapper {
    width: 280px;

    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    z-index: 2000;

    background: #ffffff;

    border-right: 1px solid #e5e7eb;

    transform: translateX(-100%);

    transition: transform .25s ease;
}

.sidebar-open #sidebar-wrapper {
    transform: translateX(0);
}

.rfc-sidebar {
    height: 100%;

    display: flex;
    flex-direction: column;
}


/* Sidebar header */

.rfc-sidebar-header {
    min-height: 76px;

    padding: 15px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #eeeeee;
}

.rfc-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.rfc-sidebar-logo {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #111827;
    color: #ffffff;
}

.rfc-sidebar-title {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
}

.rfc-sidebar-subtitle {
    font-size: 10px;
    color: #6b7280;
}

.rfc-sidebar-close {
    border: 0;
    background: transparent;

    font-size: 20px;

    cursor: pointer;
}


/* Sidebar search */

.rfc-sidebar-search {
    padding: 18px;
}

.rfc-sidebar-search-box {
    height: 43px;

    display: flex;
    align-items: center;

    background: #f5f6f8;

    border: 1px solid #e5e7eb;

    border-radius: 9px;

    padding: 0 12px;
}

.rfc-sidebar-search-box i {
    color: #6b7280;
}

.rfc-sidebar-search-box input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    padding-left: 9px;

    font-size: 13px;
}


/* Sidebar links */

.rfc-sidebar-menu {
    padding: 5px 12px;
}

.rfc-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 13px;

    margin-bottom: 4px;

    border-radius: 9px;

    color: #374151;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}

.rfc-sidebar-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.rfc-sidebar-icon {
    width: 24px;

    text-align: center;

    color: #6b7280;
}

.rfc-sidebar-bottom {
    margin-top: auto;

    padding: 12px;

    border-top: 1px solid #eeeeee;
}

.rfc-logout-link {
    color: #dc2626;
}

.rfc-logout-link .rfc-sidebar-icon {
    color: #dc2626;
}


/* Overlay */

#sidebar-overlay {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .35);

    z-index: 1900;
}

.sidebar-open #sidebar-overlay {
    display: block;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .rfc-navbar-inner {
        padding: 10px 14px;
        gap: 10px;
        box-sizing: border-box;
    }

    .rforcar-logo {
        flex: 0 1 156px;
        overflow: hidden;
    }

    .rforcar-logo img {
        width: 156px;
        max-height: 52px;
    }

    .rfc-menu-btn {
        display: block;
    }

    .rfc-logo {
        min-width: auto;
    }

    .rfc-logo-name {
        font-size: 21px;
    }

    .rfc-logo-tagline {
        display: none;
    }

    .rfc-search-form {
        max-width: none;
    }

    .rfc-search-form button {
        display: none;
    }

    .rfc-nav-links {
        display: none;
    }

}

@media (max-width: 480px) {

    .rfc-search-form {
        height: 40px;
    }

    .rfc-search-form input {
        font-size: 13px;
    }

    .rfc-navbar-inner {
        gap: 7px;
    }

}