/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --font-primary: 'Outfit', sans-serif;
    
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --border-color: #e2e8f0;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-primary-light: rgba(79, 70, 229, 0.1);
    
    --color-secondary: #7c3aed;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --sidebar-width: 260px;
    --transition-speed: 0.3s;
}

[data-theme="dark"] {
    --bg-primary: #0b0f19;
    --bg-secondary: #131c2e;
    --bg-tertiary: #1e293b;
    --border-color: #273549;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-primary: #6366f1;
    --color-primary-hover: #818cf8;
    --color-primary-light: rgba(99, 102, 241, 0.15);
    
    --color-secondary: #a78bfa;
    --color-success: #34d399;
    --color-warning: #fbbf24;
    --color-danger: #f87171;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform var(--transition-speed), width var(--transition-speed);
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-md);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    overflow-y: auto;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.menu-item.active a,
.menu-item a:hover {
    color: var(--color-primary);
    background-color: var(--color-primary-light);
}

.menu-item a svg {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-primary);
}

.user-info {
    overflow: hidden;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
}

.main-wrapper {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: margin-left var(--transition-speed);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-title h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-title p {
    font-size: 14px;
    color: var(--text-muted);
}

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

.theme-toggle-btn,
.notifications-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover,
.notifications-toggle-btn:hover {
    background-color: var(--bg-tertiary);
}

.search-container {
    position: relative;
    width: 320px;
}

.search-container input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    font-size: 14px;
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

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

.search-container svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-top: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-category {
    padding: 8px 12px;
    background-color: var(--bg-tertiary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.search-result-item {
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: var(--bg-tertiary);
}

.search-result-title {
    font-size: 14px;
    font-weight: 600;
}

.search-result-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

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

.stat-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

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

.panel-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.panel-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-title svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.panel-body {
    padding: 24px;
    flex-grow: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

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

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

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

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

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

.btn-danger:hover {
    filter: brightness(0.9);
}

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

.btn-success:hover {
    filter: brightness(0.9);
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.custom-table th {
    padding: 14px 16px;
    background-color: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover td {
    background-color: rgba(0, 0, 0, 0.01);
}

[data-theme="dark"] .custom-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-low {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.badge-medium {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
}

.badge-high {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
}

.badge-role-admin {
    background-color: rgba(124, 58, 237, 0.15);
    color: var(--color-secondary);
}

.badge-role-teacher {
    background-color: rgba(79, 70, 229, 0.15);
    color: var(--color-primary);
}

.badge-role-staff {
    background-color: rgba(148, 163, 184, 0.15);
    color: var(--text-secondary);
}

.restriction-alert-badge {
    background-color: var(--color-danger);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 12px;
    animation: pulse-danger 1.5s infinite;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

@keyframes pulse-danger {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.restriction-banner-modal {
    background: linear-gradient(135deg, #742a2a, #9b2c2c);
    color: white;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border-left: 6px solid #e53e3e;
    box-shadow: var(--shadow-md);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 550px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

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

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

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

.modal-close-btn {
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-muted);
}

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

.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    background-color: var(--bg-secondary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.notices-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notice-card {
    border-left: 4px solid var(--color-primary);
    background-color: var(--bg-tertiary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px;
}

.notice-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.notice-card-title {
    font-weight: 700;
    font-size: 15px;
}

.notice-card-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.notice-card-content {
    font-size: 13px;
    color: var(--text-secondary);
}

.calendar-widget {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-event {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.calendar-date-badge {
    min-width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1.1;
}

.calendar-date-badge span { font-size: 18px; }
.calendar-date-badge small { font-size: 9px; text-transform: uppercase; }

.calendar-event-info { flex-grow: 1; }
.calendar-event-title { font-weight: 600; font-size: 14px; }
.calendar-event-desc { font-size: 12px; color: var(--text-muted); }

.whatsapp-sender-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--bg-tertiary);
    padding: 16px;
    border-radius: var(--radius-md);
}

.whatsapp-sender-container textarea { min-height: 80px; }

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1100;
}

.toast {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 6px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 320px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show { transform: translateX(0); }
.toast-content { flex-grow: 1; }
.toast-title { font-weight: 700; font-size: 14px; }
.toast-message { font-size: 12px; color: var(--text-secondary); }

.chat-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 1005;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.chat-drawer.active { transform: translateX(0); }

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

.chat-drawer-header h3 { font-size: 16px; font-weight: 700; }
.chat-user-select-list { flex-grow: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 4px; }

.chat-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-user-item:hover { background-color: var(--bg-tertiary); }
.chat-user-status-dot { width: 8px; height: 8px; border-radius: 50%; background-color: var(--text-muted); }
.chat-user-status-dot.online { background-color: var(--color-success); }

.chat-window { display: none; flex-direction: column; height: 100%; }
.chat-window.active { display: flex; }

.chat-window-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-tertiary);
}

.chat-window-back-btn { cursor: pointer; color: var(--text-secondary); }
.chat-window-body { flex-grow: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }

.chat-message-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.chat-message-bubble.sent {
    background-color: var(--color-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-message-bubble.received {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-window-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-window-footer input {
    flex-grow: 1;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    outline: none;
}

.occurrence-notebook {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background-color: var(--bg-secondary);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.notebook-filters {
    padding: 20px;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto;
    gap: 14px;
    align-items: flex-end;
}

.notebook-page { padding: 30px; background-color: var(--bg-secondary); min-height: 400px; }

@media print {
    body { background-color: white !important; color: black !important; font-size: 12px; }
    .sidebar, .main-header, .theme-toggle-btn, .notifications-toggle-btn, .search-container, .notebook-filters, .btn, .chat-drawer, .toast-container { display: none !important; }
    .main-wrapper { margin-left: 0 !important; padding: 0 !important; }
    .panel-card, .occurrence-notebook { border: none !important; box-shadow: none !important; background-color: white !important; }
    .custom-table th { background-color: #f1f5f9 !important; color: black !important; border-bottom: 2px solid #000 !important; }
    .custom-table td { border-bottom: 1px solid #ddd !important; }
    .print-header { display: block !important; text-align: center; margin-bottom: 30px; border-bottom: 2px solid #000; padding-bottom: 15px; }
    .print-header h2 { font-size: 24px; margin-bottom: 5px; }
}

.print-header { display: none; }

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 90%), var(--bg-primary);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background-color: rgba(19, 28, 46, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: transform var(--transition-speed);
}

[data-theme="light"] .login-card {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.login-logo .logo-icon { width: 60px; height: 60px; font-size: 28px; border-radius: 20px; }
.login-logo h2 { font-size: 28px; font-weight: 800; }
.login-logo p { font-size: 14px; color: var(--text-muted); }

.login-error {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

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

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .main-wrapper { margin-left: 0; padding: 20px; }
    .search-container { width: 100%; max-width: none; }
    .main-header { flex-direction: column; align-items: stretch; }
    .header-actions { justify-content: space-between; }
}

/* Classroom status styles */
.classroom-card.status-prof_presente {
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.08) !important;
}

.classroom-card.status-sem_professor {
    border: 1px solid rgba(226, 232, 240, 0.15) !important;
    opacity: 0.85 !important;
}

.classroom-card.status-ocorrencia_aberta {
    border: 2px solid var(--color-danger) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3) !important;
    animation: pulse-border-red 2s infinite alternate !important;
}

@keyframes pulse-border-red {
    0% {
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.2) !important;
        border-color: rgba(239, 68, 68, 0.4) !important;
    }
    100% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.6) !important;
        border-color: var(--color-danger) !important;
    }
}

