/* ============================================
   Project Management System - Modern Minimal Design
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #eff6ff;
    --success: #10b981;
    --success-light: #ecfdf5;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-secondary: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
}

/* Dark Mode */
[data-theme="dark"] {
    /* Primary - Vibrant Blue */
    --primary: #818cf8;
    --primary-hover: #6366f1;
    --primary-light: rgba(129, 140, 248, 0.15);
    
    /* Status Colors - More Vibrant */
    --success: #4ade80;
    --success-light: rgba(74, 222, 128, 0.15);
    --danger: #fb7185;
    --danger-light: rgba(251, 113, 133, 0.15);
    --warning: #fcd34d;
    --warning-light: rgba(252, 211, 77, 0.15);
    --info: #38bdf8;
    --info-light: rgba(56, 189, 248, 0.15);
    
    /* Backgrounds - Deeper & Richer */
    --bg: #0c1222;
    --bg-alt: #151d2e;
    --bg-secondary: #1e293b;
    --bg-tertiary: #263347;
    
    /* Borders */
    --border: #2d3a4f;
    --border-light: #1e293b;
    --border-focus: #818cf8;
    
    /* Text - Better Contrast */
    --text: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    
    /* Shadows - Subtle Glow */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
    
    /* Card Background */
    --card-bg: #151d2e;
}

/* ============================================
   Dark Mode Specific Overrides
   ============================================ */

/* Header */
[data-theme="dark"] .header {
    background: rgba(12, 18, 34, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

/* Navigation */
[data-theme="dark"] .nav-item:hover {
    background: var(--bg-secondary);
}

[data-theme="dark"] .nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

[data-theme="dark"] .nav-user-avatar,
[data-theme="dark"] .logo-icon {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Login Page */
[data-theme="dark"] .login-brand {
    background: linear-gradient(135deg, #0c1222 0%, #151d2e 100%);
}

[data-theme="dark"] .login-container {
    background: var(--bg-alt);
    border: 1px solid var(--border);
}

/* Forms */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--bg-secondary);
    color: var(--text);
    border-color: var(--border);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-muted);
}

/* Cards & Sections */
[data-theme="dark"] .card,
[data-theme="dark"] .section {
    background: var(--bg-alt);
    border: 1px solid var(--border);
}

[data-theme="dark"] .card:hover {
    border-color: var(--border-focus);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Modals */
[data-theme="dark"] .modal-content {
    background: var(--bg-alt);
    border: 1px solid var(--border);
}

[data-theme="dark"] .modal-header {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .modal-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

/* Buttons */
[data-theme="dark"] .btn-secondary {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
}

/* Tables */
[data-theme="dark"] table th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

[data-theme="dark"] table td {
    border-color: var(--border);
}

[data-theme="dark"] table tr:hover {
    background: var(--bg-secondary);
}

/* Tasks */
[data-theme="dark"] .task-item {
    background: var(--bg-secondary);
    border: 1px solid transparent;
}

[data-theme="dark"] .task-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--border);
}

[data-theme="dark"] .task-item-ghost {
    background: var(--primary-light);
    border-color: var(--primary);
}

/* Notes */
[data-theme="dark"] .note-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

[data-theme="dark"] .note-item:hover {
    border-color: var(--primary);
}

/* Status Badges */
[data-theme="dark"] .status-badge {
    font-weight: 500;
}

[data-theme="dark"] .status-active,
[data-theme="dark"] .status-enabled {
    background: var(--success-light);
    color: var(--success);
}

[data-theme="dark"] .status-pending {
    background: var(--warning-light);
    color: var(--warning);
}

[data-theme="dark"] .status-completed {
    background: var(--info-light);
    color: var(--info);
}

[data-theme="dark"] .status-disabled {
    background: var(--danger-light);
    color: var(--danger);
}

/* Priority Badges */
[data-theme="dark"] .priority-high {
    background: var(--danger-light);
    color: var(--danger);
}

[data-theme="dark"] .priority-medium {
    background: var(--warning-light);
    color: var(--warning);
}

[data-theme="dark"] .priority-low {
    background: var(--success-light);
    color: var(--success);
}

/* Empty States */
[data-theme="dark"] .empty-state {
    color: var(--text-muted);
}

/* Tooltips & Popovers */
[data-theme="dark"] .tooltip {
    background: var(--bg-tertiary);
    color: var(--text);
    border: 1px solid var(--border);
}

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Action Buttons */
[data-theme="dark"] .action-btn {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

[data-theme="dark"] .action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text);
}

