@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --primary-color: #0066ff;
    --primary-light: rgba(67, 97, 238, 0.1);
    --primary-dark: #83c1ff;
    --secondary-color: #0066ff;
    --accent-color: #4cc9f0;
    --success-color: #4ade80;
    --warning-color: #fbbf24;
    --danger-color: #f87171;
    --text-color: #333;
    --text: black;
    --text-light: #6b7280;
    --light-text: #f8f9fa;
    --light-bg: #ffffffd1;
    --gray-bg: #f3f4f6;
    --dark-bg: #1e293b;
    --dark-bg-light: #293548;
    --card-bg: #eff9ff;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --border-radius: 20px;
    --border-sm: 12px;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --loader: white;
}

.dark-mode {
    --primary-color: #2b95ff;
    --text-color: #f3f4f6;
    --text: white;
    --text-light: #d1d5db;
    --light-bg: #1a1a2e;
    --gray-bg: #1f2937;
    --dark-bg: #0f172a;
    --dark-bg-light: #1e293b;
    --card-bg: #132138;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    --loader: black;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    background-image: linear-gradient(to bottom right, rgba(67, 97, 238, 0.05), rgba(76, 201, 240, 0.05));
    background-attachment: fixed;
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

body.loaded {
    overflow-y: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
span {
    line-height: 1.2;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--loader);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: var(--transition);
}

.loader {
    text-align: center;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 260px;
}

.progress-bar {
    width: 200px;
    height: 6px;
    background-color: var(--gray-bg);
    border-radius: 8px;
    margin: 24px auto;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress {
    height: 100%;
    width: 0;
    background: var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(67, 97, 238, 0.3);
    animation: progressAnim 3s ease-in-out forwards;
}

.loader p {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes progressAnim {
    0% {
        width: 5%;
    }

    20% {
        width: 40%;
    }

    50% {
        width: 65%;
    }

    80% {
        width: 85%;
    }

    100% {
        width: 100%;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

::selection {
    background: var(--primary-color);
    color: var(--light-text);
}

.badgess {
    font-size: 0.6rem;
    font-weight: 600;
    background: linear-gradient(to right, var(--primary-color), #2a67ff);
    color: white;
    padding: 4px 12px;
    margin-left: 0px;
    margin-right: 5px;
    border-radius: 20px;
    vertical-align: middle;
    -webkit-text-fill-color: white;
    animation: pulse 2.5s infinite;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.container {
    display: grid;
    grid-template-areas:
        "header header"
        "sidebar main-content"
        "footer footer";
    grid-template-columns: 260px 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    opacity: 0;
    transform: translateY(20px);
}

.container.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.header {
    grid-area: header;
    background-color: var(--light-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 29px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.5s ease-out forwards;
    transition: var(--transition);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
}

.logo i {
    font-size: 26px;
    filter: drop-shadow(0 2px 4px rgba(67, 97, 238, 0.3));
}

.logo h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.desktop-nav ul {
    display: flex;
    gap: 20px;
}

.desktop-nav a {
    padding: 10px 18px;
    border-radius: var(--border-sm);
    transition: var(--transition);
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.desktop-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
    border-radius: var(--border-sm);
}

.desktop-nav a:hover::before,
.desktop-nav a.active::before {
    opacity: 1;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--light-text);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    transform: translateY(-2px);
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notifications {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    background-color: var(--gray-bg);
}

.notifications:hover {
    background-color: var(--primary-light);
}

.notifications i {
    font-size: 18px;
    color: var(--text-color);
    transition: var(--transition);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: var(--light-text);
    width: 18px;
    height: 18px;
    font-size: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(248, 113, 113, 0.5);
    border: 2px solid var(--light-bg);
    animation: pulse 2s infinite;
    transition: var(--transition);
}

.theme-toggle {
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    background-color: var(--gray-bg);
}

.theme-toggle:hover {
    background-color: var(--primary-light);
}

.theme-toggle i {
    font-size: 18px;
    color: var(--text-color);
    transition: var(--transition);
}

.sidebar {
    grid-area: sidebar;
    background-color: var(--light-bg);
    height: 100%; /* Full viewport height */
    position: fixed; /* Fix the sidebar in place */
    width: 280px; /* Set an appropriate width based on your layout */
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
    transition: var(--transition);
    z-index: 90;
}
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 25px 25px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--gray-bg);
}

.sidebar-logo i {
    font-size: 24px;
    color: var(--primary-color);
}

.sidebar-logo h2 {
    font-size: 18px;
    color: var(--text-color);
    margin: 0;
}

.profile-card {
    padding: 25px 5px 5px 10px;
    margin: 0 18px 25px 18px;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--light-bg); /* Match sidebar background */
    border-radius: 25px;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), rgba(76, 201, 240, 0.1));
    z-index: -1;
    opacity: 0.7;
    border-radius: 25px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.profile-info p {
    font-size: 13px;
    color: var(--text-light);
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--success-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3);
    animation: pulse 2s infinite;
}

.side-nav {
    flex: 1;
    overflow-y: auto; /* Only this part scrolls */
    padding-bottom: 20px; /* Add some bottom padding for scroll space */
}

.nav-section {
    margin-bottom: 20px;
}

.nav-header {
    padding: 0 25px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

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

.side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 18px;
    margin-right: 18px;
    padding: 12px 16px;
    border-radius: var(--border-sm);
    transition: var(--transition);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.side-nav a:hover,
.side-nav a.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 500;
    transform: translateX(5px);
}

.side-nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 0 4px 4px 0;
}

.side-nav a i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    transition: var(--transition);
}

.side-nav a:hover i {
    transform: translateX(3px);
}

.sidebar-footer {
    border-top-right-radius: var(--border-radius);
    padding: 20px 25px;
    /* border-top: 1px solid var(--gray-bg); */
    position: sticky;
    bottom: 0;
    background-color: var(--card-bg); 
    z-index: 100;
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.sidebar-footer a:hover {
    color: var(--primary-color);
}

.sidebar-footer a i {
    font-size: 16px;
}

/* Mobile Header User Profile Styles */
.user-profile {
    position: relative;
    display: none; 
}

.user-avatar {
    width: 42px;
    height: 42px;
    border: 4px solid var(--primary-color);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.user-avatar i {
    font-size: 18px;
}

.user-avatar:hover {
    transform: scale(1.08);
}

.profile-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    width: 300px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease,
        visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 80vh; /* Limit maximum height */
}

.profile-dropdown.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    animation: slideInTop 0.3s ease forwards;
}

@keyframes slideInTop {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.profile-dropdown-header {
    margin: 10px 10px 0 10px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.profile-dropdown-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    pointer-events: none;
}

.profile-dropdown-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dropdown-avatar {
    width: 56px;
    height: 56px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
}

.dropdown-user-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: white;
}

.dropdown-user-info p {
    font-size: 12px;
    opacity: 0.9;
}

.profile-dropdown-items {
    padding: 10px 0;
    overflow-y: auto; /* Changed from scroll to auto */
    max-height: calc(80vh - 220px); /* Adjust based on header and footer height */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}

.profile-dropdown-items::-webkit-scrollbar {
    width: 6px;
}

.profile-dropdown-items::-webkit-scrollbar-track {
    background: transparent;
}

.profile-dropdown-items::-webkit-scrollbar-thumb {
    background-color: var(--primary-light);
    border-radius: 20px;
}

.dropdown-item {
    padding: 12px 22px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    margin: 2px 10px;
}

.dropdown-item:hover {
    padding: 12px 22px;
    background-color: var(--primary-light);
    transform: translateX(5px);
    border-radius: var(--border-radius);
}

.dropdown-item i {
    text-align: center;
    font-size: 18px;
    width: 22px;
    color: var(--primary-color);
}

.dropdown-item span {
    font-size: 14px;
    color: var(--text-color);
    padding-top: 6px;
}

.dropdown-footer {
    padding: 15px 20px;
    background-color: var(--gray-bg);
    border-bottom-right-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
    margin: 0 10px 10px 10px;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.logout-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 600;
    gap: 12px;
    background-color: rgba(248, 113, 113, 0.1);
    color: var(--danger-color);
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.logout-btn i {
    font-size: 16px;
}

.logout-btn span {
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    font-weight: 600;
    color: var(--danger-color);
    font-size: 14px;
    border: none;
    cursor: pointer;
    padding-top: 6px;
}

.logout-btn:hover {
    background-color: rgba(248, 113, 113, 0.2);
}

/* Mobile Sidebar (Side Panel) */
.mobile-sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 150;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(3px);
}

.mobile-sidebar-backdrop.active {
    visibility: visible;
    opacity: 1;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: var(--card-bg);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
}

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

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-bg);
}

