/* Clio - Modern Academic Counseling System Styles */

/* CSS Custom Properties (Design System) */
:root {
    /* Colors */
    --primary-color: #16a085;
    --primary-dark: #138d75;
    --primary-light: #48c9b0;
    --primary-lighter: #a3e4d7;
    --primary-lightest: #d5f4e6;
    
    --secondary-color: #34495e;
    --secondary-light: #5d6d7e;
    --secondary-lighter: #85929e;
    
    --success-color: #27ae60;
    --success-light: #58d68d;
    --warning-color: #f39c12;
    --warning-light: #f8c471;
    --danger-color: #e74c3c;
    --danger-light: #ec7063;
    --info-color: #3498db;
    --info-light: #85c1e9;
    
    /* Grays */
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;
    
    /* Background colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-accent: var(--primary-lightest);
    
    /* Text colors */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-tertiary: var(--gray-500);
    --text-muted: var(--gray-400);
    
    /* Border colors */
    --border-light: var(--gray-200);
    --border-medium: var(--gray-300);
    --border-dark: var(--gray-400);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    
    /* Font sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    /* Font weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 200ms ease-in-out;
    --transition-slow: 300ms ease-in-out;
    
    /* Layout */
    --sidebar-width: 260px;
    --header-height: 64px;
    --content-max-width: 1200px;
}

/* Base styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: var(--font-sans);
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--space-4) 0;
    font-weight: var(--font-semibold);
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p {
    margin: 0 0 var(--space-4) 0;
    color: var(--text-secondary);
}

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

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

/* Layout Container */
.layout-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-secondary);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-primary);
    border-right: 1px solid var(--border-light);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform var(--transition-normal);
}

.sidebar-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-6) var(--space-4);
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.logo-image {
    max-width: 182px;
    max-height: 78px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.sidebar-menu {
    padding: var(--space-6) 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-medium);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-menu a:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    transform: translateX(2px);
}

.sidebar-menu a.active {
    background-color: var(--bg-accent);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: var(--font-semibold);
}

.sidebar-menu a span {
    padding-left: 20px;
    display: inline-block;
}

.sidebar-menu a:hover i {
    transform: scale(1.1);
}

.sidebar-menu a.active i {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    background-color: var(--bg-secondary);
    min-height: 100vh;
}

/* Header */
.header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    padding: 0 var(--space-8);
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Content Area */
.content {
    padding: var(--space-8);
    max-width: var(--content-max-width);
    margin: 0 auto;
    width: 100%;
}

/* Cards */
.card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: var(--space-6);
    overflow: hidden;
    transition: box-shadow var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-light);
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.card-header i {
    color: var(--primary-color);
    font-size: var(--text-lg);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin: 0;
    color: var(--text-primary);
}

.card-body {
    padding: 0;
}

/* Search and Actions */
.search-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
    gap: var(--space-4);
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: var(--space-3) var(--space-4) var(--space-3) var(--space-12);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    background-color: var(--bg-primary);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.search-box i {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* Buttons */
.btn, .action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn:before, .action-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left var(--transition-slow);
}

.btn:hover:before, .action-button:hover:before {
    left: 100%;
}

/* Primary Button */
.btn-primary, .action-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover, .action-button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: white;
}

.btn-primary:active, .action-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c0392b 100%);
    color: white;
    border: 1px solid var(--danger-color);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, var(--danger-color) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Small Button */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    border-radius: var(--radius-md);
}

/* Search and Filters */
.search-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
    gap: var(--space-4);
    flex-wrap: wrap;
}

