:root {
    /* Base Colors - Light */
    --bg-main: #f3f6f9;
    --bg-secondary: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;

    /* Accents */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #ec4899;

    /* Status Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Login Overlay */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-normal);
}

.login-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.login-card {
    text-align: center;
    padding: 50px 40px;
    max-width: 450px;
    width: 90%;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: #fff;
    border: 1px solid var(--border-color);
}

.login-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    object-fit: contain;
}

.login-card h2 {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 5px;
}

.login-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.4;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.05) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 2px;
}

a {
    text-decoration: none;
    color: var(--primary);
}

ul {
    list-style: none;
}

/* Panel Utility (Flat vOffice Style) */
.glass-panel {
    background: #ffffff;
    border: 1px solid #e1e5eb;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}

/* VIOIT Top Bar */
.vioit-top-bar {
    background: #f1f1f1;
    border-bottom: 1px solid #ddd;
    font-size: 13px;
    padding: 3px 0;
}

.top-bar-right {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.top-bar-right a {
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

/* VIOIT Header */
.vioit-header {
    background: var(--bg-secondary);
    padding: 10px 0;
    transition: background var(--transition-normal);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-area img {
    height: 90px;
    border-radius: 50%;
    /* Just to make it clean if it has a background */
}

.title-area {
    flex: 1;
    text-align: center;
}

.ministry-title {
    color: #cc0000;
    font-size: 20px;
    font-family: var(--font-heading);
    margin-bottom: 2px;
    font-weight: 700;
    text-transform: uppercase;
}

.institute-title {
    color: #005bb5;
    font-size: 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0px;
}

.hotline-btn {
    background: #cc0000;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(204, 0, 0, 0.3);
}

/* VIOIT Navigation Bar */
.vioit-navbar {
    background: #0088cc;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.vioit-navbar .nav-list {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.vioit-navbar .nav-item a {
    color: white;
    font-weight: 600;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    transition: background 0.3s;
}

.vioit-navbar .nav-item:hover a,
.vioit-navbar .nav-item.active a {
    background: #005bb5;
}

.nav-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar-nav {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 4px;
    padding: 6px 12px;
}

.search-bar-nav input {
    border: none;
    outline: none;
    padding: 2px 5px;
    font-size: 14px;
    font-family: var(--font-body);
}

.search-bar-nav i {
    color: #666;
    font-size: 16px;
    cursor: pointer;
}

/* VOffice Navigation Highlighting */
.voffice-main-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.voffice-main-nav .nav-item span {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.voffice-main-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.voffice-main-nav .nav-item:hover span {
    color: white;
}

.voffice-main-nav .nav-item.active {
    background: #005bb5;
    border-bottom: 3px solid #ffcc00;
}

.voffice-main-nav .nav-item.active span {
    color: white;
}

/* App Layout Override for Top Nav */
.app-container {
    display: block;
    min-height: calc(100vh - 100px);
    padding-top: 20px;
}

.main-content {
    padding: 20px 0;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-main);
    padding: 10px 20px;
    border-radius: 30px;
    width: 400px;
    border: 1px solid var(--border-color);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-bar i {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.icon-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--bg-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-main);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
}

#btn-sync-drive {
    border-color: var(--primary);
    color: var(--primary);
    transition: all var(--transition-normal);
}

#btn-sync-drive:hover {
    background: var(--primary-hover);
    color: white;
}

#btn-sync-drive.syncing i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Views Container */
.views-container {
    position: relative;
}

.view-section {
    display: none;
    animation: fadeIn var(--transition-normal);
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.view-title {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.view-subtitle {
    color: var(--text-muted);
}

.date-display {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.8;
}

/* VOffice Stats Grid */
.voffice-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.voffice-category-card {
    padding: 15px 20px;
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e1e5eb;
}

.cat-icon {
    font-size: 24px;
}

.cat-header h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin: 0;
}

.cat-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-main);
}

.cat-row span {
    color: var(--text-muted);
}

.cat-row b {
    color: var(--primary);
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(var(--bg-secondary-rgb), 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-color);
    border: 1px solid var(--border-color);
}

.stat-content h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
}

/* Dashboard Widgets */
.dashboard-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.widget {
    display: flex;
    flex-direction: column;
}

.widget-header {
    padding: 10px 16px;
    border-bottom: 1px solid var(--glass-border);
}

