/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif !important;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .logo-text h1, .nav-text {
    font-family: 'Cinzel Decorative', serif !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Sidebar Styles */
.sidebar {
    background-color: #1a233b;  /* Dark navy */
    color: #c5c5c8;  /* Light gray */
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease, transform 0.3s ease;
    overflow-x: hidden;
}

.sidebar.collapsed {
    width: 70px;
}

.desktop-toggle {
    cursor: pointer;
    font-size: 1.4rem;
    color: #c5c5c8;
    margin: 0;
    transition: color 0.3s;
    min-width: 30px;
    text-align: center;
}

.desktop-toggle:hover {
    color: #DB9E30;
}

.sidebar.collapsed .logo {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 20px 0;
}

.sidebar.collapsed .sidebar-nav a {
    padding: 15px 10px;
    justify-content: center;
}

.sidebar.collapsed .sidebar-nav a i {
    margin-right: 0;
    font-size: 1.4rem;
}

.sidebar.collapsed .sidebar-nav a .nav-text {
    display: none;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(197, 197, 200, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-sidebar {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #c5c5c8;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text h1 {
    font-family: 'Cinzel Decorative', 'Poppins', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #c5c5c8;
    margin-bottom: 0;
    letter-spacing: 1px;
}

.logo-text span {
    font-size: 0.8rem;
    color: #DB9E30;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
}

.sidebar-nav li {
    width: 100%;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    color: #c5c5c8;
    font-size: 1rem;
    padding: 15px 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    border-left: 4px solid transparent;
}

.sidebar-nav a i {
    width: 25px;
    margin-right: 15px;
    text-align: center;
    color: #DB9E30;
    font-size: 1.2rem;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    color: #DB9E30;
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: #DB9E30;
}

.auth-item {
    margin-top: 10px;
    border-top: 1px solid rgba(197, 197, 200, 0.1);
    padding-top: 10px;
}

/* Mobile Header */
.mobile-header {
    display: none;
    background-color: #1a233b;
    padding: 15px 20px;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mobile-header .logo {
    display: flex;
    align-items: center;
}

.mobile-header .logo-text h1 {
    font-family: 'Cinzel Decorative', 'Poppins', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #c5c5c8;
    margin-bottom: 0;
    letter-spacing: 1px;
}

.mobile-header .logo-text span {
    font-size: 0.8rem;
    color: #DB9E30;
    letter-spacing: 0.5px;
}

.menu-toggle {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #c5c5c8;
    transition: 0.4s;
    border-radius: 2px;
}

/* Main Content Wrapper */
.main-wrapper {
    margin-left: 250px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.main-wrapper.collapsed {
    margin-left: 70px;
}

.main-content {
    flex: 1;
    padding: 40px 0;
}

/* Footer Styles */
.footer {
    background-color: #1a233b;
    color: #c5c5c8;
    padding: 50px 0 20px;
    border-top: 1px solid rgba(197, 197, 200, 0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
    padding-right: 20px;
}

.footer-section h3 {
    font-family: 'Cinzel Decorative', 'Poppins', serif;
    color: #c5c5c8;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 1px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color:#DB9E30;
}

.footer-section ul li {
    margin-bottom: 10px;
    font-family:  'Poppins', serif;
}

.footer-section a {
    color: #c5c5c8;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-section a:hover {
    color:#DB9E30;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    font-family: Poppins, serif;
    padding-top: 20px;
    border-top: 1px solid rgba(197, 197, 200, 0.1);
    font-size: 0.9rem;
    color: #777;
    letter-spacing: 0.5px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
    }

    .main-wrapper.collapsed {
        margin-left: 0;
    }

    .desktop-toggle {
        display: none;
    }

    .close-sidebar {
        display: block;
    }

    .mobile-header {
        display: flex;
    }

    .footer-section {
        flex: 0 0 50%;
        padding: 0 15px 20px;
    }
}

@media screen and (max-width: 480px) {
    .logo-text h1, .mobile-header .logo-text h1 {
        font-size: 1.3rem;
    }

    .logo-text span, .mobile-header .logo-text span {
        font-size: 0.7rem;
    }

    .footer-section {
        flex: 0 0 100%;
        padding: 0 0 20px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section ul {
        text-align: center;
    }

    .footer-section a:hover {
        padding-left: 0;
    }
}
