:root {
    --primary: #1a365d;
    --primary-light: #2d5a87;
    --accent: #c9a227;
    --bg: #f7f8fa;
    --surface: #ffffff;
    --text: #1a202c;
    --text-muted: #4a5568;
    --success: #2f855a;
    --warning: #c05621;
    --danger: #c53030;
    --border: #e2e8f0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-sm: 4px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;
}

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

body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

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

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.logo-text {
    font-size: 12px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.nav-item.active {
    background: rgba(201, 162, 39, 0.1);
    color: white;
    border-left-color: var(--accent);
}

.nav-item svg { flex-shrink: 0; }

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name { font-weight: 600; font-size: 14px; }
.user-role { font-size: 12px; opacity: 0.6; text-transform: capitalize; }

.logout-btn {
    color: rgba(255,255,255,0.6);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.logout-btn:hover { background: rgba(255,255,255,0.1); color: white; }

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 32px;
    min-height: 100vh;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
}

.page-header p { color: var(--text-muted); margin-top: 4px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

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

.btn-secondary {
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--border);
}

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

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

.btn-icon {
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all 0.2s;
}

.btn-icon:hover { background: var(--bg); color: var(--primary); }
.btn-icon.text-danger:hover { color: var(--danger); }

/* Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

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

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

.stat-icon.tasks-icon { background: #e6f4ff; color: #0066cc; }
.stat-icon.appointments-icon { background: #f0fff4; color: var(--success); }
.stat-icon.cases-icon { background: #fff5f5; color: var(--danger); }
.stat-icon.pending-icon { background: #fffaf0; color: var(--warning); }

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    display: block;
}

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

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

.dashboard-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

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

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.view-all {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}

.view-all:hover { text-decoration: underline; }

/* Task List */
.task-list { display: flex; flex-direction: column; gap: 12px; }

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.task-item:hover { background: #f0f2f5; }

.task-item.overdue { border-left: 3px solid var(--danger); }

.task-priority {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.priority-low { background: #718096; }
.priority-medium { background: var(--accent); }
.priority-high { background: var(--danger); }

.task-content { flex: 1; }

.task-content h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }

.task-content p {
    font-size: 12px;
    color: var(--text-muted);
}

.task-status {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    text-transform: capitalize;
}

.status-pending { background: #fff5f5; color: var(--danger); }
.status-in-progress { background: #e6f4ff; color: #0066cc; }
.status-completed { background: #f0fff4; color: var(--success); }
.status-cancelled { background: #f7fafc; color: #718096; }

/* Appointment List */
.appointment-list { display: flex; flex-direction: column; gap: 12px; }

.appointment-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.appointment-time {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    min-width: 50px;
}

.appointment-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
    padding: 8px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    color: white;
}

.date-day { font-size: 18px; font-weight: 700; line-height: 1; }
.date-month { font-size: 11px; text-transform: uppercase; }

.appointment-content { flex: 1; }

.appointment-content h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }

.appointment-content p {
    font-size: 12px;
    color: var(--text-muted);
}

.appointment-location {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-success {
    background: #f0fff4;
    color: var(--success);
    border: 1px solid #c6f6d5;
}

.alert-danger {
    background: #fff5f5;
    color: var(--danger);
    border: 1px solid #fed7d7;
}

/* Filters Bar */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-group {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

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

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

.filter-form { display: flex; gap: 8px; }

.filter-select {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 13px;
    background: var(--surface);
}

.search-form { display: flex; gap: 8px; }

.search-form input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    width: 250px;
}

/* Data Table */
.data-table-container {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.data-table th {
    text-align: left;
    padding: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

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

.data-table tr:hover { background: #f8fafc; }

.row-description {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

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

.actions-cell { white-space: nowrap; }

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-low { background: #edf2f7; color: #4a5568; }
.badge-medium { background: #fef3c7; color: #92400e; }
.badge-high { background: #fee2e2; color: #991b1b; }

.badge-pending { background: #fff5f5; color: var(--danger); }
.badge-in-progress, .badge-in-progress { background: #dbeafe; color: #1e40af; }
.badge-completed { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; }

.badge-scheduled { background: #dbeafe; color: #1e40af; }

.badge-active { background: #d1fae5; color: #065f46; }
.badge-closed { background: #f3f4f6; color: #6b7280; }
.badge-info { background: #e6f4ff; color: #0066cc; }

/* Form Styles */
.form-container {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    max-width: 800px;
}

.form-row { margin-bottom: 20px; }

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

.form-group { display: flex; flex-direction: column; gap: 6px; }

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Calendar */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.calendar-header h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    min-width: 180px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
}

.calendar-day-header {
    background: #f8fafc;
    padding: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.calendar-day {
    background: var(--surface);
    min-height: 100px;
    padding: 8px;
}

.calendar-day.empty { background: #f8fafc; }

.calendar-day.today {
    background: #e6f4ff;
}

.day-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.calendar-event {
    font-size: 11px;
    padding: 4px 6px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cases Grid */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.case-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

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

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.case-number {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.case-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.case-client {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.case-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.case-stats {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

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

.case-stat .stat-value {
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.case-stat .stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

.case-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.case-actions { display: flex; gap: 4px; }

/* Case Detail */
.case-detail-header {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.case-info {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.case-client-info {
    color: var(--text-muted);
    font-size: 14px;
}

.case-description-box {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.case-description-box h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 12px;
}

.case-description-box p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.detail-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.detail-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.detail-list { display: grid; gap: 12px; }

.detail-list dt {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-list dd {
    font-size: 14px;
}

.detail-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.detail-section h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 16px;
}

.related-items { display: flex; flex-direction: column; gap: 8px; }

.related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.related-item:hover { background: #f0f2f5; }

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

.item-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* Settings */
.settings-grid {
    display: grid;
    gap: 24px;
}

.settings-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.settings-section h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.settings-form .form-group { margin-bottom: 16px; }

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.login-container {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.login-header h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}

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

.login-form .form-group { margin-bottom: 20px; }

.login-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.login-form input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: all 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 14px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .main-content { margin-left: 0; }
    .form-row-2 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .cases-grid { grid-template-columns: 1fr; }
}

/* Searchable Dropdown */
.searchable-select {
    width: 100%;
}

.searchable-select-display {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    min-height: 46px;
}

.searchable-select-display:hover {
    border-color: var(--primary-light);
}

.searchable-select-display::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-muted);
    margin-left: 8px;
}

.searchable-select.open .searchable-select-display {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.searchable-select.open .searchable-select-display::after {
    border-top: none;
    border-bottom: 5px solid var(--text-muted);
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow: hidden;
}

.searchable-select.open .searchable-select-dropdown {
    display: block;
}

.searchable-select-search {
    width: 100%;
    padding: 12px;
    border: none;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    outline: none;
}

.searchable-select-search:focus {
    background: #f8fafc;
}

.searchable-select-options {
    max-height: 220px;
    overflow-y: auto;
}

.searchable-select-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 14px;
}

.searchable-select-option:hover {
    background: #f0f2f5;
}

.searchable-select-option.selected {
    background: var(--primary);
    color: white;
}

.searchable-select-option.highlighted {
    background: #e6f4ff;
}

/* Scrollbar styling */
.searchable-select-options::-webkit-scrollbar {
    width: 6px;
}

.searchable-select-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.searchable-select-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.searchable-select-options::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Document Upload */
.document-upload-area {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-top: 24px;
}

.document-upload-area h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.document-upload-area h3 svg {
    color: var(--primary);
}

.dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafbfc;
}

.dropzone:hover {
    border-color: var(--primary);
    background: #f0f4f8;
}

.dropzone.dragover {
    border-color: var(--primary);
    background: #e6f4ff;
}

.dropzone-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: var(--text-muted);
}

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

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

.document-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.document-item:hover {
    background: #f0f2f5;
}

.document-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: var(--radius-sm);
    color: var(--primary);
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-name:hover {
    text-decoration: underline;
}

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

.document-delete {
    padding: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.document-delete:hover {
    background: #fff5f5;
    color: var(--danger);
}

.no-documents {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    font-size: 14px;
}

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

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

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

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

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--primary); }

.toast-message {
    flex: 1;
    color: var(--text);
}

.toast-close {
    flex-shrink: 0;
    padding: 4px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

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

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

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

.toast.hiding {
    animation: slideOut 0.3s ease forwards;
}