.filters {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.filter-group {
    position: relative;
}

.filter-button {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.filter-button:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.filter-button .fa-chevron-down {
    font-size: var(--text-xs);
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.filter-button:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-filter {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
}

.dropdown-filter:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.dropdown-item:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.dropdown-item:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.dropdown-item.selected {
    background-color: var(--bg-accent);
    color: var(--primary-color);
    font-weight: var(--font-medium);
}

.dropdown-item.selected::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: var(--font-bold);
}

/* Tables */
.table-container {
    background-color: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.student-table, .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.student-table th, .data-table th {
    text-align: left;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border-light);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    background-color: var(--bg-tertiary);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.student-table td, .data-table td {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    color: var(--text-primary);
}

.student-table tbody tr, .data-table tbody tr {
    transition: background-color var(--transition-fast);
}

.student-table tbody tr:hover, .data-table tbody tr:hover {
    background-color: var(--bg-tertiary);
}

.student-table tbody tr:last-child td, .data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Student name links */
.student-name a {
    color: var(--primary-color);
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.student-name a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Tags */
.tags-cell {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tag {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    white-space: nowrap;
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.tag:hover {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--primary-light) 100%);
    color: var(--primary-dark);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.tag.large {
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-4);
}

.no-tags {
    color: var(--text-muted);
    font-size: var(--text-xs);
    font-style: italic;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
}

.status-active, .status-scheduled {
    background-color: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.status-inactive, .status-cancelled {
    background-color: var(--gray-200);
    color: var(--gray-600);
    border-color: var(--gray-400);
}

.status-completed {
    background-color: var(--primary-lighter);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.status-no_show {
    background-color: var(--warning-light);
    color: var(--warning-color);
    border-color: var(--warning-color);
}

/* Action buttons */
.actions {
    white-space: nowrap;
}

.action-icons {
    display: flex;
    gap: var(--space-2);
}

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-lg);
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-light);
}

.action-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    border-color: var(--primary-color);
}

.action-icon i {
    font-size: var(--text-sm);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Lists */
.meeting-list, .note-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.meeting-item, .note-item {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border-light);
    transition: background-color var(--transition-fast);
}

.meeting-item:hover, .note-item:hover {
    background-color: var(--bg-tertiary);
}

.meeting-item:last-child, .note-item:last-child {
    border-bottom: none;
}

.meeting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meeting-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.meeting-name {
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.meeting-date {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.note-name {
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.note-date {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.note-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Enhanced Forms */
.form-group {
    margin-bottom: var(--space-6);
    position: relative;
}

.form-control {
    display: block;
    width: 100%;
    padding: var(--space-4) var(--space-4);
    font-size: var(--text-sm);
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-lg);
    background-color: var(--bg-primary);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-sans);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-lighter);
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: var(--border-dark);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

/* Form Control States */
.form-control.is-valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2327ae60' d='m2.3 6.73.8-.8 2.19-2.2.78-.79-.79-.78-.79.78L2.3 5.09l-.71-.7-.79.79z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-control.is-valid:focus {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23e74c3c'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m6 3v4'/%3e%3cpath d='m6 8.5h.01'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-control.is-invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.25);
}

/* Floating Labels */
.form-floating {
    position: relative;
}

.form-floating .form-control {
    padding: var(--space-6) var(--space-4) var(--space-3) var(--space-4);
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: var(--space-4);
    margin-bottom: 0;
    color: var(--text-muted);
    text-align: start;
    text-transform: none;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    pointer-events: none;
    transform-origin: 0 0;
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.8;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: var(--primary-color);
    font-weight: var(--font-medium);
}

.form-floating .form-control:focus ~ label {
    color: var(--primary-color);
}

label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    font-size: var(--text-sm);
}

/* Required field indicator */
label.required::after {
    content: " *";
    color: var(--danger-color);
}

/* Form validation feedback */
.valid-feedback {
    display: none;
    width: 100%;
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--success-color);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--danger-color);
}

.form-control.is-valid ~ .valid-feedback {
    display: block;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Form layouts */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--space-3));
}

.form-col {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    padding: 0 var(--space-3);
}

.form-col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.form-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.form-col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.form-col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

/* Select styling */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
}

.form-select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2316a085' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* Checkbox and Radio styling */
.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.75rem;
    margin-bottom: var(--space-3);
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    margin-left: -1.75rem;
    vertical-align: top;
    background-color: var(--bg-primary);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 2px solid var(--border-medium);
    appearance: none;
    color-adjust: exact;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.form-check-input[type="checkbox"] {
    border-radius: var(--radius-md);
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check-input[type="radio"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-label {
    color: var(--text-primary);
    cursor: pointer;
    font-size: var(--text-sm);
}

/* Textarea styling */
.form-control[type="textarea"],
textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
    font-family: var(--font-sans);
}

/* Input groups */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-lg);
}

.input-group > .form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}

.input-group > .input-group-text:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}

.input-group > .form-control:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
}

.input-group > .input-group-text:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-light);
    justify-content: flex-end;
}

.form-actions.centered {
    justify-content: center;
}

.form-actions.full-width {
    flex-direction: column;
}

.form-actions.full-width .btn {
    width: 100%;
}

/* Multi-step form */
.form-steps {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-8);
    position: relative;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--border-light);
    z-index: 1;
}

.form-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background-color: var(--bg-secondary);
    padding: 0 var(--space-4);
}

.form-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--border-light);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    transition: all var(--transition-fast);
}

.form-step.active .form-step-number {
    background-color: var(--primary-color);
    color: white;
}

