/* ============================================================
   미래학교 관리자 - 메인 스타일시트
   ============================================================ */

/* === CSS Variables === */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: rgba(30, 41, 59, 0.8);
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --accent-pink: #ec4899;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-white: #ffffff;
    --border-color: rgba(148, 163, 184, 0.1);
    --border-light: rgba(148, 163, 184, 0.2);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.15);
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --header-height: 64px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', 'Noto Sans KR', -apple-system, sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-primary); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; font-size: 14px; overflow-x: hidden; min-height: 100vh; }
a { color: var(--accent-cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: #22d3ee; }
img { max-width: 100%; height: auto; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }
::selection { background: rgba(6, 182, 212, 0.3); color: var(--text-white); }

/* === Sidebar === */
.sidebar { position: fixed; top: 0; left: 0; width: var(--sidebar-width); height: 100vh; background: var(--bg-secondary); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; z-index: 1000; transition: var(--transition); overflow: hidden; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-color); min-height: 64px; }
.sidebar-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: white; flex-shrink: 0; }
.logo-text { font-size: 16px; font-weight: 700; color: var(--text-white); white-space: nowrap; }
.sidebar-close-btn { display: none; background: none; border: none; color: var(--text-secondary); font-size: 24px; cursor: pointer; padding: 4px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.nav-list { list-style: none; padding: 0 8px; }
.nav-item { margin-bottom: 2px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: var(--radius-sm); color: var(--text-secondary); transition: var(--transition); position: relative; white-space: nowrap; }
.nav-link:hover { color: var(--text-white); background: rgba(6, 182, 212, 0.1); }
.nav-item.active .nav-link { color: var(--accent-cyan); background: rgba(6, 182, 212, 0.15); }
.nav-item.active .nav-link::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 60%; background: var(--accent-cyan); border-radius: 0 3px 3px 0; }
.nav-icon { width: 20px; height: 20px; flex-shrink: 0; }
.nav-badge { background: var(--accent-red); color: white; font-size: 11px; padding: 2px 6px; border-radius: 10px; margin-left: auto; }
.nav-divider { height: 1px; background: var(--border-color); margin: 12px 16px; }
.nav-section-title { padding: 8px 16px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.sidebar-footer { padding: 12px 16px; border-top: 1px solid var(--border-color); }
.user-mini-card { display: flex; align-items: center; gap: 10px; }
.user-avatar-sm { width: 32px; height: 32px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; color: white; flex-shrink: 0; }
.user-mini-info { overflow: hidden; }
.user-mini-name { display: block; font-size: 13px; font-weight: 600; color: var(--text-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-mini-role { display: block; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; }

/* === Main Wrapper === */
.main-wrapper { margin-left: var(--sidebar-width); min-height: 100vh; transition: var(--transition); display: flex; flex-direction: column; }

/* === Header Bar === */
.header-bar { position: sticky; top: 0; z-index: 100; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.header-left { display: flex; align-items: center; gap: 16px; }
.hamburger-btn { display: none; background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 4px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent-cyan); }
.breadcrumb-sep { color: var(--text-muted); }
.breadcrumb-current { color: var(--text-primary); }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-search { position: relative; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-input { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 8px 12px 8px 36px; color: var(--text-primary); font-size: 13px; width: 220px; transition: var(--transition); }
.search-input:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1); width: 280px; }
.header-icon-btn { position: relative; cursor: pointer; padding: 8px; color: var(--text-secondary); transition: var(--transition); border-radius: var(--radius-sm); }
.header-icon-btn:hover { color: var(--text-white); background: rgba(255,255,255,0.05); }
.header-badge { position: absolute; top: 2px; right: 2px; background: var(--accent-red); color: white; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.header-user { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm); transition: var(--transition); position: relative; }
.header-user:hover { background: rgba(255,255,255,0.05); }
.user-avatar { width: 32px; height: 32px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; color: white; }
.user-name-text { font-size: 13px; color: var(--text-primary); }
.user-avatar-xs { width: 24px; height: 24px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 10px; color: white; flex-shrink: 0; }

/* === Dropdown === */
.dropdown-menu { position: absolute; top: 100%; right: 0; min-width: 220px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 8px 0; display: none; z-index: 1001; margin-top: 8px; }
.dropdown-menu.active { display: block; animation: fadeIn 0.2s ease; }
.dropdown-item { display: block; padding: 8px 16px; color: var(--text-secondary); font-size: 13px; transition: var(--transition); }
.dropdown-item:hover { color: var(--text-white); background: rgba(6, 182, 212, 0.1); }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 4px 0; }
.dropdown-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; border-bottom: 1px solid var(--border-color); }
.dropdown-header h4 { font-size: 14px; color: var(--text-white); }
.dropdown-footer-link { display: block; text-align: center; padding: 10px 16px; border-top: 1px solid var(--border-color); font-size: 13px; color: var(--accent-cyan); }
.dropdown-user-info { padding: 8px 16px; }
.dropdown-user-info strong { display: block; font-size: 14px; color: var(--text-white); }
.dropdown-user-info small { color: var(--text-muted); font-size: 12px; }
.notification-dropdown { width: 360px; right: -60px; }
.notification-list { max-height: 300px; overflow-y: auto; }
.notification-empty { padding: 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.notification-item { display: flex; gap: 10px; padding: 10px 16px; transition: var(--transition); cursor: pointer; }
.notification-item:hover { background: rgba(6, 182, 212, 0.05); }
.notification-item.unread { border-left: 2px solid var(--accent-cyan); }

/* === Main Content === */
.main-content { flex: 1; padding: 24px; max-width: 1400px; width: 100%; }
.main-footer { padding: 16px 24px; border-top: 1px solid var(--border-color); margin-top: auto; }
.footer-content { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-cyan); }

