/* =========================
   GLOBAL RESET + BASE
========================= */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f9;
    color: #2c3e50;
    margin: 0;
    padding: 0;
}

#main_area {
    padding: 30px;
}

#work_area {
    max-width: 1200px;
    margin: auto;
}

/* =========================
   HEADINGS
========================= */
h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
}
/* =========================
   HEADER WRAPPER
========================= */
#header {
    background: linear-gradient(90deg, #d9e3f2, #0b5ed7);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#header_area {
    max-width: 1200px;
    margin: auto;
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/* =========================
   LOGO
========================= */
.banner_logo {
    height: 45px;
    width: auto;
    transition: 0.3s;
}

.banner_logo:hover {
    transform: scale(1.05);
}

/* =========================
   LOGIN STATUS (RIGHT TOP)
========================= */
#login_status {
    font-size: 13px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#login_status a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

#login_status a:hover {
    text-decoration: none;
}

/* =========================
   NAVIGATION BAR
========================= */
.main_nav {
    width: 100%;
    margin-top: 10px;
}

#top_nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* NAV ITEMS */
#top_nav li {
    display: flex;
    align-items: center;
}

/* REMOVE IMAGE DIVIDER LOOK */
#top_nav li img[src*="divider"] {
    display: none;
}

/* NAV LINKS */
#top_nav li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
    background: rgba(255,255,255,0.08);
}

/* ICONS */
#top_nav li a img {
    width: 18px;
    height: 18px;
}

/* HOVER EFFECT */
#top_nav li a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}
/* USER DROPDOWN */
.user-dropdown {
    position: relative;
    color: white;
}

/* TOGGLE */
.user-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.3s;
}

.user-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.user-name {
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 10px;
}

/* DROPDOWN MENU */
.dropdown-menu-custom {
    position: absolute;
    right: 0;
    top: 110%;
    min-width: 220px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
}

/* SHOW */
.user-dropdown.active .dropdown-menu-custom {
    display: flex;
}

/* ITEMS */
.dropdown-menu-custom a {
    padding: 10px 15px;
    text-decoration: none;
    color: #2c3e50 !important;
    font-size: 14px;
    transition: 0.2s;
}

.dropdown-menu-custom a:hover {
    background: #f4f6f9 !important;
}

/* EMAIL */
.dropdown-user-email {
    padding: 10px 15px;
    font-size: 12px;
    color: #6c757d;
}

/* LOGOUT */
.logout-link {
    color: #dc3545 !important;
}

/* DIVIDER */
.dropdown-menu-custom hr {
    margin: 5px 0;
    border: none;
    border-top: 1px solid #eee;
}
/* ACTIVE MENU (OPTIONAL) */
#top_nav li.active a {
    background: #ffffff;
    color: #0d6efd;
}
/* =========================
   DROPDOWN LIST (UL)
========================= */
.dropdown-menu-custom ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* =========================
   DROPDOWN LIST ITEMS
========================= */
.dropdown-menu-custom ul li {
    width: 100%;
}

/* =========================
   LINKS (MAIN FIX)
========================= */
.dropdown-menu-custom ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 14px;
    transition: all 0.2s ease;
}

/* ICONS */
.dropdown-menu-custom ul li a img {
    width: 18px;
    height: 18px;
    opacity: 0.8;
    background: #33b5dc;
    padding: 4px;
    border-radius: 29px;
}
.dropdown-menu-custom ul li a:hover img {
    background: #6c00b7;
}
/* HOVER EFFECT */
.dropdown-menu-custom ul li a:hover {
    background: #f1f5ff;
    color: #0d6efd;
}

/* ACTIVE (OPTIONAL) */
.dropdown-menu-custom ul li.active a {
    background: #e7f1ff;
    color: #0d6efd;
    font-weight: 500;
}

/* =========================
   REMOVE EXTRA SPACING
========================= */
.dropdown-menu-custom ul li a span {
    display: inline-block;
}

/* =========================
   BETTER SEPARATION
========================= */
.dropdown-menu-custom ul li:not(:last-child) a {
    border-bottom: 1px solid #f0f0f0;
}
.default_button {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.default_button:hover {
    background: #0b5ed7;
}
/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    #header_area {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #login_status {
        font-size: 12px;
    }

    #top_nav {
        flex-direction: column;
        width: 100%;
    }

    #top_nav li {
        width: 100%;
    }

    #top_nav li a {
        width: 100%;
        justify-content: flex-start;
    }
}