.mobile-sidebar-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-bg);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-sidebar-close:hover {
    background-color: rgba(248, 113, 113, 0.1);
    color: var(--danger-color);
}

/* Hamburger Menu for Mobile */
.hamburger-menu {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-bg);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.hamburger-menu:hover {
    background-color: var(--primary-light);
}

.hamburger-menu i {
    font-size: 18px;
    color: var(--text-color);
}



.main-content {
    grid-area: main-content;
    padding-top: 0px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: var(--light-bg);
    animation: fadeIn 0.8s ease-out forwards;
    transition: var(--transition);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-section {
    background: var(--primary-color);
    color: white;
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.welcome-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    pointer-events: none;
    transition: var(--transition);
}

.welcome-content {
    flex: 2;
    position: relative;
    z-index: 1;
}

.welcome-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
    animation: fadeInUp 0.6s ease-out forwards;
}

.welcome-content p {
    opacity: 0.9;
    margin-bottom: 25px;
    font-size: 16px;
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-sm);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: var(--transition);
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.welcome-stats {
    flex: 1;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.stat {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-sm);
    padding: 16px;
    width: 120px;
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: scaleIn 0.6s ease-out forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.counter {
    color: white;
}
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.counter {
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
    font-weight: 500;
}

.quick-access {
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-access h3 {
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    padding-left: 15px;
    display: inline-block;
    transition: var(--transition);
}

.quick-access h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 4px;
    background: var(--primary-color);
    border-radius: 4px;
    transition: var(--transition);
}

.quick-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.quick-tile {
    background-color: var(--card-bg);
    border-radius: var(--border-sm);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.quick-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.quick-tile:hover::before {
    opacity: 1;
}

.quick-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.quick-tile i {
    font-size: 30px;
    color: var(--primary-color);
    transition: var(--transition);
    background-color: var(--primary-light);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.quick-tile:hover i {
    transform: scale(1.1) rotate(5deg);
}

.quick-tile span {
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    animation: slideUp 1s ease-out forwards;
    animation-delay: 0.2s;
}

.upcoming-section {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.upcoming-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    padding-left: 15px;
    transition: var(--transition);
}

.upcoming-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 4px;
    background: var(--primary-color);
    border-radius: 4px;
    transition: var(--transition);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: var(--gray-bg);
    border-radius: var(--border-sm);
    transition: var(--transition);
}

.event-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
    background-color: var(--primary-light);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-sm);
    padding: 8px;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.2);
    transition: var(--transition);
}

