﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.centered-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}


/* Design System Variables */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #6b7280;
    --secondary-hover: #4b5563;
    --success-color: #10b981;
    --success-hover: #059669;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --warning-color: #f59e0b;
    --warning-hover: #d97706;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --border-radius: 6px;
    --border-radius-lg: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Container Styles */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.content-container {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.password-field-wrapper {
    position: relative;
}

    .password-field-wrapper .form-control {
        padding-right: 2.5rem;
    }

.password-toggle-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: color 0.2s;
}

    .password-toggle-btn:hover {
        color: #374151;
    }

    .password-toggle-btn:focus {
        outline: none;
        color: #374151;
    }

    .password-toggle-btn .icon {
        width: 1.25rem;
        height: 1.25rem;
    }

.pr-10 {
    padding-right: 2.5rem;
}

/* Card System */
.card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-title {
    margin: 0;
    color: var(--gray-800);
    font-size: 1.25rem;
    font-weight: 600;
}

.card-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    line-height: 1.25rem;
    white-space: nowrap;
}

    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

    .btn-primary:hover:not(:disabled) {
        background-color: var(--primary-hover);
    }

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

    .btn-secondary:hover:not(:disabled) {
        background-color: var(--secondary-hover);
    }

.btn-success {
    background-color: var(--success-color);
    color: white;
}

    .btn-success:hover:not(:disabled) {
        background-color: var(--success-hover);
    }

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

    .btn-danger:hover:not(:disabled) {
        background-color: var(--danger-hover);
    }

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

    .btn-outline:hover:not(:disabled) {
        background-color: var(--gray-50);
        border-color: var(--gray-400);
    }

/* Form System */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: white;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .form-control:disabled {
        background-color: var(--gray-50);
        color: var(--gray-500);
        cursor: not-allowed;
    }

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Table System */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

    .table th,
    .table td {
        padding: 0.75rem;
        text-align: left;
        border-bottom: 1px solid var(--gray-200);
    }

    .table th {
        background-color: var(--gray-50);
        font-weight: 600;
        color: var(--gray-700);
        font-size: 0.875rem;
        border-top: none;
    }

    .table td {
        vertical-align: middle;
    }

    .table tbody tr:hover {
        background-color: var(--gray-50);
    }

/* Badge System */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    border-radius: 9999px;
    white-space: nowrap;
}

.badge-primary {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-outline {
    background-color: transparent;
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
}

/* Alert System */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

/* Loading and Empty States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: var(--gray-500);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
}

.empty-state p {
    margin: 0 0 1rem 0;
    color: var(--gray-600);
    font-size: 1rem;
}

/* Auth Loading with Spinner */
.auth-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    font-size: 18px;
    color: #6b7280;
}

    .auth-loading::before {
        content: '';
        width: 20px;
        height: 20px;
        border: 2px solid #e5e7eb;
        border-top: 2px solid #3b82f6;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-right: 10px;
    }

/* Layout Styles */
.user-info {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 0.5rem;
}

.welcome-text {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.top-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    background: white;
}

/* Navigation Styles */
.app-navigation {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

    .nav-link:hover {
        background-color: var(--gray-100);
        color: var(--primary-color);
    }

    .nav-link .bi {
        font-size: 1.2rem;
        margin-right: 0.5rem;
        line-height: 1;
    }

.nav-user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--gray-200);
}