.form-step.completed .form-step-number {
    background-color: var(--success-color);
    color: white;
}

.form-step-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-align: center;
    font-weight: var(--font-medium);
}

.form-step.active .form-step-label {
    color: var(--primary-color);
}

.form-step.completed .form-step-label {
    color: var(--success-color);
}

/* Alerts */
.alert {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    box-shadow: var(--shadow-sm);
}

.alert i {
    font-size: var(--text-lg);
}

.alert-success {
    background-color: var(--success-light);
    color: var(--success-color);
    border-color: var(--success-color);
}

.alert-danger {
    background-color: var(--danger-light);
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.alert-warning {
    background-color: var(--warning-light);
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.alert-info {
    background-color: var(--info-light);
    color: var(--info-color);
    border-color: var(--info-color);
}

/* Empty states */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-16);
    color: var(--text-muted);
    text-align: center;
}

.empty-state i {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    color: var(--border-dark);
}

.empty-state p {
    margin-bottom: var(--space-6);
    font-size: var(--text-lg);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-medium);
    transition: color var(--transition-fast);
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.font-medium {
    font-weight: var(--font-medium);
}

.font-semibold {
    font-weight: var(--font-semibold);
}

.font-bold {
    font-weight: var(--font-bold);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-lg {
    font-size: var(--text-lg);
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 220px;
    }
    
    .content {
        padding: var(--space-6);
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: var(--space-4);
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 70px;
    }
    
    .sidebar-menu a span {
        display: none;
    }
    
    .sidebar .sidebar-menu a i {
        margin-right: 20px !important;
    }
    
    .content {
        padding: var(--space-4);
    }
    
    .search-actions,
    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
        margin-bottom: var(--space-4);
    }
    
    .filters {
        justify-content: stretch;
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--space-3);
    }
    
    .stat-card {
        padding: var(--space-4);
    }
    
    .data-table,
    .student-table {
        min-width: 700px;
    }
    
    .table-container {
        overflow-x: auto;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .header-actions,
    .action-icons,
    .btn,
    .action-button {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content {
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--border-medium);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background-color: var(--border-dark);
    border-radius: var(--radius-full);
}

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

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus,
.action-button:focus,
.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Dashboard Styles */

/* Header Enhancements */
.header-time {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

.notification-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.notification-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, var(--danger-color) 0%, #c0392b 100%);
    color: white;
    border-radius: var(--radius-full);
    padding: 2px 6px;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 2fr;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    align-items: center;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-6) var(--space-4);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.quick-action:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.quick-action:hover:before {
    transform: scaleX(1);
}

.quick-action:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.quick-action i {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
    color: var(--primary-color);
    transition: transform var(--transition-fast);
}

.quick-action:hover i {
    transform: scale(1.1);
}

.quick-action span {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.quick-action.primary i { color: var(--primary-color); }
.quick-action.secondary i { color: var(--secondary-color); }
.quick-action.tertiary i { color: var(--info-color); }

/* Enhanced Stats Grid */
.stats-grid.enhanced {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.stats-grid.enhanced .stat-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stats-grid.enhanced .stat-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stats-grid.enhanced .stat-card.primary:before {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.stats-grid.enhanced .stat-card.success:before {
    background: linear-gradient(90deg, var(--success-color) 0%, var(--success-light) 100%);
}

.stats-grid.enhanced .stat-card.info:before {
    background: linear-gradient(90deg, var(--info-color) 0%, var(--info-light) 100%);
}

.stats-grid.enhanced .stat-card.warning:before {
    background: linear-gradient(90deg, var(--warning-color) 0%, var(--warning-light) 100%);
}

.stats-grid.enhanced .stat-card.neutral:before {
    background: linear-gradient(90deg, var(--gray-400) 0%, var(--gray-300) 100%);
}

.stat-content {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.stat-details {
    flex: 1;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

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

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

.stat-progress {
    margin-top: var(--space-3);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--info-color) 0%, var(--info-light) 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.stat-action {
    margin-top: var(--space-3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e67e22 100%);
    color: white;
    border: 1px solid var(--warning-color);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22 0%, var(--warning-color) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-8);
    align-items: start;
}

.dashboard-left,
.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* Chart Cards */
.chart-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-actions {
    display: flex;
    gap: var(--space-2);
}

.chart-container {
    position: relative;
    height: 300px;
    padding: var(--space-4);
}

/* Modern Meeting List */
.meeting-list.modern {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
}

.meeting-item.modern {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    background-color: var(--bg-primary);
}

.meeting-item.modern:hover {
    background-color: var(--bg-tertiary);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.meeting-item.modern.today {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, var(--primary-lightest) 0%, var(--bg-primary) 100%);
}

.meeting-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.time-display {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.time-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.time-label.today {
    color: var(--primary-color);
    font-weight: var(--font-medium);
}

.time-label.tomorrow {
    color: var(--info-color);
    font-weight: var(--font-medium);
}

.meeting-details {
    flex: 1;
}

.meeting-name {
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.meeting-type {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.meeting-actions {
    display: flex;
    gap: var(--space-2);
}

/* Modern Note List */
.note-list.modern {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
}

.note-item.modern {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    background-color: var(--bg-primary);
}

.note-item.modern:hover {
    background-color: var(--bg-tertiary);
    box-shadow: var(--shadow-sm);
}

.note-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.note-content {
    flex: 1;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-1);
}

.note-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Topic List */
.topic-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    background-color: var(--bg-tertiary);
    transition: background-color var(--transition-fast);
}

.topic-item:hover {
    background-color: var(--bg-accent);
}

.topic-name {
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.topic-count {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    min-width: 24px;
    text-align: center;
}

/* Empty State Small */
.empty-state-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    color: var(--text-muted);
    text-align: center;
}

.empty-state-small i {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
    color: var(--border-dark);
}

.empty-state-small p {
    margin-bottom: var(--space-4);
    font-size: var(--text-base);
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    
    .quick-actions .search-box {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .quick-actions {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .stats-grid.enhanced {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--space-4);
    }
    
    .chart-container {
        height: 250px;
        padding: var(--space-2);
    }
    
    .meeting-item.modern {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .meeting-time {
        flex-direction: row;
        gap: var(--space-2);
        align-items: center;
        min-width: auto;
    }
}

/* Enhanced Micro-interactions and Loading States */

/* Skeleton Loading */
.skeleton {
    animation: skeleton-loading 1.2s ease-in-out infinite;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
}

.skeleton-text.large {
    height: 1.5rem;
}

.skeleton-text.small {
    height: 0.75rem;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-button {
    width: 120px;
    height: 40px;
    border-radius: var(--radius-lg);
}

.skeleton-card {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-xl);
}

/* Page Loading Overlay */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: all var(--transition-slow);
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-4);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--space-4) 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: progress-stripe 1s linear infinite;
}

@keyframes progress-stripe {
    0% {
        background-position: 50px 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: 9999;
    max-width: 400px;
}

.toast {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    margin-bottom: var(--space-4);
    padding: var(--space-4);
    transform: translateX(400px);
    opacity: 0;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.toast.success::before {
    background-color: var(--success-color);
}

.toast.error::before {
    background-color: var(--danger-color);
}

.toast.warning::before {
    background-color: var(--warning-color);
}

.toast.info::before {
    background-color: var(--info-color);
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

.toast-title {
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: var(--text-lg);
    line-height: 1;
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
}

.toast-body {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Hover Glow Effects */
.glow-on-hover {
    transition: all var(--transition-normal);
    position: relative;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(22, 160, 133, 0.4);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: var(--text-xl);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.fab:active {
    transform: translateY(-2px) scale(1.05);
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -8px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

.bounce {
    animation: bounce 1s;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-4px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(4px);
    }
}

.shake {
    animation: shake 0.5s;
}

/* Fade In Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.fade-in-delay-1 {
    animation: fadeIn 0.5s ease-out 0.1s both;
}

.fade-in-delay-2 {
    animation: fadeIn 0.5s ease-out 0.2s both;
}

.fade-in-delay-3 {
    animation: fadeIn 0.5s ease-out 0.3s both;
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.3s ease-out;
}

/* Slide In Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.4s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

/* Interactive States */
.interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.interactive:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Focus Ring */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-lighter);
    border-radius: var(--radius-lg);
}

/* Custom Scrollbar Enhanced */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-lg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--border-dark) 0%, var(--border-medium) 100%);
    border-radius: var(--radius-lg);
    border: 2px solid var(--bg-tertiary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

::-webkit-scrollbar-corner {
    background-color: var(--bg-tertiary);
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--gray-800);
    color: white;
    text-align: center;
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-3);
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity var(--transition-fast);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    box-shadow: var(--shadow-lg);
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--gray-800) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Modal Backdrop Blur */
.modal-backdrop {
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.5);
}

/* Dark theme support (for future) */
@media (prefers-color-scheme: dark) {
    /* Dark theme variables would go here */
}