.event-date .day {
    font-size: 20px;
    padding-top: 12px;
    color: white;
    font-weight: 700;
    line-height: 0.5;
}

.event-date .month {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.9;
    color: white;
}

.event-details {
    flex: 1;
}

.event-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
    transition: var(--transition);
}

.event-details p {
    font-size: 13px;
    color: var(--text-light);
    transition: var(--transition);
}

.performance-section {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.performance-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    padding-left: 15px;
    transition: var(--transition);
}

.performance-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 4px;
    background: var(--primary-color);
    border-radius: 4px;
    transition: var(--transition);
}

.chart-container {
    width: 100%;
    height: 280px;
    padding: 10px;
    transition: var(--transition);
}

.cards-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    animation: slideUp 1.2s ease-out forwards;
    animation-delay: 0.3s;
}

.card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.card p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 14px;
    transition: var(--transition);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.card-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.card-link:hover::after {
    width: 100%;
}

.card-link i {
    transition: var(--transition);
}

.card-link:hover i {
    transform: translateX(5px);
}

.footer {
    grid-area: footer;
    background-color: var(--light-bg);
    color: var(--light-text);
    animation: slideInBottom 0.5s ease-out forwards;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* .footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
} */

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    padding: 60px 40px 40px;
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transition: var(--transition);
}

.footer-section:hover h4::after {
    width: 70px;
}

