/* =====================================================
   LOGO
===================================================== */
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
}

.site-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.logo-link:hover {
    color: #ffffff;
    text-decoration: none;
}


/* =====================================================
   ROOT VARIABLES
===================================================== */
:root {
    --header-height: 65px;
    --footer-height: 38px;

    --header-bg: #1A0A00;

    --sidebar-width: 200px;
    --sidebar-clr: #ffffff;

    --txt-color: #222222;

    /* --blue-color: #f5d8d3; */
    --active-color: #1e40af;

    --white-color: #ffffff;

    --grey-color: #666666;
    --grey-color-light: #eeeeee;

    --icon-color: #ffffff;
    --color-light: #777777;

    --footer-bg: #000000;

    --z-header: 1000;
    --z-sidebar: 900;
    --z-dropdown: 9999;
}


/* =====================================================
   GLOBAL RESET
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", "Segoe UI", sans-serif;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background-color: #c6c3c3;
    color: var(--txt-color);
    padding-top: var(--header-height);
    overflow-x: hidden;
}

a {
    color: var(--blue-color);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}


/* =====================================================
   HEADER / NAVBAR
===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--header-bg);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 25px;
    z-index: var(--z-header);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}


/* HEADER LEFT */
.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.header-left h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 600;
    white-space: nowrap;
}

.header-left h2 a {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* MOBILE MENU BUTTON */
#sidebarOpen {
    display: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    flex-shrink: 0;
}


/* HEADER CENTER */
.header-center {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.header-center span {
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
}


/* NAVBAR RIGHT CONTENT */
.navbar_content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.navbar_content a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.navbar_content a:hover {
    color: #dddddd;
    text-decoration: none;
}


/* WELCOME USER */
.welcome-user {
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
}


/* PROFILE IMAGE */
.header_img {
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    flex-shrink: 0;
}

.header_img img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: block;
}


/* PROFILE DROPDOWN */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 48px;
    min-width: 180px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.20);
    overflow: hidden;
    z-index: var(--z-dropdown);
}

.dropdown-content a {
    display: block;
    width: 100%;
    padding: 11px 15px;
    color: #222222 !important;
    background-color: #ffffff;
    text-decoration: none !important;
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #f2f2f2;
    color: var(--blue-color) !important;
}

.header_img:hover .dropdown-content {
    display: block;
}


/* =====================================================
   MAIN WRAPPER
===================================================== */
.main-wrapper {
    width: 100%;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
}

.main-content-wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    position: relative;
}


/* =====================================================
   SIDEBAR CONTAINER
===================================================== */
.l-navbar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height) - var(--footer-height));
    z-index: var(--z-sidebar);
}


/* =====================================================
   SIDEBAR
===================================================== */
.sidebar {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #1A0A00;
    color: var(--txt-color);
    padding: 20px 0;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    text-align: center;
    scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}


/* SIDEBAR MENU CONTENT */
.menu_content {
    position: relative;
    width: 100%;
}


/* SIDEBAR TITLE */
.sidebar-title {
    padding: 12px 15px;
    margin: 0 12px 15px;
    border-bottom: 1px solid #dddddd;
    color: #111111;
    font-size: 17px;
    text-align: center;
}

.sidebar-title i {
    color: var(--blue-color);
    margin-right: 7px;
}