/* === Page Header === */
.page-header { margin-bottom: 24px; }
.page-title { font-size: 24px; font-weight: 700; color: var(--text-white); margin-bottom: 4px; }
.page-subtitle { font-size: 14px; color: var(--text-secondary); }

/* === Cards === */
.card { background: var(--bg-card); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); margin-bottom: 20px; }
.card:hover { border-color: var(--border-light); }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.card-header h3 { font-size: 16px; font-weight: 600; color: var(--text-white); }
.card-body { padding: 20px; }
.card-body.p-0 { padding: 0; }
.card-footer { padding: 16px 20px; border-top: 1px solid var(--border-color); }

/* === Stats Grid === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stats-grid-5 { grid-template-columns: repeat(5, 1fr); }
.stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; gap: 16px; transition: var(--transition); }
.stat-card:hover { border-color: var(--accent-cyan); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.stat-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon-blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.stat-icon-cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.stat-icon-purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.stat-icon-green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.stat-icon-orange { background: rgba(245, 158, 11, 0.15); color: var(--accent-orange); }
.stat-info { display: flex; flex-direction: column; }
.stat-number { font-size: 28px; font-weight: 700; color: var(--text-white); line-height: 1.2; }
.stat-label { font-size: 13px; color: var(--text-secondary); }
.stat-card-gradient-blue { border-image: linear-gradient(135deg, var(--accent-blue), transparent) 1; }
.stat-card-gradient-cyan { border-image: linear-gradient(135deg, var(--accent-cyan), transparent) 1; }
.stat-card-gradient-purple { border-image: linear-gradient(135deg, var(--accent-purple), transparent) 1; }
.stat-card-gradient-green { border-image: linear-gradient(135deg, var(--accent-green), transparent) 1; }
.stat-card-gradient-orange { border-image: linear-gradient(135deg, var(--accent-orange), transparent) 1; }

/* === Dashboard Grid === */
.dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }

/* === Tables === */
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border-color); white-space: nowrap; }
.data-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); font-size: 13px; color: var(--text-secondary); }
.data-table tbody tr { transition: var(--transition); cursor: pointer; }
.data-table tbody tr:hover { background: rgba(6, 182, 212, 0.05); }
.data-table tbody tr:last-child td { border-bottom: none; }
.task-row { cursor: pointer; }
.task-link { color: var(--text-primary); font-weight: 500; }
.task-link:hover { color: var(--accent-cyan); }
.task-title-cell { display: flex; flex-direction: column; gap: 4px; }
.task-meta-icons { display: flex; gap: 8px; }
.meta-icon { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--text-muted); }
.text-danger { color: var(--accent-red) !important; }
.text-muted { color: var(--text-muted); }
.inline-form { display: inline; }
.form-control-xs { padding: 4px 8px; font-size: 12px; min-width: auto; }

