:root {
    --primary-green: #166647;
    --light-green: #f0f7f4;
    --background-gray: #f8f9fa;
    --border-gray: #e9ecef;
    --text-dark: #212529;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body {
    display: flex;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-gray);
    color: var(--text-dark);
    height: 100vh;
    height: 100dvh;
    overflow: hidden; 
}

* {
    box-sizing: border-box;
}

.sidebar {
    width: 260px;
    background-color: var(--primary-green);
    color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 24px;
    height: 100%;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.sidebar-header {
    margin-bottom: 30px;
    padding-left: 10px;
}

.sidebar-header h3 {
    margin: 0;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.sidebar-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--white);
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-nav a.active {
    background-color: var(--white);
    color: var(--primary-green);
    font-weight: 600;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
}

.main-content {
    flex-grow: 1;
    padding: 30px;
    width: 100%;
    height: 100%;
    overflow-y: auto; 
    overflow-x: hidden;
    padding-bottom: 100px;
}

.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.main-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.main-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-btn {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover {
    background-color: var(--border-gray);
}

.notification-btn i {
    font-size: 18px;
    color: var(--text-dark);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    padding: 0 5px;
}

.notification-badge.hidden {
    display: none;
}

.notification-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    width: 400px;
    max-height: 500px;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.notification-dropdown.active {
    display: flex;
}

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

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.notification-actions {
    display: flex;
    gap: 10px;
}

.mark-all-read,
.clear-all-btn {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.mark-all-read:hover,
.clear-all-btn:hover {
    background-color: rgba(22, 102, 71, 0.1);
}

.clear-all-btn {
    color: #d32f2f;
}

.clear-all-btn:hover {
    background-color: rgba(211, 47, 47, 0.1);
}

.notification-list {
    overflow-y: auto;
    max-height: 400px;
    padding: 10px 0;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-gray);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notification-item:hover {
    background-color: var(--light-green);
}

.notification-item.unread {
    background-color: #f8f9fa;
}

.notification-item.new-notification {
    background: linear-gradient(90deg, #e8f5e9 0%, #f8f9fa 100%);
    border-left: 3px solid var(--primary-green);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-10px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.new-badge {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.notification-btn.pulse {
    animation: buttonPulse 0.5s ease-in-out 3;
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.innovation {
    background: #e3f2fd;
    color: #1976d2;
}

.notification-icon.booking {
    background: #fff3e0;
    color: #f57c00;
}

.notification-icon.project {
    background: #f3e5f5;
    color: #7b1fa2;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px 0;
    color: var(--text-dark);
}

.notification-message {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.notification-time {
    font-size: 12px;
    color: #999;
}

.notification-loading {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-light);
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-light);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    margin-right: auto;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.logout-btn,
.uColab-btn {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    transition: background-color 0.2s;
    font-size: 0;
    font-family: 'Poppins', sans-serif;
}

.logout-btn:hover,
.uColab-btn:hover {
    background-color: var(--border-gray);
}

.logout-btn i,
.uColab-btn i {
    margin-right: 8px;
    font-size: 16px;
}

.logout-btn::after,
.uColab-btn::after {
    content: 'Logout';
    font-size: 16px;
    font-weight: 600;
}

.dashboard-overview h1 {
    font-size: 28px;
    margin: 0 0 5px 0;
    font-family: 'Poppins', sans-serif;
}

.welcome-text {
    font-size: 16px;
    color: var(--text-light);
    margin: 0 0 30px 0;
}

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

.stat-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: var(--white);
    flex-shrink: 0;
}

.stat-icon.blue { background-color: #0d6efd; }
.stat-icon.purple { background-color: #6f42c1; }
.stat-icon.orange { background-color: #fd7e14; }
.stat-icon.green { background-color: #198754; }

.stat-info {
    min-width: 0;
}

.stat-info .stat-title {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-info .stat-number {
    margin: 4px 0;
    font-size: 28px;
    font-weight: 700;
}

.stat-info .stat-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--text-light);
}

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

.content-card {
    background-color: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.content-card h2 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
}

.content-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-card li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-gray);
}

.content-card li:last-child {
    border-bottom: none;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.item-title {
    margin: 0;
    font-weight: 600;
}

.item-subtitle {
    margin: 2px 0 0 0;
    font-size: 14px;
    color: var(--text-light);
}

.tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.tag.trl {
    background-color: #e9ecef;
    color: #495057;
}

.tag.event {
    background-color: #cff4fc;
    color: #055160;
}

.tag.news {
    background-color: #d1e7dd;
    color: #0a3622;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: flex-end;
}

.sort-container label {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-light);
}

.sort-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 35px 10px 15px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    background-color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3E%3Cpath d='M8 11L2 5h12L8 11z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.sort-dropdown:hover {
    border-color: #adb5bd;
}

.sort-dropdown:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(24, 99, 75, 0.1);
}

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        position: relative;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        transform: translateX(-100%);
        width: 260px;
        box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        padding: 20px;
        width: 100%;
        padding-bottom: 120px; 
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-header {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-overview h1 {
        font-size: 24px;
    }
    
    .content-card {
        padding: 16px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .main-content {
        padding: 15px;
        padding-bottom: 120px;
    }
}