/* Base Reset & Dynamic Theme CSS Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
	color:#666;
}

/* Theme Configurations (Default Dark Mode Theme) */
:root {
    --bg-nav: #ffffff;
    --bg-body: #ffffff;
    --bg-dropdown: #ffffff;
    --bg-dropdown-hover: #eee;
    --text-primary: #444;
    --text-secondary: #444;
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    background-color: var(--bg-body);
	color:#666;
}

.app-container {
    min-height: 100vh;
}

/* Sticky Navbar Elements */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-nav);
    padding: 0 4%;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.logo a {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
	vertical-align:middle;
	display:flex;
}

/* Nav Links & Utilities Container Layout */
.nav-container {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin: 0 12px;
    position: relative;
}

.nav-links a, .drop-label {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: block;
}

.nav-links a:hover, .nav-links a.active, .drop-label:hover {
    color: var(--text-primary);
}

/* Profile Avatar */
.avatar-btn {
    cursor: pointer;
    display: block;
}

.avatar-btn img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--text-secondary);
}

/* Dropdown Shared Styles & Smooth Animations */
.dropdown-menu {
    position: absolute;
    top: 120%;
    background-color: var(--bg-nav);
    list-style: none;
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 8px 24px var(--shadow);
    padding: 8px 0;
    z-index: 1010;
    
    /* Animation implementation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.dropdown-menu { left: 0; }

.dropdown-menu a {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.dropdown-menu a:hover {
    background-color: var(--bg-dropdown-hover);
    color: var(--text-primary);
}

/* Desktop Hover Interaction (Screen Widths above 920px) */
@media (min-width: 921px) {
    .dropdown:hover .dropdown-menu
    {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .arrow {
        font-size: 10px;
        margin-left: 4px;
    }
}

/* Structural Utilities */
.hidden-box { display: none; }
.menu-btn { display: none; }

.content {
    padding: 40px var(--padding, 4%);
    color: var(--text-primary);
}

/* Responsive Viewports (Mobile & Tablet Layouts) */
@media (max-width: 920px) {
    .menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-btn .bar {
        height: 3px;
        width: 100%;
        background-color: var(--text-primary);
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    /* Full-screen Drawer on Mobile Layouts */
    .nav-container {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-nav);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 40px 10%;
        transition: left 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
        overflow-y: auto;
        gap: 30px;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
    }

    .nav-links a, .drop-label {
        font-size: 20px;
        width: 100%;
    }

    /* Mobile Click-to-Expand Dropdowns configuration */
    .dropdown-menu{
        position: static;
        box-shadow: none;
        padding-left: 15px;
        background-color: var(--bg-dropdown-hover);
        margin-top: 10px;
        width: 100%;
        /* Reset absolute animation attributes for drawer compatibility */
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    /* Trigger layout view changes dynamically using CSS states */
    #menu-toggle:checked ~ .nav-container { left: 0; }
    #drop-toggle:checked ~ .dropdown-menu { display: block; }

    /* Animated Hamburger Button changes to Cross icon Shape */
    #menu-toggle:checked ~ .menu-btn .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    #menu-toggle:checked ~ .menu-btn .bar:nth-child(2) { opacity: 0; }
    #menu-toggle:checked ~ .menu-btn .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.row > * {
    
    box-sizing: border-box;
}

.col {
    flex: 1 0 0%;
}

.col-auto 
{
    flex: 0 0 auto;
    width: auto;
}

@media (min-width: 576px) {
    .col-sm-auto {
        flex: 0 0 auto;
        width: auto;
    }
}

@media (min-width: 768px) {
    .col-md-auto {
        flex: 0 0 auto;
        width: auto;
    }
}

@media (min-width: 992px) {
    .col-lg-auto {
        flex: 0 0 auto;
        width: auto;
    }
}

@media (min-width: 1200px) {
    .col-xl-auto {
        flex: 0 0 auto;
        width: auto;
    }
}

@media (min-width: 1400px) {
    .col-xxl-auto {
        flex: 0 0 auto;
        width: auto;
    }
}