/* === Forms === */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.form-control { width: 100%; padding: 10px 14px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 14px; font-family: var(--font-primary); transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15); }
.form-control::placeholder { color: var(--text-muted); }
.form-control:disabled { opacity: 0.5; cursor: not-allowed; }
.form-control-color { padding: 4px; height: 42px; cursor: pointer; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-hint { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.form-section-title { font-size: 16px; font-weight: 600; color: var(--text-white); margin-bottom: 16px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.required { color: var(--accent-red); }
.input-icon-wrapper { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.input-icon-wrapper .form-control { padding-left: 42px; }
.checkbox-group { display: flex; flex-direction: column; gap: 12px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-secondary); }
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom { width: 18px; height: 18px; border: 2px solid var(--border-light); border-radius: 4px; transition: var(--transition); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checkbox-label input:checked + .checkbox-custom { background: var(--accent-cyan); border-color: var(--accent-cyan); }
.checkbox-label input:checked + .checkbox-custom::after { content: '\2713'; color: white; font-size: 12px; }
.link { color: var(--accent-cyan); }
.alert-link { color: inherit; text-decoration: underline; margin-left: 8px; }
.file-upload-area { border: 2px dashed var(--border-light); border-radius: var(--radius-md); padding: 40px 20px; text-align: center; cursor: pointer; transition: var(--transition); position: relative; color: var(--text-muted); }
.file-upload-area:hover, .file-upload-area.dragover { border-color: var(--accent-cyan); background: rgba(6, 182, 212, 0.05); }
.file-upload-area p { margin: 8px 0 4px; font-size: 14px; }
.file-upload-area small { font-size: 12px; }
.file-upload-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; font-family: var(--font-primary); cursor: pointer; transition: var(--transition); text-decoration: none; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue)); color: white; border: none; }
.btn-primary:hover { box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4); transform: translateY(-1px); color: white; }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); }
.btn-secondary:hover { background: #475569; color: white; }
.btn-danger { background: var(--accent-red); color: white; }
.btn-danger:hover { background: #dc2626; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); color: white; }
.btn-success { background: var(--accent-green); color: white; }
.btn-success:hover { background: #059669; color: white; }
.btn-warning { background: var(--accent-orange); color: #1e293b; }
.btn-outline { background: transparent; border: 1px solid var(--border-light); color: var(--text-secondary); }
.btn-outline:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.btn-text { background: none; border: none; color: var(--accent-cyan); padding: 4px 8px; font-size: 13px; cursor: pointer; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* === Badges === */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--accent-orange); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }
.badge-danger-dark { background: rgba(239, 68, 68, 0.25); color: #fca5a5; }
.badge-info { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.badge-secondary { background: rgba(148, 163, 184, 0.15); color: var(--text-secondary); }

/* === Alerts === */
.alert { padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.alert-success { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); color: #6ee7b7; }
.alert-danger { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: #fca5a5; }
.alert-warning { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); color: #fcd34d; }
.alert-info { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); color: #93c5fd; }

/* === Modal === */
.modal { display: none; position: fixed; inset: 0; z-index: 2000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.modal-dialog { position: relative; width: 100%; max-width: 500px; max-height: 90vh; margin: 20px; animation: fadeInUp 0.3s ease; }
.modal-dialog.modal-lg { max-width: 700px; }
.modal-content { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.modal-header h3, .modal-title { font-size: 18px; font-weight: 600; color: var(--text-white); }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; padding: 0 4px; }
.modal-close:hover { color: var(--text-white); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; padding: 16px 20px; border-top: 1px solid var(--border-color); }

/* === Tabs === */
.tab-nav { display: flex; gap: 2px; border-bottom: 1px solid var(--border-color); margin-bottom: 20px; overflow-x: auto; }
.tab-btn { background: none; border: none; padding: 10px 20px; color: var(--text-secondary); font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--transition); border-bottom: 2px solid transparent; white-space: nowrap; font-family: var(--font-primary); }
.tab-btn:hover { color: var(--text-white); }
.tab-btn.active { color: var(--accent-cyan); border-bottom-color: var(--accent-cyan); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* === Calendar === */
.calendar-container { padding: 0; }
.calendar-title { font-size: 18px; font-weight: 600; color: var(--text-white); margin: 0; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-header-cell { padding: 12px 8px; text-align: center; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--border-color); }
.calendar-cell { min-height: 100px; padding: 8px; border-right: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); cursor: pointer; transition: var(--transition); }
.calendar-cell:nth-child(7n) { border-right: none; }
.calendar-cell:hover { background: rgba(6, 182, 212, 0.05); }
.calendar-cell.other-month { opacity: 0.3; }
.calendar-cell.today { background: rgba(6, 182, 212, 0.1); }
.calendar-cell.today .calendar-day { color: var(--accent-cyan); font-weight: 700; }
.calendar-day { font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px; }
.calendar-event { display: block; padding: 2px 6px; margin-bottom: 2px; border-radius: 3px; font-size: 11px; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.calendar-event:hover { opacity: 0.8; }
.calendar-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { padding: 6px 14px; border: 1px solid var(--border-color); border-radius: 20px; background: none; color: var(--text-secondary); font-size: 13px; cursor: pointer; transition: var(--transition); font-family: var(--font-primary); }
.filter-btn:hover, .filter-btn.active { border-color: var(--accent-cyan); color: var(--accent-cyan); background: rgba(6, 182, 212, 0.1); }

/* === Filter Tabs === */
.filter-tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.filter-tab { padding: 8px 16px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 13px; transition: var(--transition); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.filter-tab:hover { color: var(--text-white); background: rgba(255,255,255,0.05); }
.filter-tab.active { color: var(--accent-cyan); background: rgba(6, 182, 212, 0.1); }
.filter-count { background: var(--bg-tertiary); padding: 1px 8px; border-radius: 10px; font-size: 11px; }

/* === Schedule/Task Mini Lists === */
.schedule-mini-list, .task-mini-list, .file-mini-list { display: flex; flex-direction: column; gap: 8px; }
.schedule-mini-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.schedule-mini-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.schedule-mini-info strong { display: block; font-size: 14px; color: var(--text-primary); }
.schedule-mini-info small { color: var(--text-muted); font-size: 12px; }
.task-mini-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.task-mini-item:last-child { border-bottom: none; }
.task-mini-left { display: flex; align-items: center; gap: 8px; overflow: hidden; }
.task-mini-title { color: var(--text-primary); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-mini-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.task-mini-due { color: var(--text-muted); font-size: 12px; }
.file-mini-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.file-mini-icon { width: 36px; height: 36px; background: var(--bg-tertiary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--accent-cyan); flex-shrink: 0; }
.file-mini-info { overflow: hidden; }
.file-mini-name { display: block; font-size: 13px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-mini-info small { color: var(--text-muted); font-size: 12px; }

/* === Activity List === */
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.activity-item:last-child { border-bottom: none; }
.activity-avatar { width: 32px; height: 32px; background: var(--bg-tertiary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--accent-cyan); flex-shrink: 0; }
.activity-info { font-size: 13px; color: var(--text-secondary); }
.activity-info small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }

/* === Empty State === */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 18px; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { margin-bottom: 20px; }
.empty-state-small { text-align: center; padding: 30px 20px; color: var(--text-muted); font-size: 14px; }

/* === File List === */
.file-list { display: flex; flex-direction: column; }
.file-item { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.file-item:last-child { border-bottom: none; }
.file-item-icon { width: 42px; height: 42px; background: var(--bg-tertiary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--accent-cyan); flex-shrink: 0; }
.file-item-info { flex: 1; overflow: hidden; }
.file-item-name { display: block; font-size: 14px; color: var(--text-primary); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item-info small { color: var(--text-muted); font-size: 12px; }
.file-item-actions { display: flex; gap: 8px; flex-shrink: 0; }
.file-desc { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }

/* === Company Grid === */
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.company-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 20px; transition: var(--transition); display: block; color: inherit; }
.company-card:hover { border-color: var(--accent-cyan); box-shadow: var(--shadow-glow); transform: translateY(-2px); color: inherit; }
.company-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.company-avatar, .company-avatar-large { width: 48px; height: 48px; background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: white; flex-shrink: 0; }
.company-avatar-large { width: 60px; height: 60px; font-size: 24px; }
.company-name { font-size: 16px; font-weight: 600; color: var(--text-white); }
.company-card-body { margin-bottom: 16px; }
.company-info-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: var(--text-secondary); border-bottom: 1px solid var(--border-color); }
.company-card-footer { display: flex; justify-content: space-around; padding-top: 12px; border-top: 1px solid var(--border-color); }
.company-stat { text-align: center; }
.company-stat-number { display: block; font-size: 18px; font-weight: 700; color: var(--accent-cyan); }
.company-stat-label { font-size: 11px; color: var(--text-muted); }

/* === Task Detail Layout === */
.task-detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.task-detail-main { min-width: 0; }
.task-detail-sidebar { }
.task-description { font-size: 14px; line-height: 1.8; color: var(--text-secondary); }
.info-list { display: flex; flex-direction: column; }
.info-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-color); font-size: 13px; }
.info-item:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); }
.info-value { color: var(--text-primary); font-weight: 500; }

/* === Comments === */
.comment-list { display: flex; flex-direction: column; gap: 16px; }
.comment-item { display: flex; gap: 12px; }
.comment-avatar { width: 36px; height: 36px; background: var(--bg-tertiary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--accent-cyan); flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.comment-header strong { font-size: 14px; color: var(--text-white); }
.comment-header small { color: var(--text-muted); font-size: 12px; }
.comment-content { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* === Messages === */
.message-layout { display: grid; grid-template-columns: 360px 1fr; gap: 20px; min-height: 500px; }
.message-list-panel { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; }
.message-content-panel { }
.message-list { max-height: 500px; overflow-y: auto; }
.message-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-color); transition: var(--transition); color: inherit; }
.message-item:hover { background: rgba(6, 182, 212, 0.05); color: inherit; }
.message-item.unread { background: rgba(6, 182, 212, 0.08); }
.message-item.selected { background: rgba(6, 182, 212, 0.12); border-left: 2px solid var(--accent-cyan); }
.message-item-avatar { width: 36px; height: 36px; background: var(--bg-tertiary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--accent-cyan); flex-shrink: 0; }
.message-item-content { flex: 1; overflow: hidden; }
.message-item-header { display: flex; justify-content: space-between; margin-bottom: 2px; }
.message-item-header strong { font-size: 13px; color: var(--text-white); }
.message-item-header small { color: var(--text-muted); font-size: 11px; }
.message-item-subject { font-size: 13px; color: var(--text-primary); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.message-item-preview { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.message-bubble { max-width: 80%; padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 12px; }
.message-bubble-received { background: var(--bg-tertiary); margin-right: auto; }
.message-bubble-sent { background: rgba(6, 182, 212, 0.15); margin-left: auto; }
.message-bubble-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.message-bubble-header strong { font-size: 12px; color: var(--accent-cyan); }
.message-bubble-header small { font-size: 11px; color: var(--text-muted); }
.message-bubble-content { font-size: 14px; color: var(--text-primary); line-height: 1.6; }

/* === Notifications Page === */
.notification-full-list { display: flex; flex-direction: column; }
.notification-full-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.notification-full-item.unread { background: rgba(6, 182, 212, 0.05); padding-left: 14px; margin-left: -14px; border-left: 3px solid var(--accent-cyan); }
.notification-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notification-icon-task { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.notification-icon-schedule { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.notification-icon-message { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.notification-icon-file { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.notification-icon-info { background: rgba(148, 163, 184, 0.15); color: var(--text-secondary); }
.notification-full-title a { color: var(--text-primary); font-weight: 500; }
.notification-full-title a:hover { color: var(--accent-cyan); }
.notification-full-message { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.notification-full-time { color: var(--text-muted); font-size: 12px; }

/* === Profile === */
.profile-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.profile-sidebar { }
.profile-main { }
.profile-avatar-large { width: 80px; height: 80px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; color: white; margin: 0 auto 12px; overflow: hidden; }
.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 20px; font-weight: 600; color: var(--text-white); margin-bottom: 4px; }
.profile-role { margin-bottom: 4px; }
.profile-company { font-size: 14px; color: var(--accent-cyan); margin-bottom: 4px; }
.profile-email { font-size: 13px; color: var(--text-muted); }
.profile-stat-list { display: flex; flex-direction: column; }
.profile-stat-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-color); font-size: 13px; }
.profile-stat-item:last-child { border-bottom: none; }
.profile-stat-label { color: var(--text-muted); }
.profile-stat-value { color: var(--text-primary); font-weight: 500; }

/* === Member Grid === */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.member-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-primary); border-radius: var(--radius-sm); }
.member-avatar { width: 40px; height: 40px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; color: white; flex-shrink: 0; }
.member-info strong { display: block; font-size: 14px; color: var(--text-primary); }
.member-info small { display: block; font-size: 12px; color: var(--text-muted); }

/* === Progress Bar === */
.progress-bar-mini { width: 60px; height: 6px; background: var(--bg-primary); border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green)); border-radius: 3px; transition: var(--transition); }

/* === Pagination === */
.pagination-nav { display: flex; justify-content: center; margin-top: 20px; }
.pagination { display: flex; gap: 4px; list-style: none; }
.page-link { display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm); background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-secondary); font-size: 13px; transition: var(--transition); }
.page-link:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.page-link.active { background: var(--accent-cyan); border-color: var(--accent-cyan); color: white; }
.page-dots { display: flex; align-items: center; padding: 0 8px; color: var(--text-muted); }

/* === Toast === */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 14px 20px; border-radius: var(--radius-md); color: white; font-size: 14px; box-shadow: var(--shadow-lg); animation: slideInRight 0.3s ease; min-width: 280px; max-width: 400px; display: flex; align-items: center; justify-content: space-between; }
.toast-success { background: #059669; }
.toast-error { background: #dc2626; }
.toast-warning { background: #d97706; }
.toast-info { background: #2563eb; }
.toast-close { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 18px; padding: 0 0 0 12px; }

/* === Auth Pages === */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-primary); position: relative; overflow: hidden; }
.auth-bg-effects { position: fixed; inset: 0; pointer-events: none; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.3; }
.auth-orb-1 { width: 500px; height: 500px; background: var(--accent-cyan); top: -200px; left: -100px; animation: float 20s ease-in-out infinite; }
.auth-orb-2 { width: 400px; height: 400px; background: var(--accent-purple); bottom: -150px; right: -100px; animation: float 25s ease-in-out infinite reverse; }
.auth-orb-3 { width: 300px; height: 300px; background: var(--accent-blue); top: 50%; left: 50%; animation: float 15s ease-in-out infinite; }
.auth-container { position: relative; z-index: 10; width: 100%; max-width: 480px; padding: 20px; display: flex; flex-direction: column; align-items: center; }
.auth-card { width: 100%; background: var(--bg-card); backdrop-filter: blur(20px); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 40px; position: relative; }
.auth-card-wide { max-width: 640px; }
.auth-card-glow { position: absolute; inset: -1px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-blue)); border-radius: var(--radius-xl); opacity: 0.1; z-index: -1; filter: blur(2px); }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo { margin-bottom: 16px; display: flex; justify-content: center; }
.auth-logo-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue)); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; color: white; }
.auth-title { font-size: 24px; font-weight: 700; color: var(--text-white); margin-bottom: 8px; }
.auth-subtitle { font-size: 14px; color: var(--text-secondary); }
.auth-form { }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }
.auth-footer a { color: var(--accent-cyan); font-weight: 500; }
.auth-bottom-links { margin-top: 24px; text-align: center; font-size: 12px; color: var(--text-muted); display: flex; gap: 12px; justify-content: center; }
.auth-bottom-links a { color: var(--text-muted); }