.nav-user-name {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Typography Classes */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-700 {
    color: var(--gray-700);
}

.text-gray-800 {
    color: var(--gray-800);
}

.text-primary {
    color: var(--primary-color);
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-warning {
    color: var(--warning-color);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mr-4 {
    margin-right: 1rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

.ml-4 {
    margin-left: 1rem;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* Form Improvements */
.form-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.text-muted {
    color: var(--gray-500);
}

/* Responsive Table */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.table {
    margin-bottom: 0;
}

/* Login-specific Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
}

.login-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.5s ease-in;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-800);
}

.login-subtitle {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
    margin: 0 0 1.5rem 0;
}

.checkbox-text {
    margin-left: 0.75rem;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

.btn-full {
    width: 100%;
    margin-bottom: 1rem;
}

.mfa-section {
    animation: fadeIn 0.3s ease-in-out;
}

.mfa-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

    .mfa-header h3 {
        margin: 0 0 0.5rem 0;
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--gray-800);
    }

    .mfa-header p {
        margin: 0;
        color: var(--gray-600);
        font-size: 0.875rem;
    }

.login-layout {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.minimal-login {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

    .minimal-login h2 {
        color: #2d3748;
        text-align: center;
        margin-bottom: 30px;
        font-weight: 700;
        font-size: 28px;
    }

.minimal-form-group {
    margin-bottom: 20px;
    position: relative;
}

.minimal-label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
}

.minimal-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #2d3748;
}

    .minimal-input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.minimal-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.minimal-checkbox {
    display: flex;
    align-items: center;
    color: #4a5568;
}

    .minimal-checkbox input {
        margin-right: 8px;
        transform: scale(1.1);
    }

.minimal-forgot {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .minimal-forgot:hover {
        color: #5a67d8;
    }

.minimal-btn {
    width: 100%;
    padding: 12px;
    background: #667eea;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

    .minimal-btn:hover {
        background: #5a67d8;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

.mfa-notice {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 20px;
    font-size: 14px;
    color: #667eea;
    text-align: center;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 20px;
    color: #dc2626;
    font-size: 14px;
}

    .error-message p {
        margin: 0;
    }

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

    .modal-close:hover {
        background-color: var(--gray-100);
        color: var(--gray-700);
    }

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

    .breadcrumb-link:hover {
        text-decoration: underline;
        color: var(--primary-hover);
    }

.breadcrumb-separator {
    color: var(--gray-400);
}

.breadcrumb-current {
    color: var(--gray-600);
    font-weight: 500;
}

/* Admin Cases Filters */
.filters-section {
    margin-bottom: 2rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group-wide {
    grid-column: span 2;
}

.quick-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.results-summary {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Admin Case Management Styles */
.manager-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 0.875rem;
    color: var(--gray-800);
    font-weight: 500;
}

.cases-summary {
    margin: 1.5rem 0;
}

.summary-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.summary-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.summary-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.tenant-info,
.address-info,
.manager-info,
.date-info {
    min-width: 0;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.current-stage {
    font-weight: 500;
    color: var(--gray-700);
}

/* Table Row Priority Classes */
.table tbody tr.priority-high {
    border-left: 4px solid var(--danger-color);
}

.table tbody tr.priority-medium {
    border-left: 4px solid var(--warning-color);
}

/* Stage Reorder Specific Styles */
.stages-reorder-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
}

.stage-reorder-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    transition: all 0.2s ease;
}

    .stage-reorder-item:hover {
        border-color: var(--primary-color);
        box-shadow: var(--shadow-md);
    }

    .stage-reorder-item.first {
        border-left: 4px solid var(--success-color);
    }

    .stage-reorder-item.last {
        border-left: 4px solid var(--danger-color);
    }

.stage-order-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.stage-info {
    flex: 1;
}

.stage-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
}

.stage-details {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.stage-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.reorder-instructions {
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.changes-notice {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--border-radius);
    padding: 1rem;
}

/* Create Case Form Styles */
.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
}

.section-title {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 2rem;
}

/* Cases Grid and Card Styles */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.case-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}


    .case-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        border-color: var(--primary-color);
    }

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.case-tenant {
    flex: 1;
}

.tenant-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
}

.tenant-address {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.tenant-location {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.case-status {
    flex-shrink: 0;
}

.case-details {
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

    .detail-row:last-child {
        margin-bottom: 0;
    }

.label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.value {
    font-size: 0.875rem;
    color: var(--gray-800);
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.action-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
}

.action-text {
    vertical-align: middle;
    font-size: 0.875rem;
}

/* Better button spacing and sizing */
.case-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
}

/* Case Detail Styles */
.property-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.detail-group {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.case-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 0.875rem;
    color: var(--gray-800);
    font-weight: 500;
}

/* Additional Button Variants */
.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Stage-specific Styles */
.stage-reorder-item {
    transition: all 0.2s ease;
}

    .stage-reorder-item:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* Existing Blazor Styles */
h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

    .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.validation-summary {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

    .validation-summary ul {
        margin: 0;
        padding-left: 1.5rem;
    }

/* Blazor Error UI */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary::after {
    content: "An error has occurred."
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-container {
        padding: 1rem;
    }

    .content-container {
        padding: 1.5rem;
    }

    .card {
        padding: 1rem;
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .table-responsive {
        overflow-x: auto;
        font-size: 0.875rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
    }

    /* Admin Cases Responsive */
    .filter-group-wide {
        grid-column: span 1;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .results-summary .flex {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .sort-controls {
        justify-content: stretch;
    }

        .sort-controls .form-control {
            width: 100%;
        }

    /* Modal Responsive */
    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .flex {
        flex-direction: column;
        gap: 0.5rem;
    }

        .flex.gap-2 > .btn,
        .flex.gap-3 > .btn {
            width: 100%;
        }

    /* Form Actions Responsive */
    .form-actions {
        flex-direction: column;
    }

        .form-actions .btn {
            width: 100%;
        }

    /* Cases Grid Responsive */
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .case-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .case-status {
        align-self: flex-start;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .value {
        max-width: 100%;
        text-align: left;
    }

    /* Case Detail Responsive */
    .action-buttons {
        flex-direction: column;
    }

        .action-buttons .btn {
            width: 100%;
        }

    .property-details,
    .case-info-grid {
        grid-template-columns: 1fr;
    }

    /* Admin Case Management Responsive */
    .manager-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    /* Stage Reorder Responsive */
    .stage-reorder-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .stage-controls {
        flex-direction: row;
        justify-content: center;
    }

    .stage-order-number {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .login-container {
        max-width: 350px;
    }

    .minimal-login {
        padding: 30px 25px;
    }

    /* Admin Summary Cards Responsive */
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Document Upload Styles - Add to EvictionTracker.Client/wwwroot/css/app.css */

/* File Upload Area */
.file-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin: 1.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--gray-50);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .file-upload-area:hover {
        border-color: var(--primary-color);
        background: rgba(59, 130, 246, 0.05);
    }

    .file-upload-area.drag-over {
        border-color: var(--primary-color);
        background: rgba(59, 130, 246, 0.1);
        transform: scale(1.02);
    }

.upload-content {
    width: 100%;
    text-align: center;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    font-size: 3rem;
    color: var(--gray-400);
}

.upload-text strong {
    color: var(--gray-700);
    font-size: 1.125rem;
    display: block;
    margin-bottom: 0.5rem;
}

.upload-text p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
}

/* Selected File Display */
.selected-file {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.file-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    text-align: left;
}

.file-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.file-size,
.file-type {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Documents List */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    transition: all 0.2s ease;
}

    .document-item:hover {
        border-color: var(--primary-color);
        box-shadow: var(--shadow-md);
    }

.document-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.document-info {
    flex: 1;
    min-width: 0; /* Allow text to wrap */
}

.document-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.document-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.document-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 500;
}

.document-size,
.document-date {
    color: var(--gray-500);
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Upload Progress */
.upload-progress {
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

/* File Type Icons */
.file-type-pdf {
    color: #dc2626;
}

.file-type-word {
    color: #2563eb;
}

.file-type-excel {
    color: #059669;
}

.file-type-image {
    color: #7c3aed;
}

.file-type-text {
    color: var(--gray-600);
}

/* Drag and Drop Animations */
@keyframes dragPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.file-upload-area.drag-over {
    animation: dragPulse 0.6s ease-in-out;
}

/* Loading States */
.upload-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-weight: 500;
}

    .upload-loading::before {
        content: '';
        width: 16px;
        height: 16px;
        border: 2px solid rgba(59, 130, 246, 0.3);
        border-top: 2px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

/* Document Categories Dropdown */
.category-dropdown {
    position: relative;
}

.category-option {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

.category-name {
    font-weight: 500;
    color: var(--gray-800);
}

.category-description {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Responsive Design for Document Upload */
@media (max-width: 768px) {
    .file-upload-area {
        padding: 1.5rem 1rem;
        min-height: 150px;
    }

    .upload-icon {
        font-size: 2rem;
    }

    .upload-text strong {
        font-size: 1rem;
    }

    .selected-file {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .file-info {
        text-align: center;
    }

    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .document-details {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .document-actions {
        width: 100%;
        justify-content: stretch;
    }

        .document-actions .btn {
            flex: 1;
        }
}

@media (max-width: 480px) {
    .file-upload-area {
        padding: 1rem;
        min-height: 120px;
    }

    .upload-text strong {
        font-size: 0.875rem;
    }

    .upload-text p {
        font-size: 0.75rem;
    }

    .document-actions {
        flex-direction: column;
    }

        .document-actions .btn {
            width: 100%;
        }
}

/* Error States */
.upload-error {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
}

    .upload-error .upload-icon {
        color: var(--danger-color);
    }

    .upload-error .upload-text {
        color: var(--danger-color);
    }

/* Success States */
.upload-success {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

    .upload-success .upload-icon {
        color: var(--success-color);
    }

/* File Size Formatting */
.file-size-large {
    color: var(--warning-color);
    font-weight: 600;
}

.file-size-too-large {
    color: var(--danger-color);
    font-weight: 600;
}

/* Document Status Indicators */
.document-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

    .document-status.uploaded {
        background: var(--success-color);
        color: white;
    }

    .document-status.processing {
        background: var(--warning-color);
        color: white;
    }

    .document-status.error {
        background: var(--danger-color);
        color: white;
    }

/* Document Display Styles - Add to your app.css */

/* Document count badge in case cards */
.case-card .detail-row .badge {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
}

/* Documents section in case detail */
.documents-section {
    margin-top: 2rem;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

    .document-item:hover {
        border-color: var(--primary-color);
        box-shadow: var(--shadow-md);
        transform: translateY(-1px);
    }

.document-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--border-radius);
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    word-break: break-word;
    font-size: 1rem;
    line-height: 1.4;
}

.document-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    align-items: center;
}

.document-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.document-size {
    color: var(--gray-600);
    font-weight: 500;
}

.document-date {
    color: var(--gray-500);
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Document empty state */
.documents-list .empty-state {
    padding: 2rem;
    text-align: center;
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius-lg);
}

    .documents-list .empty-state .empty-icon {
        font-size: 3rem;
        color: var(--gray-400);
        margin-bottom: 1rem;
    }

    .documents-list .empty-state h4 {
        margin: 0 0 0.5rem 0;
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--gray-700);
    }

    .documents-list .empty-state p {
        margin: 0 0 1rem 0;
        color: var(--gray-600);
    }

/* Document loading state */
.document-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--gray-500);
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
}

/* Document count in action buttons */
.case-actions .btn .action-text {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* File type specific colors */
.document-icon.pdf {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.document-icon.word {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.document-icon.excel {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.document-icon.image {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.document-icon.text {
    background: rgba(107, 114, 128, 0.1);
    color: var(--gray-600);
}

/* Responsive design for documents */
@media (max-width: 768px) {
    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }

    .document-icon {
        align-self: center;
        margin-bottom: 0.5rem;
    }

    .document-info {
        text-align: center;
        width: 100%;
    }

    .document-details {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .document-actions {
        width: 100%;
        justify-content: stretch;
    }

        .document-actions .btn {
            flex: 1;
        }
}

@media (max-width: 480px) {
    .document-details {
        flex-direction: column;
        gap: 0.25rem;
    }

    .document-actions {
        flex-direction: column;
    }

        .document-actions .btn {
            width: 100%;
        }
}

/* Animation for document items */
@keyframes documentFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.document-item {
    animation: documentFadeIn 0.3s ease-out;
}

/* Document status indicators */
.document-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

    .document-status.recent {
        background: var(--success-color);
        color: white;
    }

    .document-status.old {
        background: var(--gray-300);
        color: var(--gray-700);
    }

/* Improved document section header */
.documents-section .card-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
}

.documents-section .card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .documents-section .card-title::before {
        content: '\1F4C1';
        font-size: 1.5rem;
    }

/* Document grid for larger screens */
@media (min-width: 1200px) {
    .documents-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

        .documents-grid .document-item {
            margin-bottom: 0;
        }
}
.filters-section {
    margin-bottom: 1.5rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.filter-group {
}

.filter-group-wide {
    grid-column: span 2;
}

.quick-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.results-summary {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
}

.view-toggle {
    text-align: center;
}

.btn-group {
    display: inline-flex;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.case-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

    .case-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .case-card.urgent-case {
        border-left: 4px solid #f59e0b;
    }

.case-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.priority-high {
    background-color: #fef2f2;
}

.priority-medium {
    background-color: #fffbeb;
}

.urgent-indicator {
    margin-top: 0.5rem;
}

/* Add these styles to EvictionTracker.Client/wwwroot/css/app.css */

/* Conditional File Upload Styles */
.selected-file-info {
    margin-top: 1rem;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

    .file-preview:hover {
        border-color: var(--primary-color);
        background: rgba(59, 130, 246, 0.05);
    }

    .file-preview .file-icon {
        font-size: 1.5rem;
        color: var(--primary-color);
        flex-shrink: 0;
        width: 2.5rem;
        height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(59, 130, 246, 0.1);
        border-radius: var(--border-radius);
    }

    .file-preview .file-details {
        flex: 1;
        min-width: 0;
    }

    .file-preview .file-name {
        font-weight: 600;
        color: var(--gray-800);
        margin-bottom: 0.25rem;
        word-break: break-word;
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .file-preview .file-meta {
        display: flex;
        gap: 0.75rem;
        font-size: 0.75rem;
        color: var(--gray-600);
        align-items: center;
    }

    .file-preview .file-size {
        font-weight: 500;
    }

/* Conditional section transitions */
.form-section {
    transition: all 0.3s ease;
}

/* File upload error states */
.file-preview.error {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
}

    .file-preview.error .file-icon {
        color: var(--danger-color);
        background: rgba(239, 68, 68, 0.1);
    }

/* Loading input state */
.loading-input {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    color: var(--gray-600);
    font-size: 0.875rem;
}

    .loading-input::before {
        content: '';
        width: 16px;
        height: 16px;
        border: 2px solid var(--gray-300);
        border-top: 2px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-right: 0.5rem;
    }

/* Enhanced file input styling */
.form-control[type="file"] {
    padding: 0.5rem;
    border: 2px dashed var(--gray-300);
    background: var(--gray-50);
    transition: all 0.2s ease;
}

    .form-control[type="file"]:hover {
        border-color: var(--primary-color);
        background: rgba(59, 130, 246, 0.05);
    }

    .form-control[type="file"]:focus {
        border-color: var(--primary-color);
        background: rgba(59, 130, 246, 0.05);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

/* Smooth transitions for conditional content */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

.conditional-upload {
    animation: slideDown 0.3s ease-out;
    overflow: hidden;
}

/* Responsive design for file uploads */
@media (max-width: 768px) {
    .file-preview {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

        .file-preview .file-details {
            text-align: center;
        }

        .file-preview .file-meta {
            justify-content: center;
            flex-direction: column;
            gap: 0.25rem;
        }
}


/* Client Information Grid */
.client-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* Property Managers Selection */
.property-managers-selection {
    margin-top: 1rem;
}

.managers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.manager-checkbox-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: all 0.2s ease;
}

    .manager-checkbox-item:hover {
        border-color: var(--primary-color);
        background-color: rgba(59, 130, 246, 0.05);
    }

    .manager-checkbox-item .checkbox-label {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        cursor: pointer;
        margin: 0;
    }

.manager-info {
    flex: 1;
}

.manager-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.manager-email {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.manager-phone {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Property Managers and Owners Lists */
.property-managers-list,
.property-owners-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.property-manager-item,
.property-owner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    transition: all 0.2s ease;
}

    .property-manager-item:hover,
    .property-owner-item:hover {
        border-color: var(--primary-color);
        background: rgba(59, 130, 246, 0.05);
    }

.manager-icon,
.owner-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--border-radius);
}

.manager-info,
.owner-info {
    flex: 1;
    min-width: 0;
}

.manager-name,
.owner-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.manager-details,
.owner-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.manager-email,
.owner-email {
    color: var(--primary-color);
}

.manager-assigned {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.owner-phone {
    color: var(--gray-600);
}

.owner-address {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.manager-actions,
.owner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Client Table Specific Styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.property-managers-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.address-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Client status indicators */
.client-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Additional badge colors for client-specific statuses */
.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Toast Container for Client Operations */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

    .toast.success {
        border-left: 4px solid var(--success-color);
    }

    .toast.error {
        border-left: 4px solid var(--danger-color);
    }

    .toast.warning {
        border-left: 4px solid var(--warning-color);
    }

    .toast.info {
        border-left: 4px solid var(--primary-color);
    }

/* Purple color for property manager count badge */
.text-purple-600 {
    color: #7c3aed;
}

/* Orange color for property owner count badge */
.text-orange-600 {
    color: #ea580c;
}

/* Client management modal enhancements */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

    .modal-content.large {
        max-width: 800px;
    }

/* Enhanced checkbox styling for property manager selection */
.property-managers-selection input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: 0.25rem;
    background: white;
    transition: all 0.2s ease;
}

    .property-managers-selection input[type="checkbox"]:checked {
        background: var(--primary-color);
        border-color: var(--primary-color);
    }

    .property-managers-selection input[type="checkbox"]:focus {
        outline: 2px solid rgba(59, 130, 246, 0.5);
        outline-offset: 2px;
    }

/* Responsive design for client management */
@media (max-width: 768px) {
    .managers-grid {
        grid-template-columns: 1fr;
    }

    .property-manager-item,
    .property-owner-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .manager-details,
    .owner-details {
        align-items: center;
    }

    .manager-actions,
    .owner-actions {
        width: 100%;
        justify-content: center;
    }

    .client-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .property-managers-info,
    .address-info {
        text-align: left;
    }

    /* Table responsive adjustments for clients table */
    .table th:nth-child(4),
    .table td:nth-child(4),
    .table th:nth-child(5),
    .table td:nth-child(5) {
        display: none; /* Hide property managers and owners columns on mobile */
    }
}

@media (max-width: 480px) {
    .manager-checkbox-item {
        padding: 0.75rem;
    }

    .manager-info .manager-name {
        font-size: 0.875rem;
    }

    .manager-info .manager-email,
    .manager-info .manager-phone {
        font-size: 0.75rem;
    }

    /* Hide additional columns on very small screens */
    .table th:nth-child(3),
    .table td:nth-child(3) {
        display: none; /* Hide contact column */
    }
}

/* Animation for client operations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading state for property manager assignment */
.loading-managers {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--gray-500);
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

    .loading-managers::before {
        content: '';
        width: 16px;
        height: 16px;
        border: 2px solid var(--gray-300);
        border-top: 2px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-right: 0.5rem;
    }

/* Enhanced form sections for client editing */
.form-section .section-title {
    color: var(--gray-800);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Client summary statistics */
.client-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

    .stat-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.stat-number.blue {
    color: var(--primary-color);
}

.stat-number.green {
    color: var(--success-color);
}

.stat-number.purple {
    color: #7c3aed;
}

.stat-number.orange {
    color: #ea580c;
}

/* Enhanced empty states for client management */
.empty-state.clients {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px dashed var(--primary-color);
}

    .empty-state.clients .empty-icon {
        background: linear-gradient(135deg, var(--primary-color), #7c3aed);
        -webkit-background-clip: text; 
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

/* Client action buttons with consistent styling */
.client-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

    .client-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2.5rem;
        padding: 0.5rem;
    }

/* Special styling for client status badges in tables */
.table .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

/* Enhanced modal styling for client operations */
.modal-content.client-modal {
    max-width: 900px;
}

.modal-body .form-section {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.modal-body .section-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.5rem;
}

/* Property manager assignment grid in modals */
.property-managers-assignment {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 0.5rem;
}

/* Address display formatting */
.address-display {
    line-height: 1.4;
}

    .address-display .address-line {
        display: block;
    }

    .address-display .city-state-zip {
        color: var(--gray-600);
        font-weight: 500;
    }

/* Contact information styling */
.contact-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

    .contact-links a:hover {
        color: var(--primary-hover);
        text-decoration: underline;
    }

/* Success and error state animations */
@keyframes successPulse {
    0% {
        background-color: rgba(16, 185, 129, 0.1);
    }

    50% {
        background-color: rgba(16, 185, 129, 0.2);
    }

    100% {
        background-color: rgba(16, 185, 129, 0.1);
    }
}

@keyframes errorPulse {
    0% {
        background-color: rgba(239, 68, 68, 0.1);
    }

    50% {
        background-color: rgba(239, 68, 68, 0.2);
    }

    100% {
        background-color: rgba(239, 68, 68, 0.1);
    }
}

.form-group.success {
    animation: successPulse 1s ease-in-out;
}

.form-group.error {
    animation: errorPulse 1s ease-in-out;
}

/* Client management breadcrumb enhancements */
.breadcrumb {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

/* Enhanced button group for client table actions */
.btn-group {
    display: flex;
    gap: 0.25rem;
}

    .btn-group .btn {
        border-radius: var(--border-radius);
        border: 1px solid var(--gray-300);
    }

        .btn-group .btn:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-sm);
        }

/* Client summary cards with enhanced styling */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.summary-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

    .summary-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--primary-color);
    }

    .summary-card.success::before {
        background: var(--success-color);
    }

    .summary-card.warning::before {
        background: var(--warning-color);
    }

    .summary-card.info::before {
        background: var(--primary-color);
    }

    .summary-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

/* Responsive design improvements */
@media (max-width: 1024px) {
    .managers-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .client-info-grid {
        grid-template-columns: 1fr;
    }

    .managers-grid {
        grid-template-columns: 1fr;
    }

    .property-manager-item,
    .property-owner-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .manager-details,
    .owner-details {
        align-items: center;
    }

    .manager-actions,
    .owner-actions {
        width: 100%;
        justify-content: center;
    }

    /* Hide less important columns on mobile */
    .table th:nth-child(4),
    .table td:nth-child(4),
    .table th:nth-child(5),
    .table td:nth-child(5) {
        display: none;
    }

    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }

    .modal-content.client-modal {
        max-width: 95vw;
        margin: 1rem;
    }

    .client-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .client-actions .btn {
            width: 100%;
        }
}

/* Advanced styling for property manager checkboxes */
.manager-checkbox-item input[type="checkbox"] {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: 0.25rem;
    background: white;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .manager-checkbox-item input[type="checkbox"]:checked {
        background: var(--primary-color);
        border-color: var(--primary-color);
    }

        .manager-checkbox-item input[type="checkbox"]:checked::after {
            content: '\2713';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 0.875rem;
            font-weight: bold;
        }

    .manager-checkbox-item input[type="checkbox"]:focus {
        outline: 2px solid rgba(59, 130, 246, 0.5);
        outline-offset: 2px;
    }

/* Loading state improvements */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--border-radius);
}

.card.loading {
    position: relative;
}

/* Enhanced form validation styling */
.form-control.valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-control.invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Client management specific icons */
.client-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Enhanced table styling for client management */
.table.clients-table th {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
}

.table.clients-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(2px);
    transition: all 0.2s ease;
}

/* Client Selection Styles */

.client-selection-container {
    max-width: 600px;
}

.client-display {
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-weight: 500;
    color: #374151;
}

.client-selector {
    position: relative;
}

.client-dropdown {
    padding-right: 3rem;
    background-color: white;
    font-weight: 500;
}

.client-selector-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--gray-400);
    pointer-events: none;
}

.selected-client-info {
    margin-top: 0.5rem;
}

.clients-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.client-summary-item {
    padding: 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

    .client-summary-item:hover {
        border-color: var(--primary-color);
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

    .client-summary-item.selected {
        border-color: var(--primary-color);
        background: rgba(59, 130, 246, 0.05);
        box-shadow: var(--shadow-md);
    }

.client-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.client-summary-name {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
}

.client-summary-description {
    margin: 0 0 1rem 0;
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.client-summary-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.stat-item {
    text-align: center;
    flex: 1;
}

    .stat-item .stat-value {
        display: block;
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--primary-color);
        margin-bottom: 0.25rem;
    }

    .stat-item .stat-label {
        font-size: 0.75rem;
        color: var(--gray-600);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    @media (max-width: 768px) {
    .clients-overview {
        grid-template-columns: 1fr;
    }

    .client-summary-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

        .stat-item .stat-value {
            font-size: 1.25rem;
        }
}

.case-timeline {
    width: 100%;
}

/* Horizontal Timeline */
.horizontal-timeline {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 20px 0 40px 0;
    margin-bottom: 2rem;
    position: relative;
}

/* Timeline Step */
.timeline-step {
    flex: 1;
    min-width: 120px;
    text-align: center;
    position: relative;
    padding: 0 10px;
}

    /* Connection lines between steps */
    .timeline-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 20px;
        right: -50%;
        width: 100%;
        height: 3px;
        background: var(--gray-300);
        z-index: 1;
        border-radius: 2px;
    }

    .timeline-step.completed:not(:last-child)::after {
        background: linear-gradient(90deg, var(--success-color) 0%, var(--success-color) 70%, var(--gray-300) 100%);
    }

/* Step Circle */
.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    position: relative;
    z-index: 2;
    font-weight: 600;
    color: var(--gray-500);
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Completed step styling */
.timeline-step.completed .step-circle {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
    transform: scale(1.1);
}

    .timeline-step.completed .step-circle span {
        font-size: 16px;
        font-weight: 700;
    }

/* Current step styling */
.timeline-step.current .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    animation: pulse 2s infinite;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Step text styling */
.step-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--gray-700);
    line-height: 1.2;
}

.timeline-step.completed .step-title {
    color: var(--success-color);
}

.timeline-step.current .step-title {
    color: var(--primary-color);
    font-weight: 700;
}

.step-date {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

.timeline-step.completed .step-date {
    color: var(--success-color);
    font-weight: 600;
}

.timeline-step.current .step-date {
    color: var(--primary-color);
    font-weight: 600;
}

/* Timeline Summary */
.timeline-summary {
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
}

.timeline-summary-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    font-size: 0.875rem;
    color: var(--gray-400);
    font-weight: 500;
    margin: 0 0.25rem;
}

.timeline-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline-updated {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.timeline-actions {
    display: flex;
    gap: 0.5rem;
}

/* Status badge variations */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

    .status-badge.draft {
        background: var(--gray-100);
        color: var(--gray-700);
        border: 1px solid var(--gray-300);
    }

    .status-badge.active {
        background: #dbeafe;
        color: #1d4ed8;
        border: 1px solid #93c5fd;
    }

    .status-badge.completed {
        background: #dcfce7;
        color: #166534;
        border: 1px solid #a7f3d0;
    }

    .status-badge.cancelled {
        background: #fef2f2;
        color: #dc2626;
        border: 1px solid #fecaca;
    }

    .status-badge.pending {
        background: #fef3c7;
        color: #92400e;
        border: 1px solid #fde68a;
    }

/* Pulse animation for current step */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
        transform: scale(1.15);
    }
}

/* Hover effects */
.timeline-step:hover .step-circle {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.timeline-step.completed:hover .step-circle,
.timeline-step.current:hover .step-circle {
    transform: scale(1.2);
}

.timeline-step:hover .step-title {
    color: var(--primary-color);
}

/* Loading state */
.timeline-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
}

    .timeline-loading::before {
        content: '';
        width: 24px;
        height: 24px;
        border: 2px solid var(--gray-300);
        border-top: 2px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-right: 0.75rem;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .horizontal-timeline {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 0;
        gap: 1rem;
    }

    .timeline-step {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
        min-width: auto;
        padding: 0;
    }

        .timeline-step:not(:last-child)::after {
            display: none;
        }

        /* Vertical connector for mobile */
        .timeline-step:not(:last-child)::before {
            content: '';
            position: absolute;
            left: 19px;
            top: 50px;
            bottom: -1rem;
            width: 2px;
            background: var(--gray-300);
            z-index: 1;
        }

        .timeline-step.completed:not(:last-child)::before {
            background: var(--success-color);
        }

    .step-circle {
        flex-shrink: 0;
        margin: 0;
    }

    .timeline-step-content {
        flex: 1;
    }

    .timeline-summary-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .timeline-stats {
        justify-content: center;
    }

    .timeline-status {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .timeline-actions {
        justify-content: center;
        width: 100%;
    }

        .timeline-actions .btn {
            flex: 1;
        }
}

@media (max-width: 480px) {
    .timeline-summary {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .step-title {
        font-size: 13px;
    }

    .step-date {
        font-size: 11px;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .timeline-step.completed .step-circle span,
    .timeline-step.current .step-circle span {
        font-size: 14px;
    }
}

/* Animations for timeline items */
@keyframes timelineItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-step {
    animation: timelineItemFadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

    .timeline-step:nth-child(1) {
        animation-delay: 0.1s;
    }

    .timeline-step:nth-child(2) {
        animation-delay: 0.2s;
    }

    .timeline-step:nth-child(3) {
        animation-delay: 0.3s;
    }

    .timeline-step:nth-child(4) {
        animation-delay: 0.4s;
    }

    .timeline-step:nth-child(5) {
        animation-delay: 0.5s;
    }

    .timeline-step:nth-child(6) {
        animation-delay: 0.6s;
    }

    .timeline-step:nth-child(7) {
        animation-delay: 0.7s;
    }

    .timeline-step:nth-child(8) {
        animation-delay: 0.8s;
    }

/* Enhanced styling for better visual hierarchy */
.case-timeline .card-title {
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .case-timeline .card-title::before {
        content: '📊';
        font-size: 1.25rem;
    }

.case-timeline .card-subtitle {
    color: var(--gray-600);
}

/* Special styling for urgent/overdue stages */
.timeline-step.overdue .step-circle {
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
    animation: pulseWarning 2s infinite;
}

.timeline-step.overdue .step-title {
    color: var(--warning-color);
}

.timeline-step.overdue .step-date {
    color: var(--warning-color);
}

@keyframes pulseWarning {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.1);
    }
}

/* Case Timeline Styles - Add to your app.css */

.case-timeline {
    width: 100%;
}

/* Horizontal Timeline */
.horizontal-timeline {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 20px 0 40px 0;
    margin-bottom: 2rem;
    position: relative;
}

/* Timeline Step */
.timeline-step {
    flex: 1;
    min-width: 120px;
    text-align: center;
    position: relative;
    padding: 0 10px;
}

    /* Connection lines between steps */
    .timeline-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 20px;
        right: -50%;
        width: 100%;
        height: 3px;
        background: var(--gray-300);
        z-index: 1;
        border-radius: 2px;
    }

    .timeline-step.completed:not(:last-child)::after {
        background: linear-gradient(90deg, var(--success-color) 0%, var(--success-color) 70%, var(--gray-300) 100%);
    }

/* Step Circle */
.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    position: relative;
    z-index: 2;
    font-weight: 600;
    color: var(--gray-500);
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Completed step styling */
.timeline-step.completed .step-circle {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
    transform: scale(1.1);
}

    .timeline-step.completed .step-circle span {
        font-size: 16px;
        font-weight: 700;
    }

/* Current step styling */
.timeline-step.current .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    animation: pulse 2s infinite;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Step text styling */
.step-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--gray-700);
    line-height: 1.2;
}

.timeline-step.completed .step-title {
    color: var(--success-color);
}

.timeline-step.current .step-title {
    color: var(--primary-color);
    font-weight: 700;
}

.step-date {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

.timeline-step.completed .step-date {
    color: var(--success-color);
    font-weight: 600;
}

.timeline-step.current .step-date {
    color: var(--primary-color);
    font-weight: 600;
}

/* Timeline Summary */
.timeline-summary {
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
}

.timeline-summary-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    font-size: 0.875rem;
    color: var(--gray-400);
    font-weight: 500;
    margin: 0 0.25rem;
}

.timeline-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline-updated {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.timeline-actions {
    display: flex;
    gap: 0.5rem;
}

/* Status badge variations */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

    .status-badge.draft {
        background: var(--gray-100);
        color: var(--gray-700);
        border: 1px solid var(--gray-300);
    }

    .status-badge.active {
        background: #dbeafe;
        color: #1d4ed8;
        border: 1px solid #93c5fd;
    }

    .status-badge.completed {
        background: #dcfce7;
        color: #166534;
        border: 1px solid #a7f3d0;
    }

    .status-badge.cancelled {
        background: #fef2f2;
        color: #dc2626;
        border: 1px solid #fecaca;
    }

    .status-badge.pending {
        background: #fef3c7;
        color: #92400e;
        border: 1px solid #fde68a;
    }

/* Pulse animation for current step */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
        transform: scale(1.15);
    }
}

/* Hover effects */
.timeline-step:hover .step-circle {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.timeline-step.completed:hover .step-circle,
.timeline-step.current:hover .step-circle {
    transform: scale(1.2);
}

.timeline-step:hover .step-title {
    color: var(--primary-color);
}

/* Loading state */
.timeline-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
}

    .timeline-loading::before {
        content: '';
        width: 24px;
        height: 24px;
        border: 2px solid var(--gray-300);
        border-top: 2px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-right: 0.75rem;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .horizontal-timeline {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 0;
        gap: 1rem;
    }

    .timeline-step {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
        min-width: auto;
        padding: 0;
    }

        .timeline-step:not(:last-child)::after {
            display: none;
        }

        /* Vertical connector for mobile */
        .timeline-step:not(:last-child)::before {
            content: '';
            position: absolute;
            left: 19px;
            top: 50px;
            bottom: -1rem;
            width: 2px;
            background: var(--gray-300);
            z-index: 1;
        }

        .timeline-step.completed:not(:last-child)::before {
            background: var(--success-color);
        }

    .step-circle {
        flex-shrink: 0;
        margin: 0;
    }

    .timeline-step-content {
        flex: 1;
    }

    .timeline-summary-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .timeline-stats {
        justify-content: center;
    }

    .timeline-status {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .timeline-actions {
        justify-content: center;
        width: 100%;
    }

        .timeline-actions .btn {
            flex: 1;
        }
}

@media (max-width: 480px) {
    .timeline-summary {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .step-title {
        font-size: 13px;
    }

    .step-date {
        font-size: 11px;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .timeline-step.completed .step-circle span,
    .timeline-step.current .step-circle span {
        font-size: 14px;
    }
}

/* Animations for timeline items */
@keyframes timelineItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-step {
    animation: timelineItemFadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

    .timeline-step:nth-child(1) {
        animation-delay: 0.1s;
    }

    .timeline-step:nth-child(2) {
        animation-delay: 0.2s;
    }

    .timeline-step:nth-child(3) {
        animation-delay: 0.3s;
    }

    .timeline-step:nth-child(4) {
        animation-delay: 0.4s;
    }

    .timeline-step:nth-child(5) {
        animation-delay: 0.5s;
    }

    .timeline-step:nth-child(6) {
        animation-delay: 0.6s;
    }

    .timeline-step:nth-child(7) {
        animation-delay: 0.7s;
    }

    .timeline-step:nth-child(8) {
        animation-delay: 0.8s;
    }

/* Enhanced styling for better visual hierarchy */
.case-timeline .card-title {
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .case-timeline .card-title::before {
        content: '📊';
        font-size: 1.25rem;
    }

.case-timeline .card-subtitle {
    color: var(--gray-600);
}

.timeline-step.overdue .step-circle {
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
    animation: pulseWarning 2s infinite;
}

.timeline-step.overdue .step-title {
    color: var(--warning-color);
}

.timeline-step.overdue .step-date {
    color: var(--warning-color);
}

@keyframes pulseWarning {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.1);
    }
}

/* Stage Color Support - Add to the end of your app.css */

/* Dynamic Stage Colors for Timeline */
.timeline-step .step-circle {
    /* These will be overridden by inline styles with actual stage colors */
    transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.timeline-step.completed .step-circle {
    /* Use stage-specific color with opacity for completed stages */
    opacity: 0.95;
}

.timeline-step.current .step-circle {
    /* Enhanced styling for current stage with color */
    box-shadow: 0 0 0 4px currentColor;
    opacity: 0.2;
}

/* Step connector inherits color from stage */
.step-connector {
    height: 3px;
    flex: 1;
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    z-index: 1;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

/* Stage color indicators for cases list/grid */
.stage-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.stage-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

    .stage-color-dot:hover {
        transform: scale(1.2);
    }

/* Larger dot for grid view */
.stage-color-dot-lg {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Stage badge with color */
.stage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

    .stage-badge:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-sm);
    }

/* Stage color with light background */
.stage-badge-light {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: currentColor;
    opacity: 0.9;
}

/* Stage table cell with color accent */
.stage-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stage-color-bar {
    width: 4px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    transition: width 0.2s ease;
}

.table tbody tr:hover .stage-color-bar {
    width: 6px;
}

/* Stage color accent for case cards */
.case-card-stage-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    transition: height 0.2s ease;
}

.case-card:hover .case-card-stage-accent {
    height: 6px;
}

/* Timeline step title with stage color */
.step-title-colored {
    transition: color 0.3s ease;
}

/* Stage progress indicator */
.stage-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.stage-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.stage-progress-fill {
    height: 100%;
    transition: width 0.5s ease, background-color 0.3s ease;
    border-radius: 4px;
}

/* Stage color legend for admin pages */
.stage-color-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.stage-color-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

    .stage-color-item:hover {
        border-color: var(--primary-color);
        transform: translateY(-1px);
        box-shadow: var(--shadow-sm);
    }

.stage-color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    outline: 1px solid var(--gray-200);
}

.stage-color-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* Enhanced timeline with stage colors */
.timeline-step.completed .step-title,
.timeline-step.current .step-title {
    font-weight: 600;
}

/* Stage color pulse animation for current stage */
@keyframes stagePulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.timeline-step.current .step-circle {
    animation: stagePulse 2s infinite ease-in-out;
}

/* Stage color filter badge */
.stage-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid currentColor;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

    .stage-filter-badge:hover {
        background-color: white;
        box-shadow: var(--shadow-sm);
    }

.stage-filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Stage color in dropdown/select options */
.stage-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.stage-option-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for stage colors */
@media (max-width: 768px) {
    .stage-color-dot {
        width: 8px;
        height: 8px;
    }

    .stage-color-dot-lg {
        width: 10px;
        height: 10px;
    }

    .stage-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .stage-color-legend {
        gap: 0.5rem;
    }

    .stage-color-item {
        padding: 0.375rem 0.5rem;
    }
}

/* Utility classes for common stage color uses */
.stage-colored-border {
    border-left: 3px solid currentColor;
    padding-left: 0.75rem;
}

.stage-colored-text {
    color: currentColor;
    font-weight: 600;
}

.stage-colored-bg {
    background-color: currentColor;
    opacity: 0.1;
    border-radius: var(--border-radius);
}

/* Stage color for order badges in admin panel */
.badge.stage-colored {
    border: 1px solid currentColor;
    background-color: currentColor;
    color: white;
    font-weight: 600;
}

/* Enhanced case card with stage color accent */
.case-card.stage-accented {
    position: relative;
    overflow: hidden;
}

    .case-card.stage-accented::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: currentColor;
        transition: height 0.2s ease;
    }

    .case-card.stage-accented:hover::before {
        height: 6px;
    }

/* Stage timeline vertical connector with color */
.timeline-step.completed::before {
    background: currentColor !important;
}

/* High contrast mode support for stage colors */
@media (prefers-contrast: high) {
    .stage-color-dot,
    .stage-color-swatch {
        border: 2px solid currentColor;
        outline: 2px solid white;
    }

    .step-circle {
        border-width: 4px;
    }
}

/* Print styles for stage colors */
@media print {
    .stage-color-dot,
    .stage-color-swatch {
        border: 1px solid #000;
        background: white !important;
    }

    .step-circle {
        border: 2px solid #000 !important;
        background: white !important;
        color: #000 !important;
    }
}
.wizard-header {
    text-align: center;
}

.progress-container {
    max-width: 600px;
    margin: 0 auto;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 20px;
}

    .progress-bar::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 40px;
        right: 40px;
        height: 2px;
        background-color: #e5e7eb;
        z-index: 1;
    }

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border: 2px solid #e5e7eb;
    margin-bottom: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.completed .step-circle {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
}

.progress-step.current .step-circle {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    max-width: 80px;
}

.progress-step.completed .step-label,
.progress-step.current .step-label {
    color: #1f2937;
    font-weight: 500;
}

.wizard-content {
    min-height: 400px;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.wizard-navigation {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.step-content h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.review-section {
    background: #f9fafb;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3b82f6;
}

    .review-section h4 {
        color: #1f2937;
        font-weight: 600;
        margin-bottom: 1rem;
    }

.review-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.review-label {
    color: #6b7280;
    font-weight: 500;
}

.review-value {
    color: #1f2937;
    text-align: right;
    max-width: 60%;
}

.uploaded-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.file-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.file-name {
    font-weight: 600;
    color: #0369a1;
}

.file-size {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Responsive wizard styles */
@media (max-width: 768px) {
    .progress-bar {
        flex-direction: column;
        padding: 0;
    }

        .progress-bar::before {
            display: none;
        }

    .progress-step {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 1rem;
    }

    .step-circle {
        margin-bottom: 0;
        margin-right: 1rem;
    }

    .step-label {
        text-align: left;
        max-width: none;
    }
}