[data-theme="dark"] .action-btn-delete:hover {
    background: var(--danger-light);
    color: var(--danger);
    border-color: var(--danger);
}

[data-theme="dark"] .action-btn-edit:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* File/Image Cards */
[data-theme="dark"] .file-item,
[data-theme="dark"] .image-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

[data-theme="dark"] .file-item:hover,
[data-theme="dark"] .image-card:hover {
    border-color: var(--primary);
}

/* Summary Cards (Finance) */
[data-theme="dark"] .summary-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
}

/* Filter Section */
[data-theme="dark"] .filter-section {
    background: var(--bg-alt);
    border: 1px solid var(--border);
}

/* Settings */
[data-theme="dark"] .settings-section {
    background: var(--bg-alt);
    border: 1px solid var(--border);
}

[data-theme="dark"] .settings-section h3 {
    border-bottom-color: var(--border);
}

/* QR Code */
[data-theme="dark"] .qr-code-section {
    background: var(--bg-secondary);
}

/* Drag Handle */
[data-theme="dark"] .drag-handle {
    color: var(--text-muted);
}

[data-theme="dark"] .task-item:hover .drag-handle {
    color: var(--text-secondary);
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-alt);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Header & Navigation - Modern Minimal
   ============================================ */

.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.header h1 a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.header h1 a:hover {
    color: var(--primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, #60a5fa 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-item:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 0.5rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    background: var(--bg-alt);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    border: 1px solid var(--border);
}

.nav-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #60a5fa 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
}

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

.nav-logout:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-alt);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle {
    background: var(--bg-secondary);
    color: var(--warning);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--warning);
    box-shadow: 0 0 12px rgba(252, 211, 77, 0.2);
}