/* === Landing Page === */
.landing-page { background: var(--bg-primary); min-height: 100vh; position: relative; overflow-x: hidden; }
.landing-bg { position: fixed; inset: 0; pointer-events: none; }
.landing-orb { position: absolute; border-radius: 50%; filter: blur(150px); opacity: 0.2; }
.landing-orb-1 { width: 600px; height: 600px; background: var(--accent-cyan); top: -200px; right: -200px; }
.landing-orb-2 { width: 500px; height: 500px; background: var(--accent-purple); bottom: -200px; left: -200px; }
.landing-orb-3 { width: 400px; height: 400px; background: var(--accent-blue); top: 40%; left: 30%; }
.landing-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(6,182,212,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(6,182,212,0.03) 1px, transparent 1px); background-size: 60px 60px; }
.landing-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(15,23,42,0.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); }
.landing-nav-inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.landing-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.landing-logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: white; }
.landing-logo-text { font-size: 18px; font-weight: 700; color: var(--text-white); }
.landing-nav-links { display: flex; gap: 12px; }
.landing-hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; z-index: 10; padding: 120px 24px 80px; }
.landing-hero-content { max-width: 800px; text-align: center; }
.landing-badge { display: inline-block; padding: 6px 16px; background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.2); border-radius: 20px; font-size: 13px; color: var(--accent-cyan); margin-bottom: 24px; }
.landing-title { margin-bottom: 20px; }
.landing-title-line { display: block; font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.1; color: var(--text-white); }
.landing-title-gradient { background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.landing-description { font-size: 18px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; }
.landing-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.landing-features { position: relative; z-index: 10; padding: 80px 24px; }
.landing-section-inner { max-width: 1200px; margin: 0 auto; }
.landing-section-title { font-size: 36px; font-weight: 700; color: var(--text-white); text-align: center; margin-bottom: 12px; }
.landing-section-desc { font-size: 16px; color: var(--text-secondary); text-align: center; margin-bottom: 48px; }
.landing-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.landing-feature-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 32px; transition: var(--transition); }
.landing-feature-card:hover { border-color: var(--accent-cyan); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.feature-icon-circle { width: 56px; height: 56px; background: rgba(6,182,212,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--accent-cyan); }
.landing-feature-card h3 { font-size: 18px; font-weight: 600; color: var(--text-white); margin-bottom: 8px; }
.landing-feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.landing-footer { position: relative; z-index: 10; border-top: 1px solid var(--border-color); padding: 32px 24px; }
.landing-footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.landing-footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-white); }
.landing-footer-links { display: flex; gap: 20px; }
.landing-footer-links a { color: var(--text-muted); font-size: 13px; }
.landing-copyright { font-size: 12px; color: var(--text-muted); }