.widget-header h3 {
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.widget-body {
    padding: 12px 16px;
    flex: 1;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    display: flex;
    gap: 16px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--info-bg);
    color: var(--info);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-details p {
    font-size: 0.95rem;
    color: var(--text-main);
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.login-actions {
    margin-top: 30px;
}

.login-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.login-divider span {
    position: relative;
    background: #fff;
    padding: 0 15px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#staff-login-form .form-group input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

/* Modal and Overlays */
.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-thumb {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--bg-main);
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.news-title:hover {
    color: var(--primary);
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}


/* Filters Bar */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 16px;
}

.form-control {
    padding: 8px 12px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-main);
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.search-box input {
    border: none;
    background: none;
    padding: 8px 0;
    color: var(--text-main);
    outline: none;
    font-size: 0.9rem;
}

/* Data Tables */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.data-table th {
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(var(--bg-main-rgb), 0.5);
}

.data-table tbody tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-pending::before {
    background: var(--warning);
}

.status-processing {
    background: var(--info-bg);
    color: var(--info);
}

.status-processing::before {
    background: var(--info);
}

.status-completed {
    background: var(--success-bg);
    color: var(--success);
}

.status-completed::before {
    background: var(--success);
}

.status-urgent {
    background: var(--danger-bg);
    color: var(--danger);
}

.status-urgent::before {
    background: var(--danger);
}

/* Task Board */
.task-board {
    display: flex;
    gap: 12px;
    height: calc(100vh - 160px);
    overflow-x: auto;
    padding-bottom: 12px;
}

.task-column {
    flex: 1;
    min-width: 280px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.column-header {
    padding: 10px 12px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-header h3 {
    font-size: 1.1rem;
}

.column-header .badge {
    background: var(--bg-main);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.column-body {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    cursor: grab;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.task-card:active {
    cursor: grabbing;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.task-title {
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-main);
}

.task-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Priority Tags */
.priority-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.prio-high {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.prio-medium {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.prio-low {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid var(--info);
}

/* Trips Grid */
.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.trip-card {
    padding: 12px;
    position: relative;
}

.trip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.trip-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.trip-location {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trip-dates {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-main);
    padding: 6px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.trip-dates i {
    color: var(--primary);
}

.trip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 12px;
    margin-top: 12px;
}

.trip-budget {
    font-weight: 600;
    color: var(--success);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
    position: relative;
    padding: 0;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 10;
}

/* Clickable elements */
.clickable-name {
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 2px 4px;
    border-radius: 4px;
}

.clickable-name:hover {
    background: rgba(59, 130, 246, 0.1);
    text-decoration: underline;
    color: #2563eb;
}


.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close-btn:hover {
    color: var(--danger);
}

.modal-body {
    padding: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: var(--text-muted);
}

.empty-img {
    width: 200px;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Action Buttons in tables */
.actions-cell {
    display: flex;
    gap: 8px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 24px;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out forwards;
}

.toast.toast-success {
    border-color: var(--success);
}

.toast.toast-error {
    border-color: var(--danger);
}

.toast i {
    font-size: 1.2rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* ============================================================
   ĐỀ ÁN TAB STYLES
   ============================================================ */

/* Stats Bar */
.dean-stats-bar {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

.dean-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    gap: 4px;
    border-right: 1px solid var(--border-color);
    text-align: center;
}

.dean-stat-item:last-child {
    border-right: none;
}

.dean-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.dean-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary);
}

/* Section Cards */
.dean-section {
    margin-bottom: 12px;
    overflow: hidden;
}

/* Dean Table */
.dean-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.dean-table thead tr {
    background: linear-gradient(135deg, #005bb5, #0077cc);
    color: white;
}

.dean-th-roman {
    width: 44px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    padding: 10px;
    vertical-align: middle;
}

.dean-th-title {
    text-align: left;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

.dean-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.dean-table tbody tr:last-child {
    border-bottom: none;
}

.dean-table tbody tr:hover {
    background: rgba(79, 70, 229, 0.04);
}

.dean-td-idx {
    width: 44px;
    text-align: center;
    vertical-align: top;
    padding: 10px 4px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
}

.dean-td-name {
    padding: 10px 14px;
    vertical-align: top;
    line-height: 1.55;
    color: var(--text-main);
}

.dean-td-note {
    width: 230px;
    padding: 10px 10px;
    vertical-align: top;
    font-size: 0.82rem;
}

.dean-note-role {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2px;
}

.dean-note-dec {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 4px;
}

.dean-note-extra {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.78rem;
    margin-top: 4px;
}

.dean-td-actions {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    opacity: 0;
    transition: opacity 0.15s;
}

.dean-table tbody tr:hover .dean-td-actions {
    opacity: 1;
}

/* Dark mode support */
[data-theme="dark"] .dean-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.08);
}

[data-theme="dark"] .dean-stats-bar {
    background: var(--bg-secondary);
}

/* Header Branding */
#inst-name {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
}

#dept-name {
    display: block;
    color: #ffffff;
    transition: color var(--transition-fast);
}

.logo-area:hover #inst-name {
    color: #ffffff;
}

/* Table Actions visibility for contacts */
#contacts-table tbody tr:hover .btn-icon {
    opacity: 1;
}

.btn-icon {
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

tr:hover .btn-icon {
    opacity: 1;
}

/* ============================================================
   DANH BẠ (CONTACTS) STYLES
   ============================================================ */

#contacts-table-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

#contacts-table td {
    padding: 12px 14px;
    vertical-align: middle;
}

#contacts-table a:hover {
    text-decoration: underline !important;
}

/* ============================================================
   V-OFFICE MAIN NAVIGATION (HEADER BOTTOM)
   ============================================================ */
.header-bottom {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.voffice-main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-item,
.voffice-main-nav li {
    font-family: var(--font-heading);
    font-size: 15px;
    /* Tăng cỡ chữ */
    font-weight: 700;
    /* Tăng độ đậm */
    color: #ffffff !important;
    text-transform: uppercase;
    position: relative;
    padding: 16px 24px !important;
    /* Tăng khoảng cách click */
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease !important;
}

.voffice-main-nav a {
    color: inherit !important;
}

/* Hover effect */
.nav-item:hover,
.voffice-main-nav li:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Active State */
.nav-item.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.25) !important;
    /* Elegant gold indicator */
}

/* Badges for Manager Dashboard */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    min-width: 20px;
}

/* Notifications */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.notification-card {
    padding: 20px;
    border-radius: 12px;
    position: relative;
    border-left: 5px solid var(--primary);
    transition: transform 0.2s;
    background: white;
    margin-bottom: 10px;
}

.notification-card:hover {
    transform: translateY(-2px);
}

.notification-card.priority-important {
    border-left-color: var(--warning);
}

.notification-card.priority-urgent {
    border-left-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.notify-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.notify-main h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.notify-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.notify-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}

.priority-urgent .notify-main h4 {
    color: var(--danger);
}

/* Dashboard Widget */
.notify-widget {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
}

.notify-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 600;
}