.footer-section p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
    transition: var(--transition);
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section ul a {
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
}

.footer-section ul a::before {
    content: "→";
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.25s ease;
}

.footer-section ul a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-section ul a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.social-icons a {
    color: var(--light-text);
    background-color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icons a i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-icons a:hover::before {
    opacity: 1;
}

.social-icons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icons a:hover i {
    transform: scale(1.15);
}

.footer-bottom {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    padding: 25px 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    background-color: var(--primary-color);
    position: relative;
}

.footer-bottom p {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-bottom p a {
    color: var(--primary-color);
    transition: var(--transition);
}

.footer-bottom p a:hover {
    text-decoration: underline;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: var(--border-sm);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(150%);
    transition: transform 0.3s ease-out;
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    padding: 5px;
    font-size: 18px;
    color: white;
}

.toast span {
    margin-top: 6px;
    font-size: 18px;
    color: white;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger-color);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 20px;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: var(--border-sm);
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--primary-color);
}

.btn:hover {
    color: var(--text-color);
}

.btn-secondary {
    background-color: var(--gray-bg);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--light-text);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #3aad68;
}

/* Notification Center Styles */
.notification-center {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 320px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 150;
    overflow: hidden;
    transform: translateX(110%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    opacity: 0;
    visibility: hidden;
  }
  
  .notification-center.visible {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nc-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 20px;
    color: white;
    position: relative;
    overflow: hidden;
    margin: 10px;
    border-radius: var(--border-radius);
    /* border-top-right-radius: var(--border-radius);
    border-top-left-radius: var(--border-radius); */
  }
  
  .nc-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    pointer-events: none;
  }
  
  .nc-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: white;
  }
  
  .nc-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  
  .nc-close,
  .nc-settings {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .nc-close:hover,
  .nc-settings:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
  }
  
  .nc-filters {
    display: flex;
    padding: 12px;
    gap: 8px;
    /* border-bottom: 1px solid var(--gray-bg); */
    overflow-x: auto;
    scrollbar-width: none;
  }
  
  .nc-filters::-webkit-scrollbar {
    display: none;
  }
  
  .nc-filter {
    background: var(--gray-bg);
    color: var(--text-color);
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
  }
  
  .nc-filter.active {
    background: var(--primary-color);
    color: white;
  }
  
  .nc-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 5px 0;
  }
  
  .nc-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-light);
  }
  
  .nc-empty i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.3;
  }
  
  .nc-empty p {
    font-size: 14px;
    margin: 0;
  }
  
  /* Notification Item Styles */
  .notification-item {
    padding: 15px 20px;
    /* border-bottom: 1px solid var(--gray-bg); */
    display: flex;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
  }
  
  .notification-item:hover {
    background-color: var(--primary-light);
  }
  
  .notification-item:last-child {
    border-bottom: none;
  }
  
  .notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
  }
  
  .n-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
  }
  
  .n-icon.success {
    background-color: rgba(74, 222, 128, 0.15);
    color: var(--success-color);
  }
  
  .n-icon.warning {
    background-color: rgba(251, 191, 36, 0.15);
    color: var(--warning-color);
  }
  
  .n-icon.info {
    background-color: var(--primary-light);
    color: var(--primary-color);
  }
  
  .n-icon.danger {
    background-color: rgba(248, 113, 113, 0.15);
    color: var(--danger-color);
  }
  
  .n-content {
    flex: 1;
  }
  
  .n-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 3px;
    color: var(--text);
  }
  
  .n-message {
    font-size: 12px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
  }
  
  .n-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-light);
  }
  
  .n-time {
    display: flex;
    align-items: center;
    margin-top: 4px;
    gap: 5px;
  }
  
  .n-time i {
    font-size: 10px;
    margin-bottom: 6px;
  }
  
  .n-actions {
    margin-left: auto;
    opacity: 0;
    transition: var(--transition);
    display: flex;
    gap: 8px;
  }
  
  .notification-item:hover .n-actions {
    opacity: 1;
  }
  
  .n-action-btn {
    background: var(--gray-bg);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
  }
  
  .n-action-btn:hover {
    background-color: var(--primary-color);
    color: white;
  }
  
  .nc-footer {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--gray-bg);
    font-size: 12px;
  }
  
  .nc-footer a {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
  }
  
  .nc-footer a:hover {
    text-decoration: underline;
  }
  
  /* Badge pulse animation for notification icon */
  @keyframes badgePulse {
    0% {
      box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.7);
    }
    70% {
      box-shadow: 0 0 0 8px rgba(248, 113, 113, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(248, 113, 113, 0);
    }
  }
  
  .badge {
    animation: badgePulse 2s infinite;
  }
  
  /* Notification groups */
  .notification-group {
    position: relative;
  }
  
  .notification-group-header {
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    background-color: var(--card-bg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Notification widgets for dashboard */
  .notification-widget {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
  }
  
  .notification-widget:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
  }
  
  .nw-header {
    background: var(--card-bg);
    /* background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); */
    padding: 15px 20px;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nw-header h3 {
    font-size: 16px;
    margin: 0;
    color: var(--text-color);
  }
  
  .nw-header-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
  }
  
  .nw-content {
    flex: 1;
    overflow-y: auto;
    max-height: 320px;
  }
  
  .nw-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--gray-bg);
    text-align: center;
  }
  
  .nw-footer a {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  
  .nw-footer a i {
    transition: var(--transition);
  }
  
  .nw-footer a:hover i {
    transform: translateX(3px);
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .notification-center {
      width: 100%;
      max-width: 350px;
      top: 70px;
    }
  }
  
  @media (max-width: 576px) {
    .notification-center {
      width: 95%;
      max-width: none;
      right: 2.5%;
      top: 70px;
    }
  }

@media screen and (max-width: 1024px) {
    .user-profile {
        display: block;
    }

    .container {
        grid-template-areas:
            "header header"
            "main-content main-content"
            "footer footer";
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        height: 200vh;
        z-index: 999;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        background-color: var(--light-bg);
    }

    .sidebar.active {
        left: 0;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .welcome-section {
        flex-direction: column;
        gap: 20px;
    }

    .welcome-stats {
        justify-content: center;
    }

    .footer-content {
        padding: 50px 30px 30px;
        gap: 30px;
    }

    .notification-panel {
        width: 300px;
        right: 10px;
    }

    .modal-content {
        max-width: 90%;
        padding: 25px;
    }

    .toast {
        max-width: 300px;
        right: 10px;
    }
}

@media screen and (max-width: 768px) {
    .user-profile {
        display: block;
    }

    .header {
        padding: 15px 20px;
    }

    .main-content {
        padding: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .chart-container {
        height: 250px;
    }

    .quick-tiles {
        grid-template-columns: repeat(2, 1fr);
    }

    .welcome-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        gap: 15px;
    }

    .stat {
        width: 100%;
    }

    .cards-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        padding: 40px 25px 25px;
        gap: 35px;
    }

    .footer-section {
        padding-bottom: 10px;
    }

    .welcome-content h2 {
        font-size: 24px;
    }

    .footer-bottom {
        padding: 20px;
    }

    .notification-panel {
        width: 280px;
    }

    .modal-content {
        padding: 20px;
    }

    .toast {
        max-width: 260px;
        padding: 12px 16px;
    }
}

@media screen and (max-width: 480px) {
    .user-profile {
        display: block;
    }

    .logo h1 {
        font-size: 18px;
    }

    .welcome-content h2 {
        font-size: 22px;
    }

    .welcome-content p {
        font-size: 14px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }

    .quick-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .quick-tile {
        padding: 20px 15px;
    }

    .quick-tile i {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .quick-tile span {
        font-size: 14px;
    }

    .welcome-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat {
        padding: 12px 8px;
    }

    .counter {
        font-size: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .upcoming-section,
    .performance-section {
        padding: 20px;
    }

    .upcoming-section h3,
    .performance-section h3 {
        font-size: 18px;
    }

    .event-card {
        padding: 12px;
    }

    .event-date {
        width: 50px;
        height: 50px;
    }

    .cards-section {
        gap: 15px;
    }

    .card {
        padding: 20px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .card h3 {
        font-size: 18px;
    }

    .footer-content {
        padding: 35px 20px 20px;
    }

    .social-icons {
        flex-wrap: wrap;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .notification-panel {
        width: 260px;
        right: 5px;
    }

    .notification-header {
        padding: 12px 15px;
    }

    .notification-item {
        padding: 12px 15px;
    }

    .modal-content {
        max-width: 95%;
        padding: 18px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .toast {
        top: 15px;
        right: 5px;
        max-width: 250px;
        padding: 10px 15px;
        font-size: 13px;
    }

    .toast i {
        font-size: 18px;
    }

    .toast span {
        margin-top: 6px;
        font-size: 13px;
        color: white;
    }
    
}

@media screen and (max-width: 360px) {
    .user-profile {
        display: block;
    }

    .header {
        padding: 12px 15px;
    }

    .logo i {
        font-size: 22px;
    }

    .logo h1 {
        font-size: 16px;
    }

    .user-controls {
        gap: 12px;
    }

    .notifications,
    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .main-content {
        padding: 15px;
        gap: 20px;
    }

    .welcome-section {
        padding: 25px 20px;
    }

    .welcome-content h2 {
        font-size: 20px;
    }

    .quick-tiles {
        grid-template-columns: 1fr;
    }

    .welcome-stats {
        grid-template-columns: 1fr;
    }

    .stat {
        width: 100%;
    }

    .footer-section h4 {
        font-size: 16px;
    }

    .event-details h4 {
        font-size: 14px;
    }

    .event-details p {
        font-size: 12px;
    }

    .card p {
        font-size: 13px;
    }

    .notification-panel {
        width: 240px;
        right: 0;
    }

    .notification-header h4 {
        font-size: 15px;
    }

    .notification-content h5 {
        font-size: 13px;
    }

    .notification-content p {
        font-size: 11px;
    }

    .modal-content {
        padding: 15px;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .toast {
        max-width: 210px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media screen and (max-width: 320px) {
    .user-profile {
        display: block;
    }

    .notification-panel {
        width: 220px;
    }

    .modal-content {
        padding: 12px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 8px;
    }

    .toast {
        max-width: 200px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px);
    }

    .toast.show {
        transform: translateX(-50%) translateY(0);
    }
}

/* Search bar styles */
.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.search-bar {
    position: relative;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border-radius: 30px;
    border: none;
    background-color: var(--gray-bg);
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.search-bar input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
    background-color: var(--light-bg);
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
    transition: var(--transition);
}

.search-bar input:focus + i {
    color: var(--primary-color);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    border-radius: var(--border-sm);
    box-shadow: var(--shadow-lg);
    margin-top: 5px;
    z-index: 100;
    max-height: 350px;
    overflow-y: auto;
    display: none;
}

.search-results.active {
    display: block;
    animation: fadeIn 0.3s ease-out forwards;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-bg);
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--primary-light);
}

.search-result-item h4 {
    font-size: 14px;
    margin-bottom: 3px;
}

.search-result-item p {
    font-size: 12px;
    color: var(--text-light);
}

.search-result-item .result-category {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    margin-top: 5px;
}

.search-no-results {
    padding: 15px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

/* Responsive adjustments for search bar */
@media screen and (max-width: 1024px) {
    .search-container {
        max-width: 300px;
        margin: 0 10px;
    }
}

@media screen and (max-width: 768px) {
    .search-container {
        display: none;
    }
    
    .mobile-search-container {
        display: block;
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid var(--gray-bg);
    }
}

/* Dashboard Summary Section */
.dashboard-summary {
    margin-bottom: 30px;
    animation: slideUp 0.8s ease-out forwards;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.summary-card {
    background-color: var(--card-bg);
    border-radius: var(--border-sm);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.summary-icon.success {
    background-color: rgba(74, 222, 128, 0.15);
    color: var(--success-color);
}

.summary-icon.warning {
    background-color: rgba(251, 191, 36, 0.15);
    color: var(--warning-color);
}

.summary-icon.info {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.summary-icon.danger {
    background-color: rgba(248, 113, 113, 0.15);
    color: var(--danger-color);
}

.summary-content {
    flex: 1;
}

.summary-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--text-light);
}

.summary-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text);
}

.summary-trend {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.summary-trend.positive {
    color: var(--success-color);
}

.summary-trend.negative {
    color: var(--danger-color);
}

.summary-trend i {
    font-size: 10px;
}

/* Responsive adjustments for summary cards */
@media screen and (max-width: 768px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .summary-card {
        padding: 15px;
    }
    
    .summary-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .summary-value {
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Calendar Section Styles */
.calendar-section {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.calendar-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    padding-left: 15px;
    transition: var(--transition);
}

.calendar-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 4px;
    background: var(--primary-color);
    border-radius: 4px;
    transition: var(--transition);
}

.calendar-container {
    background-color: var(--light-bg);
    border-radius: var(--border-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: white;
}

.calendar-header h4 {
    font-size: 16px;
    margin: 0;
    color: white;
}

.calendar-nav {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 10px 0;
    background-color: var(--gray-bg);
    font-weight: 500;
    font-size: 12px;
    color: var(--text-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 2px;
    padding: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    border-radius: var(--border-sm);
    transition: var(--transition);
    font-size: 14px;
}

.calendar-day:hover {
    background-color: var(--primary-light);
}

.calendar-day.today {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.calendar-day.today.has-event::after {
    background-color: white;
}

.calendar-day.other-month {
    color: var(--text-light);
    opacity: 0.5;
}

.calendar-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--gray-bg);
    color: var(--text-color);
    border: none;
    padding: 10px 15px;
    border-radius: var(--border-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Responsive adjustments for calendar */
@media screen and (max-width: 768px) {
    .calendar-weekdays, .calendar-days {
        font-size: 12px;
    }
    
    .calendar-actions {
        flex-direction: column;
    }
    
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Task Management Section */
.task-management-section {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    animation: slideUp 1.2s ease-out forwards;
    animation-delay: 0.4s;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.task-header h3 {
    font-size: 20px;
    position: relative;
    padding-left: 15px;
    margin-bottom: 0;
}

.task-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 4px;
    background: var(--primary-color);
    border-radius: 4px;
}

.add-task-btn {
    padding: 8px 16px;
    font-size: 14px;
}

.task-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.task-filter {
    padding: 8px 15px;
    border-radius: 20px;
    background-color: var(--gray-bg);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.task-filter.active {
    background-color: var(--primary-color);
    color: white;
}

.task-filter:hover:not(.active) {
    background-color: var(--primary-light);
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.task-item {
    background-color: var(--light-bg);
    border-radius: var(--border-sm);
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.task-item[data-status="pending"] {
    border-left-color: var(--warning-color);
}

.task-item[data-status="in-progress"] {
    border-left-color: var(--primary-color);
}

.task-item[data-status="completed"] {
    border-left-color: var(--success-color);
    opacity: 0.7;
}

.task-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.task-checkbox {
    margin-top: 3px;
}

.task-checkbox input[type="checkbox"] {
    display: none;
}

.task-checkbox label {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-light);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.task-checkbox input[type="checkbox"]:checked + label {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.task-checkbox input[type="checkbox"]:checked + label::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
}

.task-content {
    flex: 1;
}

.task-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
    transition: var(--transition);
}

.task-item[data-status="completed"] .task-content h4 {
    text-decoration: line-through;
    color: var(--text-light);
}

.task-content p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
}

.task-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
}

.task-priority {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.task-priority.high {
    background-color: rgba(248, 113, 113, 0.1);
    color: var(--danger-color);
}

.task-priority.medium {
    background-color: rgba(251, 191, 36, 0.1);
    color: var(--warning-color);
}

.task-priority.low {
    background-color: rgba(74, 222, 128, 0.1);
    color: var(--success-color);
}

.task-actions {
    display: flex;
    gap: 8px;
}

.task-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-bg);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
}

.task-action-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-bg);
}

.task-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-light);
}

/* Responsive adjustments for task management */
@media screen and (max-width: 768px) {
    .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .add-task-btn {
        width: 100%;
    }
    
    .task-filters {
        overflow-x: auto;
        padding-bottom: 10px;
        width: 100%;
    }
    
    .task-filter {
        white-space: nowrap;
    }
    
    .task-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .task-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .task-stats {
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
    }
    
    .task-footer .btn-secondary {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .task-item {
        flex-direction: column;
    }
    
    .task-checkbox {
        align-self: flex-start;
    }
    
    .task-actions {
        align-self: flex-end;
        margin-top: -30px;
    }
}