/* MENU LIST */
.menu_items {
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.menu_items li {
    width: 100%;
    border-bottom: 1px dashed #737373;
}


/* SIDEBAR NAV LINK */
.sidebar .nav_link {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 14px 20px;
    border-radius: 0;
    text-decoration: none;
    color: #ffffff !important;
    white-space: nowrap;
    font-size: 14px;
    cursor: pointer;
    gap: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* SIDEBAR ICON */
.navlink_icon {
    color: #ffffff;
    position: relative;
    width: 30px;
    min-width: 30px;
    height: 25px;
    line-height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 6px;
    font-size: 18px;
}


/* SIDEBAR TEXT */
.nav_name,
.navlink {
    font-size: 14px;
    margin-top: 0;
    text-align: left;
}


/* HOVER */
.sidebar .nav_link:hover {
    color: #ffffff;
    background-color: var(--blue-color);
}

.sidebar .nav_link:hover .navlink_icon {
    color: #ffffff;
}


/* ACTIVE MENU */
.sidebar .nav_link.active {
    color: var(--active-color);
    background-color: transparent;
}

.sidebar .nav_link.active .navlink_icon {
    color: var(--active-color);
}


/* SUBMENU */
.submenu_item {
    position: relative;
    cursor: pointer;
}

.submenu {
    display: none;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f7f7f7;
}

.show_submenu + .submenu {
    display: block;
}

.submenu .sublink {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 5px;
    margin: 0;
    font-size: 12px;
    color: var(--txt-color);
    text-decoration: none;
}

.submenu .sublink:hover {
    color: var(--blue-color);
    background-color: #eeeeee;
}

.submenu .sublink span {
    font-size: 12px;
}

.submenu_item .arrow-left,
.submenu_item .fa-arrow-right {
    position: absolute;
    right: 10px;
    transition: transform 0.3s ease;
}

.show_submenu .arrow-left,
.show_submenu .fa-arrow-right {
    transform: rotate(90deg);
}


/* =====================================================
   CONTENT AREA
===================================================== */
.content-area {
    flex: 1;
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    padding: 30px 40px;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    transition: all 0.5s ease;
}


/* =====================================================
   FOOTER
===================================================== */
.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: var(--footer-height);
    background-color: #1A0A00;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 800;
    margin: 0;
}

.footer p {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}


/* =====================================================
   LOGIN / NO SIDEBAR
===================================================== */
.no-sidebar .content-area {
    width: 100%;
    margin-left: 0;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    padding: 30px 40px;
}


/* =====================================================
   LOGIN CARD
===================================================== */
.login-card {
    width: 100%;
    max-width: 400px;
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10);
    text-align: center;
}

.login-card h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333333;
}

.login-card p {
    margin-bottom: 20px;
    color: #555555;
    font-size: 16px;
}


/* =====================================================
   FORM ELEMENTS
===================================================== */
label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555555;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 16px;
    color: #333333;
}

input:focus {
    border-color: var(--blue-color);
    outline: none;
}

button {
    width: 100%;
    padding: 12px;
    background-color: var(--blue-color);
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0f2d7a;
}


/* =====================================================
   TABLE / STATUS ROW COLORS
===================================================== */
.converted-row {
    background-color: #d4edda !important;
}

.accepted-row {
    background-color: #cfe2ff !important;
}

.rejected-row {
    background-color: #e87881db !important;
}


/* =====================================================
   MOBILE - TABLET
===================================================== */
@media screen and (max-width: 992px) {

    #sidebarOpen {
        display: block;
    }

    .header-center {
        display: none;
    }

    .welcome-user {
        display: none;
    }

    .l-navbar {
        left: calc(-1 * var(--sidebar-width));
        transition: left 0.5s ease;
    }

    .l-navbar.show {
        left: 0;
    }

    .content-area {
        width: 100%;
        margin-left: 0;
        padding: 25px 20px;
    }

    .navbar {
        padding: 10px 15px;
    }

    .header-left h2 {
        font-size: 18px;
    }

    .footer {
        margin-left: 0;
    }
}


/* =====================================================
   MOBILE - SMALL
===================================================== */
@media screen and (max-width: 600px) {

    .navbar_content {
        gap: 10px;
    }

    .navbar_content a {
        font-size: 12px;
    }

    .header-left {
        gap: 10px;
    }

    .header-left h2 {
        font-size: 16px;
    }

    .header_img,
    .header_img img {
        width: 36px;
        height: 36px;
    }

    .login-card {
        padding: 20px;
    }

    .login-card h2 {
        font-size: 20px;
    }

    input,
    button {
        font-size: 14px;
    }

    .content-area {
        padding: 20px 15px;
    }

    .footer p {
        font-size: 11px;
    }
}


/* =====================================================
   EXTRA SMALL MOBILE
===================================================== */
@media screen and (max-width: 400px) {

    .header-left h2 {
        font-size: 14px;
    }

    .navbar_content a {
        font-size: 11px;
    }

    .header_img,
    .header_img img {
        width: 34px;
        height: 34px;
    }
}