:root {
    --primary-color: #4f46e5;
    --secondary-color: #00795a;
    --dark-bg: #1a1a1a;
    --card-bg: #2a2a2a;
    --text-color: #e0e0e0;
    --text-muted: #b0b0b0;
    --border-radius: 12px;
    --box-shadow: 0 6px 20px rgba(107, 72, 255, 0.3);
    --navbar-bg: rgba(42, 42, 42, 0.95);
    --navbar-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    --hover-bg: #3a3a3a;
    --focus-shadow: rgba(107, 72, 255, 0.2);
    --important-color: #e53935;
    --draft-color: #ffaa00;
    --tooltip-bg: #1a1a1a;
    --toast-error: #ff6b6b;
    --toast-success: var(--secondary-color);
    --success:rgb(7, 151, 38);
    --toast-info: var(--primary-color);
    --pagination-hover-bg: var(--hover-bg);
    --pagination-active-bg: var(--primary-color);
    --pagination-active-color: #ffffff;
    --light-card-bg: #3a3a3a;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 70px;
    --glow-color: rgba(79, 70, 229, 0.3);
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --sidebar-bg: #111111;
    --nav-bg: rgba(10, 10, 10, 0.8);
    --light-text-color: #333333;
}
:root[data-theme='light'] {
    --primary-color: #00795a;
    --secondary-color: #4f46e5;
    --dark-bg: #ffffff;
    --card-bg: #f9f9f9;
    --text-color: #333333;
    --text-muted: #666666;
    --border-radius: 12px;
    --box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --light-card-bg: #d8d8d8;
    --sidebar-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --light-text-color: #333333;
    
}

:root[data-theme='dark'] {
    --primary-color: #4f46e5;
    --secondary-color: #00795a;
    --dark-bg: #1a1a1a;
    --card-bg: #2a2a2a;
    --text-color: #e0e0e0;
    --text-muted: #b0b0b0;
    --border-radius: 12px;
    --box-shadow: 0 6px 20px rgba(107, 72, 255, 0.3);
    --navbar-bg: rgba(42, 42, 42, 0.95);
    --navbar-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    --light-card-bg: #3a3a3a;
    --light-text-color: #ffffff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Top Navigation */
/* .top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: var(--navbar-bg);
    border-bottom: 1px solid var(--navbar-shadow);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--navbar-shadow);
} */

.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 40px;
}

.logo span {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
}

.search-bar {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border-radius: 25px;
    border: 1px solid var(--text-muted);
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(107, 72, 255, 0.2); /* No variable for this */
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.icon-btn:hover {
    color: var(--primary-color);
}

.notification-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
}

.user-profile {
    cursor: pointer;
    padding: 5px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    background: var(--light-card-bg)
}

.user-profile:hover {
    background-color: var(--card-bg);
}
.notifications-panel {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 380px;
    background-color: #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    max-height: calc(100vh - 100px);
}

.notifications-panel.show {
    display: flex;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #3a3a3a;
}

.notifications-header h3 {
    color: #e0e0e0;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.notifications-actions {
    display: flex;
    gap: 12px;
}