/* === Legal / Privacy / Terms === */
.static-page { background: var(--bg-primary); min-height: 100vh; }
.static-page-content { max-width: 800px; margin: 100px auto 40px; padding: 0 24px; }
.legal-page { max-width: 800px; }
.legal-page h1 { font-size: 28px; font-weight: 700; color: var(--text-white); margin-bottom: 8px; }
.legal-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 32px; }
.legal-content h2 { font-size: 18px; font-weight: 600; color: var(--text-white); margin: 28px 0 12px; }
.legal-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; margin-bottom: 12px; }
.legal-content li { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 6px; }

/* === 404 Page === */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; text-align: center; }
.error-code { font-size: 96px; font-weight: 800; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.error-title { font-size: 24px; color: var(--text-white); margin: 12px 0 8px; }
.error-message { color: var(--text-secondary); margin-bottom: 24px; }

/* === Utilities === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 40px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 40px; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 16px; }
.p-4 { padding: 24px; }
.p-5 { padding: 40px; }
.hidden { display: none !important; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rounded { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }

/* === Animations === */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -30px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-fade-in { animation: fadeIn 0.5s ease; }
.animate-slide-up { animation: fadeInUp 0.5s ease; }

/* === Responsive === */
@media (max-width: 1280px) {
    .stats-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .sidebar-overlay.active { display: block; }
    .sidebar-close-btn { display: block; }
    .main-wrapper { margin-left: 0; }
    .hamburger-btn { display: block; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .task-detail-layout { grid-template-columns: 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
    .message-layout { grid-template-columns: 1fr; }
    .stats-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .main-content { padding: 16px; }
    .header-bar { padding: 0 16px; }
    .search-input { width: 160px; }
    .search-input:focus { width: 200px; }
    .form-row { grid-template-columns: 1fr; }
    .company-grid { grid-template-columns: 1fr; }
    .landing-features-grid { grid-template-columns: 1fr; }
    .user-name-text { display: none; }
    .auth-card { padding: 24px; }
    .auth-card-wide { max-width: 100%; }
    .notification-dropdown { width: 300px; right: -100px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .main-content { padding: 12px; }
    .page-title { font-size: 20px; }
    .header-search { display: none; }
    .stats-grid, .stats-grid-5 { grid-template-columns: 1fr; }
    .landing-cta { flex-direction: column; align-items: center; }
    .footer-content { flex-direction: column; text-align: center; gap: 8px; }
    .landing-footer-inner { flex-direction: column; text-align: center; }
}