/* ============================================================
   RESPONSIVE (MOBILE) STYLES
   ============================================================ */
@media (max-width: 768px) {

    /* Hide some elements on mobile */
    .hide-on-mobile {
        display: none !important;
    }

    /* Show hamburger menu toggle */
    #mobileMenuToggle {
        display: block !important;
    }

    /* Adjust branding title */
    #dept-name {
        display: block !important;
        font-size: 11px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        width: 100%;
    }

    #inst-name {
        display: block !important;
        font-size: 8px !important;
        white-space: normal !important;
        line-height: 1.2 !important;
        width: 100%;
        margin-bottom: 2px;
    }

    .logo-area img {
        height: 28px !important;
    }

    /* Navigation styling on mobile dropdown */
    .header-bottom {
        padding: 0;
        position: absolute;
        width: 100%;
        background: #005bb5 !important;
        z-index: 1000;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .voffice-main-nav ul {
        flex-direction: column;
        display: none;
        /* Hidden by default */
        padding: 10px 0;
    }

    .voffice-main-nav ul.show {
        display: flex;
    }

    .nav-item,
    .voffice-main-nav li {
        width: 100%;
        text-align: left;
        padding: 12px 20px !important;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .nav-item.active {
        border-left: 4px solid #ffcc00;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    /* Adjust grid layouts */
    .voffice-stats-grid,
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }

    /* Reduce font size for tables */
    .table td,
    .table th,
    .data-table td,
    .data-table th,
    .dean-table td,
    .dean-table th {
        font-size: 12px !important;
        padding: 8px 6px !important;
    }

    /* Manager stats table scroll */
    .table-responsive {
        overflow-x: auto;
    }
}

/* Quick Status Menu */
.quick-status-menu {
    position: fixed;
    z-index: 10000;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 6px;
    min-width: 160px;
    animation: slideInUp 0.15s ease-out;
}

.quick-status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    border-radius: 6px;
    transition: background var(--transition-fast);
}

.quick-status-item:hover {
    background: var(--bg-main);
    color: var(--primary);
}

.quick-status-item i {
    font-size: 1.1rem;
}

.quick-status-item.status-in-progress i {
    color: var(--info);
}

.quick-status-item.status-done i {
    color: var(--success);
}

.task-title.clickable-title {
    cursor: pointer;
    transition: color 0.2s;
}

.task-title.clickable-title:hover {
    color: var(--primary);
    text-decoration: underline;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Checkbox Group for Multi-Assignee */
.checkbox-group-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item label {
    cursor: pointer;
    margin: 0;
}

[data-theme="dark"] .checkbox-group-container {
    background: rgba(0, 0, 0, 0.2);
}