.notifications-action, .notifications-close {
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.notifications-action:hover, .notifications-close:hover {
    color: #e0e0e0;
    background-color: #3a3a3a;
}

.notifications-tabs {
    display: flex;
    border-bottom: 1px solid #3a3a3a;
    background-color: #252525;
}

.notifications-tab {
    flex: 1;
    border: none;
    background: none;
    color: #b0b0b0;
    padding: 12px 0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.notifications-tab.active {
    color: var(--primary-color);
    font-weight: 500;
}

.notifications-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.notifications-tab:hover:not(.active) {
    color: #e0e0e0;
    background-color: #3a3a3a;
}

.notifications-list {
    overflow-y: auto;
    max-height: 400px;
}

.notification-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #3a3a3a;
    transition: background-color 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background-color: #333333;
}

.notification-item.unread {
    background-color: rgba(79, 70, 229, 0.1);
}

.notification-item.unread:hover {
    background-color: rgba(79, 70, 229, 0.15);
}

.notification-icon {
    width: 40px;
    height: 40px;
    background-color: #3a3a3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    margin-right: 15px;
    flex-shrink: 0;
}

.notification-item.unread .notification-icon {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.notification-item.important .notification-icon {
    background-color: #e53935;
    color: var(--light-text-color);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 5px;
    font-size: 14px;
}

.notification-message {
    color: #b0b0b0;
    font-size: 13px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.notification-time {
    color: #888888;
    font-size: 12px;
}

.notification-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.notification-item:hover .notification-actions {
    opacity: 1;
}

.notification-action {
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 14px;
    cursor: pointer;
    padding: 3px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-action:hover {
    color: #e0e0e0;
    background-color: #3a3a3a;
}

.notification-item.unread .notification-action i.fa-circle {
    color: var(--primary-color);
}

.notifications-footer {
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid #3a3a3a;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Empty state */
.notifications-empty {
    padding: 30px 20px;
    text-align: center;
    color: #b0b0b0;
}

.notifications-empty i {
    font-size: 48px;
    color: #4a4a4a;
    margin-bottom: 15px;
}

.notifications-empty-title {
    font-size: 16px;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.notifications-empty-text {
    font-size: 14px;
    color: #b0b0b0;
}
.avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.user-info {
    display: none;
}

@media (min-width: 768px) {
    .user-info {
        display: block;
    }
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* Radial Menu */
/* .radial-menu-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: none;
    color: var(--light-text-color);
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s, background-color 0.3s;
    overflow: hidden;
}

.radial-menu-btn:hover {
    transform: scale(1.1);
}

.radial-menu-btn.active {
    background-color: var(--secondary-color);
}

.radial-menu {
    position: fixed;
    bottom: 60px;
    left: 120px;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: opacity 0.3s, visibility 0.3s;
}

.radial-menu.show {
    opacity: 1;
    visibility: visible;
} */

.menu-circle {
    position: relative;
    width: 250px;
    height: 250px;
}

.menu-item {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text-color);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translate(0, 0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.menu-item .menu-label {
    position: absolute;
    background-color: #1a1a1a;
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.menu-item:hover .menu-label {
    opacity: 1;
}

.menu-item:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.sub-menu {
    position: absolute;
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    animation: fadeIn 0.3s;
    top: -100px;
    left: 25px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* .menu-item:hover .sub-menu {
    display: flex;
} */


.sub-menu-item {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-menu-item:hover {
    background-color: var(--primary-color);
}

.sub-menu-item.active {
    background-color: rgba(107, 72, 255, 0.2);
    font-weight: 500;
}

/* Main Content */
/* .main-content {
    padding: 30px 40px;
    max-width: 1400px;
    margin: 0 auto;
} */

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.content-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color);
}

.content-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    /* width: 100%; */
    min-width: 120px;
    min-height: 40px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn:hover {
    background-color: #4338ca;
} 
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(107, 72, 255, 0.1);
}
.action-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 5px;
}
.edit-btn {
    background-color: var(--primary-color);
    color: var(--pagination-active-color);
}
.delete-btn {
    background-color: var(--toast-error);
    color: var(--pagination-active-color);
}
/* Filter Controls */
.filter-controls {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    background-color: var(--card-bg);
    padding: 15px 20px;
    border-radius: var(--border-radius);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 14px;
    color: var(--text-muted);
}

.filter-select {
    padding: 8px 15px;
    border-radius: 20px;
    /* border: 1px solid #4a4a4a; */
    /* border: 1px solid #4a4a4a; */
    border: 1px solid var(--text-muted);
    background-color: var(--light-card-bg);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.view-toggle {
    margin-left: auto;
    display: flex;
    background-color: #3a3a3a;
    border-radius: 20px;
    padding: 5px;
}

.view-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Data Grid */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    animation: slideIn 0.5s;
}

.data-grid.list-view {
    grid-template-columns: 1fr;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.research-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.research-card:hover {
    transform: translateY(-5px);
    /* box-shadow: var(--box-shadow); */
    box-shadow: 0 6px 20px rgba(107, 72, 255, 0.3);
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
}

.research-card.status-published::before {
    background-color: var (--secondary-color);
}

.research-card.status-draft::before {
    background-color: #ffaa00;
}

.research-card.status-pending::before {
    background-color: var(--primary-color);
}

.research-card h3 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.research-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.research-detail {
    display: flex;
    font-size: 14px;
    color: var(--light-text-color);
}

.detail-label {
    min-width: 60px;
    font-weight: 500;
    color: var(--light-text-color);
}

.research-card .status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--light-text-color);
    margin-top: 10px;
}

.status-published { background-color: var(--secondary-color); }
.status-draft { background-color: #c08104; }
.status-pending { background-color: var(--primary-color); }

.research-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.card-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px;
}

.card-btn:hover {
    color: #333;
}

/* List View */
.data-grid.list-view .research-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.data-grid.list-view .research-card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.data-grid.list-view .research-card h3 {
    grid-column: 1 / -1;
    margin-bottom: 5px;
}

/* Empty State */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
}

.empty-state-icon {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    color: var (--text-muted);
    max-width: 400px;
    margin-bottom: 20px;
}

#empty-state {
    display: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    background-color: var(--pagination-hover-bg);
}

.page-btn.active {
    background-color: var(--pagination-active-bg);
    color: var(--pagination-active-color);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
    
}
/* --- Outer-space star field -------------------- */
@keyframes starTwinkle {
    0%   { opacity: 0;   transform: scale(0);   }
    25%  { opacity: .35; transform: scale(1);   }
    75%  { opacity: .35; transform: scale(1);   }
    100% { opacity: 0;   transform: scale(0);   }
}
.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    animation: starTwinkle 4s ease-out forwards;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}


.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 700px;
    padding: 30px;
    animation: fadeIn 0.3s;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-title {
    font-size: 24px;
    color: var(--text-color);
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary-color);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.required-mark {
    color: #ff6b6b;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #4a4a4a;
    border-radius: 8px;
    background-color: var(--light-card-bg);
    color: var(--text-color);
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(107, 72, 255, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.file-input-group {
    position: relative;
    margin-top: 10px;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-input-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #3a3a3a;
    color: var(--text-color);
    border: 1px dashed #4a4a4a;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.file-input-btn:hover {
    border-color: var(--primary-color);
    background-color: rgba(107, 72, 255, 0.1);
}

.file-name {
    margin-top: 5px;
    font-size: 14px;
    color: var(--text-muted);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #3a3a3a;
}

.tab-navigation {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #3a3a3a;
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-navigation::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
    transform-origin: top right;
}

.toast-icon {
    font-size: 20px;
    min-width: 24px;
    text-align: center;
}

.toast-success .toast-icon {
    color: var(--secondary-color);
}

.toast-error .toast-icon {
    color: #ff6b6b;
}

.toast-info .toast-icon {
    color: var(--primary-color);
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.toast-message {
    font-size: 14px;
    color: var(--text-muted);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s;
}

.toast-close:hover {
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
    .top-nav {
        padding: 15px 20px;
    }

    .logo span {
        display: none;
    }

    .search-bar {
        max-width: 100%;
        margin: 0 10px;
    }

    .main-content {
        padding: 20px;
        display: relative;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .data-grid.list-view .research-card {
        grid-template-columns: 1fr;
    }

    .data-grid.list-view .research-card-content {
        grid-template-columns: 1fr;
    }

    .radial-menu-btn {
        bottom: 20px;
        left: 20px;
    }

    .radial-menu {
        bottom: 50px;
        left: 50px;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .view-toggle {
        margin-left: 0;
        align-self: flex-end;
    }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 5px 10px;
    width: max-content;
    max-width: 200px;
    font-size: 12px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

[data-tooltip]:hover:before {
    visibility: visible;
    opacity: 1;
}
/* Quick Start Guide Styles */
.quick-start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.quick-start-overlay.active {
    display: flex;
}
.quick-start-step {
    position: absolute;
    display: none;
    align-items: center;
    gap: 20px;
}
.quick-start-step.active {
    display: flex;
}
.highlight {
    position: relative;
    z-index: 2010;
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.7);
    background-color: rgba(79, 70, 229, 0.1);
}
.quick-start-tooltip {
    background-color: #3a3a3a;
    border-radius: 8px;
    padding: 15px;
    max-width: 300px;
    color: #e0e0e0;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}
.quick-start-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}
.quick-start-tooltip.left::before {
    border-left-color: #3a3a3a;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
}
.quick-start-tooltip.right::before {
    border-right-color: #3a3a3a;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
}
.quick-start-tooltip.bottom::before {
    border-bottom-color: #3a3a3a;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
}
.quick-start-tooltip.top::before {
    border-top-color: #3a3a3a;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}
.quick-start-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.quick-start-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.next-btn {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}
.next-btn:hover {
    background-color: #4338ca;
}
.skip-btn {
    background-color: #ff3333;
    color: var(--light-text-color);
}
.skip-btn:hover {
    background-color: #e52e2e;
}
.action-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 5px;
}
.particle-loader-container {
    display: flex;
    gap: 20px;
    position: relative;
    /* background: #ffffff; */
    overflow: hidden;
    transition: all .5s ease;
  }

  .particle-loader-cards-wrapper {
    /* max-width: calc(240px * 4); */
    display: flex;
    flex-flow: row wrap;
    gap: 20px;
    position: relative;
    transition: all .5s ease;
  }

  .particle-loader-card {
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 0 1px rgba(0,0,0,0.1);
  }

  .gradient-overlay {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
  background: radial-gradient(circle at center,
      #ff00ff 0%,    /* Bright pink */
      #8a2be2 25%,   /* Purple */
      #00bfff 50%,   /* Bright blue */
      #9932cc 75%,   /* Purple */
      #ff69b4 100%   /* Pink */
  );
    background-size: 400% 400%;
    opacity: 0.9;
    animation: gradient 8s infinite alternate;
  }

  .particle-loader-shape {
    width: 120px;
    height: 120px;
    filter: blur(5px);
    background: #ffffff5b;
    background: linear-gradient(45deg, rgba(255,255,255,0.5), rgba(255,255,255,0.3), rgba(255,255,255,0.5), rgba(255,255,255,0.3));
    border-radius: 50%;
    position: absolute;
    transition: all 2s ease-in-out;
    transform: translate(-50%, -50%);
  }
  @keyframes moveInfinity {
    0%, 100% {
      transform: translate(150px, 100px);
    }
    
    25% {
      transform: translate(250px, 60px);
    }
    
    37.5% {
      transform: translate(150px, 20px);
    }
    
    50% {
      transform: translate(50px, 60px);
    }
    
    62.5% {
      transform: translate(150px, 100px);
    }
    
    75% {
      transform: translate(250px, 140px);
    }
    
    87.5% {
      transform: translate(150px, 180px);
    }
    
    100% {
      transform: translate(50px, 140px);
    }
  }
  .particle-loader-shape.blob {
    animation: blobAnimation 8s infinite;
  }
  @keyframes blobAnimation {
    0%, 100% {
      border-radius: 50%;
    }
    25% {
      border-radius: 62% 38% 70% 30% / 30% 65% 35% 70%;
    }
    50% {
      border-radius: 43% 57% 27% 73% / 73% 27% 73% 27%;
    }
    75% {
      border-radius: 28% 72% 65% 35% / 42% 58% 42% 58%;
    }
  }
  @keyframes bulgeShape {
      0% {
          transform: scale(1) rotate(0deg);
          /* border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; */
          border-radius: 50%;
      }
      50% {
          transform: scale(1.6) rotate(180deg);
          /* border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; */
          border-radius: 62% 38% 70% 30% / 30% 65% 35% 70%;
      }
      100% {
          transform: scale(1) rotate(360deg);
          /* border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; */
          border-radius: 28% 72% 65% 35% / 42% 58% 42% 58%;
      }
  }

  @keyframes bulgeWander {
    0% {
      left: -50px;
      top: 50%;
      opacity: 0;
    }
    10% {
      opacity: 1;
      top: 20%;
    }
    30% {
      top: 70%;
    }
    50% {
      top: 30%;
      left: 40%;
    }
    70% {
      top: 80%;
    }
    90% {
      opacity: 1;
      top: 40%;
    }
    100% {
      left: calc(100% + 50px);
      top: 50%;
      opacity: 0;
    }
  }
@keyframes gradient {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}
  @keyframes gradientMove {
    0% {
      transform: translate(0, 0) rotate(0deg);
    }
    50% {
      transform: translate(-25%, -25%) rotate(-5deg);
    }
    100% {
      transform: translate(-50%, 0) rotate(0deg);
    }
  }

  .particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
  }

  @keyframes particleFloat {
    0% {
      transform: translate(var(--startX), var(--startY));
      opacity: 0;
    }
    20% {
      opacity: var(--opacity);
    }
    80% {
      opacity: var(--opacity);
    }
    100% {
      transform: translate(var(--endX), var(--endY));
      opacity: 0;
    }
  }
.top-nav {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    /* background: var(--nav-bg); */
    background: var(--primary-color);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 70px;
}

.top-nav.sidebar-collapsed {
    left: var(--sidebar-collapsed-width);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--border-color);
    transform: scale(1.05);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    /* color: var(--text-muted); */
    color: var(--light-text-color);
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-separator {
    /* color: var(--text-muted); */
    color: var(--light-text-color);
}

.breadcrumb-current {
    /* color: var(--text-muted); */
    color: var(--light-text-color);
    font-weight: 500;
}

/* Enhanced Search Bar */
.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid transparent;
    border-radius: 20px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--glow-color), 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 16px;
    z-index: 2;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon {
    color: var(--primary-color);
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-button {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--light-text-color);    
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-button:hover {
    background: var(--border-color);
    color: var(--text-color);
    transform: translateY(-1px);
}

.nav-button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 20px var(--glow-color);
}

.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--error-color);
    border-radius: 50%;
    border: 2px #fff;
    animation: pulse 2s infinite;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 16px;
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 16px;
    border: 1px solid var(--border-color);
}

.user-profile:hover {
    background: var(--border-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-info {
    display: none;
}

@media (min-width: 768px) {
    .user-info {
        display: block;
    }
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.2;
}

/* Modern Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
}

.sidebar.collapsed .sidebar-header {
    padding: 20px 12px;
    justify-content: center;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 20px var(--glow-color);
    flex-shrink: 0;
}

.go-home {
    cursor: pointer; 
}

.brand-text {
    font-size: 14px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .brand-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Navigation Menu */
.nav-menu {
    padding: 20px 0;
}

.nav-section {
    margin-bottom: 32px;
}

.nav-section-title {
    padding: 0 24px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-section-title {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.nav-item {
    position: relative;
    margin: 0 12px 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: var(--border-color);
    color: var(--text-color);
    transform: translateX(4px);
}

.nav-link.active {
    /* background: var(--primary-color); */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 20px var(--glow-color);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
    border-radius: 0 4px 4px 0;
}

.nav-icon {
    width: 20px;
    font-size: 18px;
    text-align: center;
    flex-shrink: 0;
}

.nav-text {
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.nav-badge {
    background: var(--error-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: auto;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-badge {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Submenu */
.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 36px;
    margin-top: 4px;
}

.nav-item.expanded .nav-submenu {
    max-height: 300px;
}

.nav-submenu .nav-link {
    padding: 8px 16px;
    font-size: 13px;
    margin: 2px 0;
}

.nav-expand-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.nav-item.expanded .nav-expand-icon {
    transform: rotate(90deg);
}

.sidebar.collapsed .nav-expand-icon {
    display: none;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-collapsed-width);
    margin-top: 70px;
    padding: 32px;
    min-height: calc(100vh - 70px);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* Quick Actions Panel */
.quick-actions {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 998;
}

.quick-action-btn {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 16px;
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.quick-action-btn:hover {
    transform: scale(1.05);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 32px var(--glow-color);
}

.quick-action-btn.primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 32px var(--glow-color);
}

.quick-action-btn.primary:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px var(--glow-color);
}

/* Demo Content */
.demo-section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 0;
}

.demo-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin: 0 auto 20px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
        --sidebar-collapsed-width: 0px;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .top-nav {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .quick-actions {
        bottom: 20px;
        right: 20px;
    }

    .demo-title {
        font-size: 32px;
    }

    .demo-subtitle {
        font-size: 16px;
    }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   ENHANCED UI/UX IMPROVEMENTS
   ======================================== */

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus indicators for keyboard navigation */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-color: #000000;
        --text-muted: #333333;
        --card-bg: #ffffff;
        --border-color: #000000;
    }
    
    :root[data-theme='dark'] {
        --text-color: #ffffff;
        --text-muted: #cccccc;
        --card-bg: #000000;
        --border-color: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   LOADING STATES & SKELETON SCREENS
   ======================================== */

/* Skeleton loading animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, 
        var(--card-bg) 25%, 
        var(--light-card-bg) 50%, 
        var(--card-bg) 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner.large {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Button loading state */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 1s linear infinite;
}

/* ========================================
   ENHANCED ERROR HANDLING
   ======================================== */

/* Error states */
.error-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.error-icon {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.error-message {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Form error states */
.form-group.error .form-control {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.form-group.error .error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-group.error .error-message::before {
    content: '⚠';
    font-size: 1rem;
}

/* Network error handling */
.network-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.network-error-icon {
    color: #ef4444;
    font-size: 1.25rem;
}

.network-error-content {
    flex: 1;
}

.network-error-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.network-error-message {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   ENHANCED RESPONSIVE DESIGN
   ======================================== */

/* Mobile-first responsive breakpoints */
@media (max-width: 480px) {
    /* Extra small devices */
    .container {
        padding: 0 1rem;
    }
    
    .dashboard-container {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
    }
    
    .research-card {
        margin-bottom: 1rem;
    }
    
    .top-nav {
        padding: 0.75rem 1rem;
    }
    
    .logo span {
        display: none;
    }
    
    .search-bar {
        margin: 0 0.5rem;
        max-width: 200px;
    }
    
    .user-actions {
        gap: 0.5rem;
    }
    
    .nav-button {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .sidebar {
        width: 100%;
        max-width: 320px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .quick-actions {
        bottom: 1rem;
        right: 1rem;
    }
    
    .quick-action-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    /* Small devices */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-bar {
        max-width: 300px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Medium devices */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .data-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) {
    /* Large devices */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .form-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .data-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .dashboard-container {
        padding: 1rem;
    }
    
    .demo-section {
        padding: 2rem 0;
    }
    
    .demo-title {
        font-size: 2rem;
    }
    
    .demo-subtitle {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
}

/* ========================================
   TOUCH-FRIENDLY INTERACTIONS
   ======================================== */

/* Larger touch targets for mobile */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .card-btn {
        min-height: 44px;
        padding: 0.5rem 1rem;
    }
    
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .checkbox-input {
        min-width: 44px;
        min-height: 44px;
    }
    
    .radio-input {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Touch feedback */
@media (hover: none) and (pointer: coarse) {
    .btn:active,
    .nav-link:active,
    .card-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
    
    .research-card:active {
        transform: scale(0.98);
    }
}

/* ========================================
   ENHANCED TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    width: calc(100vw - 40px);
}

.toast {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideInRight 0.3s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast.info {
    border-left: 4px solid var(--primary-color);
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info .toast-icon {
    color: var(--primary-color);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.toast-close:hover {
    background: var(--hover-bg);
    color: var(--text-color);
}

/* Toast auto-dismiss animation */
.toast.dismissing {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========================================
   ENHANCED FORM STYLES
   ======================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Form validation states */
.form-control.valid {
    border-color: var(--success);
}

.form-control.invalid {
    border-color: #ef4444;
}

.form-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ========================================
   ENHANCED BUTTON STYLES
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Button sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-height: 52px;
}

/* ========================================
   ENHANCED CARD STYLES
   ======================================== */

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.card-body {
    color: var(--text-muted);
    line-height: 1.6;
}

.card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ========================================
   ENHANCED TABLE STYLES
   ======================================== */

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--light-card-bg);
    font-weight: 600;
    color: var(--text-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr:hover {
    background: var(--hover-bg);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive table */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
    }
    
    .table-responsive .table {
        display: block;
    }
    
    .table-responsive thead {
        display: none;
    }
    
    .table-responsive tbody {
        display: block;
    }
    
    .table-responsive tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
        background: var(--card-bg);
    }
    
    .table-responsive td {
        display: block;
        text-align: right;
        padding: 0.5rem 0;
        border: none;
    }
    
    .table-responsive td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        float: left;
    }
}

/* ========================================
   ENHANCED MODAL STYLES
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--hover-bg);
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ========================================
   ENHANCED PAGINATION
   ======================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.page-btn:hover:not(:disabled) {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   ENHANCED SEARCH & FILTERS
   ======================================== */

.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.875rem;
    min-width: 120px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

/* ========================================
   ENHANCED EMPTY STATES
   ======================================== */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.empty-state p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   ENHANCED PROGRESS INDICATORS
   ======================================== */

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-card-bg);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* ========================================
   ENHANCED BADGES & TAGS
   ======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.badge-success {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--light-card-bg);
    color: var(--text-color);
    border-radius: 6px;
    font-size: 0.875rem;
    margin: 0.125rem;
}

.tag-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 0.75rem;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-remove:hover {
    background: var(--hover-bg);
    color: var(--text-color);
}

/* ========================================
   ENHANCED TOOLTIPS
   ======================================== */

[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tooltip-bg);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-tooltip]:after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--tooltip-bg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 1000;
    pointer-events: none;
}

[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* ========================================
   ENHANCED ANIMATIONS
   ======================================== */

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Stagger animation for lists */
.stagger-item {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

/* ========================================
   ENHANCED PRINT STYLES
   ======================================== */

@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card,
    .modal-content {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .btn {
        border: 1px solid #ccc !important;
        background: white !important;
        color: black !important;
    }
}

/* ========================================
   ENHANCED DARK MODE SUPPORT
   ======================================== */

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --primary-color: #4f46e5;
        --secondary-color: #00795a;
        --dark-bg: #1a1a1a;
        --card-bg: #2a2a2a;
        --text-color: #e0e0e0;
        --text-muted: #b0b0b0;
        --border-color: #404040;
        --hover-bg: #3a3a3a;
        --light-card-bg: #3a3a3a;
    }
}

/* ========================================
   ENHANCED PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Hardware acceleration for animations */
.animate-gpu {
    transform: translateZ(0);
    will-change: transform;
}

/* Optimized transitions */
.transition-fast {
    transition: all 0.15s ease-out;
}

.transition-normal {
    transition: all 0.3s ease-out;
}

.transition-slow {
    transition: all 0.5s ease-out;
}

/* ========================================
   ENHANCED UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-success { color: var(--success); }
.text-warning { color: #f59e0b; }
.text-danger { color: #ef4444; }
.text-muted { color: var(--text-muted); }

.bg-primary { background: var(--primary-color); }
.bg-success { background: var(--success); }
.bg-warning { background: #f59e0b; }
.bg-danger { background: #ef4444; }
.bg-muted { background: var(--text-muted); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

.shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.shadow-md { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); }

/* ========================================
   END OF ENHANCED UI/UX IMPROVEMENTS
   ======================================== */