.username {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   Buttons - Clean & Modern
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    font-family: inherit;
    position: relative;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn.btn-loading {
    color: transparent !important;
    pointer-events: none;
}

.btn.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 1px 2px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.btn-primary.btn-loading::after {
    border-color: white;
    border-right-color: transparent;
}

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

.btn-secondary:hover {
    background: var(--bg-alt);
    border-color: var(--text-muted);
}

.btn-link {
    color: var(--primary);
    padding: 0.5rem 0.75rem;
}

.btn-link:hover {
    background: var(--primary-light);
}

.btn-sm {
    padding: 0.4375rem 0.875rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}

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

.btn-danger:hover {
    background: var(--danger-light);
}

.btn-danger-solid {
    background: var(--danger);
    color: white;
    box-shadow: 0 1px 2px rgba(239, 68, 68, 0.3);
}

.btn-danger-solid:hover {
    background: #dc2626;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

/* ============================================
   Main Content Layout
   ============================================ */

.main {
    padding: 2rem 0 3rem;
    min-height: calc(100vh - 64px);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
}

.page-header-subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-top: 0.25rem;
}

.page-actions {
    display: flex;
    gap: 0.75rem;
}

/* ============================================
   Cards & Sections - Modern Design
   ============================================ */

.card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-alt);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.section {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.section h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.section-header h3 {
    margin-bottom: 0;
}

/* ============================================
   Filter & Search Section
   ============================================ */

.filter-section {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.search-box input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--bg);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

.search-icon svg {
    width: 18px;
    height: 18px;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-group select {
    padding: 0.625rem 2.25rem 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--bg);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.125rem;
}

.filter-group select:hover {
    border-color: var(--primary);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ============================================
   Badges & Status
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 100px;
}

.badges-group {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 100px;
    text-transform: capitalize;
}

.status-active {
    background: var(--primary-light);
    color: var(--primary);
}

.status-completed {
    background: var(--success-light);
    color: var(--success);
}

.status-archived {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.status-enabled {
    background: var(--success-light);
    color: var(--success);
}

.status-disabled {
    background: var(--danger-light);
    color: var(--danger);
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 100px;
    text-transform: capitalize;
}

.priority-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.priority-badge.priority-high {
    background: var(--danger-light);
    color: #dc2626;
}

.priority-badge.priority-high::before {
    background: #dc2626;
}

.priority-badge.priority-medium {
    background: var(--warning-light);
    color: #d97706;
}

.priority-badge.priority-medium::before {
    background: #d97706;
}

.priority-badge.priority-low {
    background: var(--primary-light);
    color: var(--primary);
}

.priority-badge.priority-low::before {
    background: var(--primary);
}

/* ============================================
   Projects Grid - Modern Cards
   ============================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
    transition: opacity 0.3s ease;
}

.projects-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

.project-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: transparent;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card.fade-in {
    animation: cardFadeIn 0.4s ease;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.project-header h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    flex: 1;
    line-height: 1.4;
}

.project-header h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.project-header h3 a:hover {
    color: var(--primary);
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-description-full {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.project-description-full p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.progress-section {
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    border-radius: 100px;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.project-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   Announcements Table - Clean Design
   ============================================ */

.announcements-section {
    margin-bottom: 2rem;
}

.announcements-section .section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.announcements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.announcements-table-wrap {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.announcements-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.announcements-table th,
.announcements-table td {
    padding: 0.875rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.announcements-table th {
    background: var(--bg-alt);
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

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

.announcements-table tbody tr {
    transition: background-color 0.15s ease;
}

.announcements-table tbody tr:hover {
    background: var(--bg-alt);
}

.announcements-table tbody tr.important {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), transparent);
}

.announcements-table tbody tr.important td:first-child {
    border-left: 3px solid var(--warning);
}

.ann-title {
    font-weight: 500;
    color: var(--text);
}

.ann-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--warning);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.ann-content-cell {
    color: var(--text-muted);
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcements-table .col-user {
    white-space: nowrap;
    color: var(--text-muted);
    width: 100px;
    font-size: 0.8125rem;
}

.announcements-table .col-date {
    white-space: nowrap;
    color: var(--text-muted);
    width: 100px;
    font-size: 0.8125rem;
}

.announcements-table .col-actions {
    width: 160px;
    text-align: right;
}

.announcements-table .col-actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.ann-empty-row td {
    color: var(--text-muted);
    text-align: center;
    padding: 2.5rem 1rem;
}

/* ============================================
   Tasks - Modern Style
   ============================================ */

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.task-item {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-alt);
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: var(--transition);
}

.task-item:hover {
    background: var(--bg);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

/* Drag Handle */
.drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: grab;
    color: var(--text-muted);
    opacity: 0.5;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle svg {
    width: 16px;
    height: 16px;
}

.task-item:hover .drag-handle {
    opacity: 1;
    color: var(--text-secondary);
}

/* Drag & Drop States */
.task-item-ghost {
    opacity: 0.4;
    background: var(--primary-light);
    border: 2px dashed var(--primary);
}

.task-item-chosen {
    background: var(--bg);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.task-item-drag {
    background: var(--bg);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
}

.task-checkbox {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    cursor: pointer;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.task-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.task-title {
    font-weight: 500;
    flex: 1;
    color: var(--text);
}

.task-title.completed {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-description {
    width: 100%;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-left: calc(24px + 0.5rem);
    margin-top: 0.25rem;
    line-height: 1.5;
}

.task-meta {
    width: 100%;
    margin-left: calc(24px + 0.5rem);
    margin-top: 0.25rem;
    font-size: 0.8rem;
}

.task-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.task-item:hover .task-actions {
    opacity: 1;
}

/* Action Buttons - Small Icon Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
}

.action-btn svg {
    width: 14px;
    height: 14px;
}

.action-btn-edit {
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

.action-btn-edit:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.action-btn-delete {
    color: var(--text-muted);
    background: transparent;
}

.action-btn-delete:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* ============================================
   Notes - Clean Design
   ============================================ */

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.note-item {
    padding: 1.25rem;
    background: var(--bg-alt);
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    border-radius: var(--radius);
    transition: var(--transition);
}

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

.note-item.important {
    border-left-color: var(--warning);
    background: var(--warning-light);
}

.note-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--warning);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 100px;
    margin-bottom: 0.625rem;
}

.note-content {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--text);
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
    margin-top: 0.5rem;
}

.note-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   Files Grid - Modern Cards
   ============================================ */

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.file-item {
    background: var(--bg-alt);
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
}

.file-item:hover {
    background: var(--bg);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.file-preview {
    margin-bottom: 0.75rem;
}

.file-preview img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.file-preview img:hover {
    transform: scale(1.03);
}

.file-info {
    margin-bottom: 0.625rem;
}

.file-name {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    word-break: break-word;
    color: var(--text);
}

.file-item .action-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ============================================
   Forms - Modern & Clean
   ============================================ */

.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="file"] {
    padding: 0.625rem;
}

.form-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-container {
    max-width: 600px;
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   Alerts & Messages
   ============================================ */

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-error {
    background: var(--danger-light);
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: var(--success-light);
    color: #047857;
    border: 1px solid #a7f3d0;
}

.alert-warning {
    background: var(--warning-light);
    color: #b45309;
    border: 1px solid #fde68a;
}

/* ============================================
   Toast Notifications
   ============================================ */

#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.5rem;
    font-size: 0.9375rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    pointer-events: auto;
    animation: toastIn 0.35s cubic-bezier(0.21, 1.02, 0.73, 1);
    max-width: 400px;
    background: var(--bg);
    border: 1px solid var(--border);
}

.toast.toast-out {
    animation: toastOut 0.25s ease forwards;
}

.toast-success {
    border-left: 4px solid var(--success);
}

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

.toast-error {
    border-left: 4px solid var(--danger);
}

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

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.toast-message {
    flex: 1;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* ============================================
   Utilities
   ============================================ */

.text-muted {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

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

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

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

/* ============================================
   Modal - Modern Design
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--bg);
    border-radius: var(--radius-xl);
    padding: 0;
    max-width: 500px;
    width: 92%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.3s cubic-bezier(0.21, 1.02, 0.73, 1);
    position: relative;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-alt);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
}

.image-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.image-modal-close:hover {
    opacity: 0.7;
}

/* ============================================
   Login Page - Split Design
   ============================================ */

.login-page {
    display: flex;
    min-height: 100vh;
    background: var(--bg-alt);
}

.login-container {
    display: flex;
    width: 100%;
}

.login-brand {
    flex: 1;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    top: -150px;
    right: -150px;
}

.login-brand::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
}

.login-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.login-brand-logo {
    width: 88px;
    height: 88px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
}

.login-brand-logo svg {
    width: 44px;
    height: 44px;
    stroke: white;
}

.login-brand h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    letter-spacing: -0.025em;
}

.login-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.0625rem;
    max-width: 320px;
    line-height: 1.6;
}

.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.login-box {
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.025em;
}

.login-box .subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text);
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.login-form .btn-block {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    margin-top: 0.75rem;
}

/* ============================================
   Settings Page Styles
   ============================================ */

.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

.settings-section {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.settings-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 1.125rem;
    font-weight: 600;
}

.two-factor-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.qr-code-section {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.secret-key {
    font-family: 'SF Mono', Monaco, monospace;
    background: var(--bg);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    letter-spacing: 3px;
    font-size: 1rem;
    word-break: break-all;
}

.verification-form {
    max-width: 320px;
    margin: 1.5rem auto;
}

.verification-input {
    font-size: 1.75rem;
    text-align: center;
    letter-spacing: 10px;
    padding: 1rem;
}

.backup-codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
    max-width: 400px;
    margin: 1.5rem auto;
}

.backup-code {
    font-family: 'SF Mono', Monaco, monospace;
    background: var(--bg-alt);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
}

.backup-codes-warning {
    background: var(--warning-light);
    border: 1px solid #fde68a;
    color: #b45309;
    padding: 1.25rem;
    border-radius: var(--radius);
    margin: 1.25rem 0;
}

.backup-codes-warning h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.step-list {
    padding-left: 1.25rem;
}

.step-list li {
    margin-bottom: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   Finance Page Styles
   ============================================ */

.finance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.finance-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.finance-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.summary-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.summary-card .value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.025em;
}

.transactions-container {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table th,
.transactions-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.transactions-table th {
    background: var(--bg-alt);
    font-weight: 500;
    font-size: 0.8125rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.025em;
}

.transactions-table tbody tr:hover {
    background: var(--bg-alt);
}

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

/* ============================================
   Responsive Design
   ============================================ */

/* ============================================
   Responsive - Tablet (max-width: 900px)
   ============================================ */
@media (max-width: 900px) {
    .login-brand {
        display: none;
    }
    
    .login-form-side {
        padding: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .notes-list {
        gap: 0.5rem;
    }
}

/* ============================================
   Responsive - Mobile Landscape (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .main {
        padding: 1.5rem 0;
    }

    /* Header */
    .header .container {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .header h1 {
        font-size: 1rem;
        flex: 1;
    }
    
    .header h1 a {
        gap: 0.5rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Navigation */
    .nav {
        width: 100%;
        order: 3;
        justify-content: space-between;
        gap: 0.25rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border);
        margin-top: 0.5rem;
    }
    
    .nav-item {
        flex: 1;
        justify-content: center;
        padding: 0.5rem;
        font-size: 0.75rem;
        border-radius: var(--radius);
    }
    
    .nav-item svg {
        width: 18px;
        height: 18px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-divider {
        display: none;
    }
    
    .nav-user {
        order: 2;
        font-size: 0.8125rem;
        gap: 0.5rem;
    }
    
    .nav-user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
    }

    /* Page Header */
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .page-header h2 {
        font-size: 1.375rem;
    }
    
    .page-actions {
        display: flex;
        gap: 0.5rem;
    }
    
    .page-actions .btn {
        flex: 1;
        justify-content: center;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .project-description {
        font-size: 0.8125rem;
        -webkit-line-clamp: 2;
    }
    
    .project-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .project-actions {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }
    
    .project-actions .btn {
        flex: 1;
        justify-content: center;
    }

    /* Files Grid */
    .files-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .file-item {
        padding: 0.75rem;
    }

    /* Notes List */
    .notes-list {
        gap: 0.5rem;
    }
    
    .note-item {
        padding: 1rem;
    }

    /* Tasks */
    .task-item {
        padding: 0.875rem 1rem;
    }
    
    .task-actions {
        position: static;
        opacity: 1;
        width: 100%;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-light);
        justify-content: flex-end;
    }
    
    .drag-handle {
        display: none;
    }
    
    .task-checkbox {
        flex: 1;
    }
    
    .task-description,
    .task-meta {
        margin-left: 0;
        width: 100%;
    }

    /* Sections */
    .section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .section-header h3 {
        font-size: 1rem;
    }
    
    .section-header .btn {
        width: 100%;
        justify-content: center;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        border-radius: var(--radius-lg);
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column-reverse;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }

    /* Filters */
    .filter-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .filter-group {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .filter-group label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .filter-group select {
        flex: 1;
        min-width: 0;
    }

    /* Tables */
    .announcements-table {
        font-size: 0.8125rem;
    }
    
    .announcements-table th,
    .announcements-table td {
        padding: 0.625rem 0.75rem;
    }
    
    .announcements-table .col-user,
    .announcements-table .col-date {
        display: none;
    }
    
    .announcements-table .col-actions {
        white-space: nowrap;
    }
    
    .announcements-table .col-actions .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    /* Finance */
    .finance-summary {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .summary-card {
        padding: 1rem;
    }
    
    .summary-card .value {
        font-size: 1.5rem;
    }
    
    .transactions-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .btn-sm {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }

    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.8125rem;
    }
    
    input, textarea, select {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    /* Settings */
    .settings-container {
        padding: 0;
    }
    
    .settings-section {
        padding: 1rem;
        border-radius: var(--radius);
    }
    
    .qr-code-section {
        padding: 1rem;
    }

    /* Badges */
    .badges-group {
        flex-wrap: wrap;
    }
    
    .status-badge,
    .priority-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }

    /* Progress */
    .progress-section {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .progress-bar {
        width: 100%;
    }
}

/* ============================================
   Responsive - Mobile Portrait (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .main {
        padding: 1rem 0;
    }

    /* Login */
    .login-form-side {
        padding: 1.25rem;
    }
    
    .login-box h1 {
        font-size: 1.375rem;
    }
    
    .login-box p {
        font-size: 0.8125rem;
    }
    
    .twofa-inputs {
        gap: 0.375rem;
    }
    
    .twofa-input {
        width: 40px;
        height: 48px;
        font-size: 1.25rem;
    }

    /* Header */
    .header h1 {
        font-size: 0.875rem;
    }
    
    .header h1 span:not(.logo-icon) {
        display: none;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .nav-user span {
        display: none;
    }

    /* Page Header */
    .page-header h2 {
        font-size: 1.25rem;
    }
    
    .page-header-subtitle {
        font-size: 0.8125rem;
    }

    /* Cards */
    .project-card {
        padding: 0.875rem;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .project-title {
        font-size: 0.9375rem;
    }
    
    .badges-group {
        width: 100%;
    }

    /* Sections */
    .section {
        padding: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .section-header h3 {
        font-size: 0.9375rem;
    }

    /* Tasks */
    .task-item {
        padding: 0.75rem;
    }
    
    .task-title {
        font-size: 0.875rem;
    }
    
    .task-description {
        font-size: 0.75rem;
    }
    
    .action-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }
    
    .action-btn svg {
        width: 12px;
        height: 12px;
    }

    /* Notes */
    .note-item {
        padding: 0.875rem;
    }
    
    .note-content {
        font-size: 0.8125rem;
    }
    
    .note-actions {
        opacity: 1;
        position: static;
        margin-top: 0.75rem;
    }

    /* Files */
    .files-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .file-item {
        padding: 0.5rem;
    }
    
    .file-actions {
        opacity: 1;
        position: static;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    /* Modals */
    .modal-content {
        margin: 0.5rem;
        border-radius: var(--radius);
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }

    /* Announcements */
    .announcements-section {
        margin-bottom: 1.5rem;
    }
    
    .announcements-table .col-actions {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    /* Finance */
    .finance-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .finance-header h2 {
        font-size: 1.25rem;
    }
    
    .summary-card h4 {
        font-size: 0.75rem;
    }
    
    .summary-card .value {
        font-size: 1.25rem;
    }

    /* Empty States */
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state svg {
        width: 48px;
        height: 48px;
    }
    
    .empty-state p {
        font-size: 0.875rem;
    }

    /* Toast */
    .toast {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        transform: none;
        max-width: none;
    }
}

/* ============================================
   Responsive - Very Small Screens (max-width: 360px)
   ============================================ */
@media (max-width: 360px) {
    .header h1 {
        display: flex;
        align-items: center;
    }
    
    .nav-item {
        padding: 0.375rem;
    }
    
    .nav-item svg {
        width: 16px;
        height: 16px;
    }
    
    .twofa-input {
        width: 36px;
        height: 44px;
        font-size: 1.125rem;
    }
    
    .files-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .page-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}
