/* ===== Bliik Base Styles ===== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

html, body {
    font-family: 'Inter', 'Nunito', 'Open Sans', Arial, sans-serif;
    background: #FFFFFF;
    color: #071C2A;
    font-size: 14px;  /* Global font size reduction from 16px default */
    line-height: 1.6;
    letter-spacing: 0.01em;
    margin: 0;
    padding: 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #071C2A;
    font-weight: 700;
    margin-top: 1.6rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
}

h1 {
    font-size: 2rem;  /* Reduced from 2.3rem */
}

h2 {
    font-size: 1.5rem;  /* Reduced from 1.8rem */
}

h3 {
    font-size: 1.15rem;  /* Reduced from 1.3rem */
}

h4 {
    font-size: 1rem;  /* Added for consistency */
}

h5 {
    font-size: 0.9rem;  /* Added for consistency */
}

/* Links */
a, .btn-link {
    color: #0E51C7;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover, .btn-link:hover {
    color: #7F4CB9;
    text-decoration: underline;
}

/* ===== Buttons ===== */
.btn, .btn-primary, .btn-secondary, .btn-success, .btn-disabled {
    font-family: inherit;
    font-size: 1rem;
    border-radius: 16px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    border: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 12px 0 rgba(14, 81, 199, 0.06);
}

.btn-primary {
    background: #F6C344;
    color: #071C2A;
    border: 2px solid #F6C344;
}

.btn-primary:hover, .btn-primary:focus {
    background: #289B87;
    color: #fff;
    border-color: #289B87;
}

.btn-secondary {
    background: #fff;
    color: #0E51C7;
    border: 2px solid #0E51C7;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: #0E51C7;
    color: #fff;
}

.btn-success {
    background: #289B87;
    color: #071C2A;
    border: 2px solid #289B87;
}

.btn-success:hover, .btn-success:focus {
    background: #F6C344;
    color: #071C2A;
}

.btn-disabled, .btn:disabled {
    background: #e5e1ef;
    color: #b7adc9;
    cursor: not-allowed;
    border: 2px solid #e5e1ef;
}

/* ===== Cards & Containers ===== */
.card, .section {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px 0 rgba(14, 81, 199, 0.06);
    border: 1px solid #E6E9F0;
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    color: #0E51C7;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ===== Forms & Inputs ===== */
input, textarea, select, .form-control {
    font-family: inherit;
    font-size: 1rem;
    border-radius: 14px;
    border: 2px solid #E6E9F0;
    background: #fff;
    color: #071C2A;
    padding: 0.65rem 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus, .form-control:focus {
    border-color: #F6C344;
    box-shadow: 0 0 0 0.15rem #F6C34433;
    outline: none;
}

/* Success/Error States */
input.valid, .form-control.valid {
    border-color: #289B87;
}
input.invalid, .form-control.invalid {
    border-color: #E50000;
}
.validation-message {
    color: #E50000;
    font-size: 0.97rem;
}

/* Checkboxes */
.form-check-input[type="checkbox"] {
    accent-color: #0E51C7;
    border-radius: 6px;
    border: 1.5px solid #0E51C7;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.18rem #7F4CB966;
    border-color: #7F4CB9;
}

/* ===== Nav & Header ===== */
.navbar, .header {
    background: #fff;
    border-bottom: 1.5px solid #E6E9F0;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand, .logo {
    color: #F6C344;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.nav-link {
    color: #071C2A;
    font-weight: 500;
    margin: 0 1rem;
    border-radius: 10px;
    padding: 0.4rem 1rem;
    transition: background 0.18s, color 0.18s;
}

.nav-link.active, .nav-link:hover, .nav-link:focus {
    color: #fff;
    background: #0E51C7;
}

/* ===== Lists & Tags ===== */
.tag {
    display: inline-block;
    border-radius: 10px;
    padding: 0.3rem 0.9rem;
    background: #7F4CB9;
    color: #fff;
    font-size: 0.95rem;
    margin-right: 0.5rem;
}

/* ===== Utility ===== */
.shadow-soft {
    box-shadow: 0 2px 12px 0 rgba(var(--bs-primary-rgb), 0.08);
}

.rounded-xl {
    border-radius: 20px !important;
}

/* ===== Iconography ===== */
.icon {
    display: inline-block;
    width: 1.7rem;
    height: 1.7rem;
    stroke: var(--bs-warning);
    fill: none;
    stroke-width: 2.2;
    border-radius: 8px;
    margin-right: 0.4rem;
}

.icon-blue { stroke: var(--bs-primary); }
.icon-violet { stroke: var(--bs-secondary); }
.icon-green { stroke: var(--bs-success); }

/* ===== Miscellaneous ===== */
::-webkit-scrollbar {
    width: 9px;
    background: #E6E9F0;
}
::-webkit-scrollbar-thumb {
    background: var(--bs-warning);
    border-radius: 8px;
}

/* Error Boundary */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 8px #b3212130;
}
.blazor-error-boundary::after {
    content: "An error has occurred.";
}

@media (max-width: 600px) {
    .card, .section {
        padding: 1rem;
    }
    .navbar, .header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-link {
        margin: 0.5rem 0;
    }
}

/* ===== END Bliik Styles ===== */

/* ===== BLIIK LAYOUT STYLES ===== */

/* Main Container */
.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #FAFBFC;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    box-shadow: 0 2px 12px rgba(var(--bs-primary-rgb), 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    margin: 0 auto;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bs-light);
    margin: 0;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.brand-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--bs-light);
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.welcome-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-light);
}

.auth-links .btn {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.auth-links .btn-outline-primary {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: var(--bs-light);
    backdrop-filter: blur(10px);
}

.auth-links .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--bs-light);
    transform: translateY(-1px);
}

.auth-links .btn-primary {
    background-color: var(--bs-primary);
    border: 1.5px solid var(--bs-primary);
    color: var(--bs-light);
}

.auth-links .btn-primary:hover {
    background-color: var(--bs-dark);
    border-color: var(--bs-dark);
    transform: translateY(-1px);
}

/* Main Layout */
.main-layout {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* Sidebar */
.main-sidebar {
    width: 280px;
    background-color: var(--bs-light);
    border-right: 1px solid #E6E9F0;
    box-shadow: 2px 0 12px rgba(var(--bs-primary-rgb), 0.04);
    position: sticky;
    top: 0;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

/* Navigation */
.nav-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.nav-menu {
    flex: 1;
    padding: 1.5rem 0;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-dark, #071C2A) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.nav-item {
    margin: 0.25rem 1rem;
}

.nav-link, .nav-link:link, .nav-link:visited {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--bs-dark, #071C2A) !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
    background: transparent !important;
}

.nav-link:hover, .nav-link:focus {
    background-color: #F3F4F6 !important;
    color: var(--bs-primary, #0E51C7) !important;
    text-decoration: none;
    transform: translateX(2px);
}

.nav-link.active, .nav-link.active:hover, .nav-link.active:focus {
    background: linear-gradient(135deg, var(--bs-primary, #0E51C7) 0%, var(--bs-secondary, #7F4CB9) 100%) !important;
    color: var(--bs-light, #FFFFFF) !important;
    box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.2);
}

.nav-link.active .nav-icon, .nav-link.active:hover .nav-icon, .nav-link.active:focus .nav-icon {
    color: var(--bs-light);
}

.nav-link-primary {
    background: linear-gradient(135deg, var(--bs-success) 0%, var(--bs-primary) 100%);
    color: var(--bs-light);
    font-weight: 600;
}

.nav-link-primary:hover {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    color: var(--bs-light);
    transform: translateX(2px);
}

.nav-link-primary .nav-icon {
    color: var(--bs-light);
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--bs-dark, #f1f1f1) !important;
    transition: color 0.2s ease;
}

.nav-link:hover .nav-icon {
    color: var(--bs-primary, #0E51C7) !important;
}

.nav-section-bottom {
    margin-top: auto;
    border-top: 1px solid #E6E9F0;
    padding-top: 1rem;
    margin-bottom: 0;
}

/* Navigation Footer */
.nav-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #E6E9F0;
    background: #FAFBFC;
}

.nav-footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bliik-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bs-dark);
    font-size: 0.8rem;
    font-weight: 500;
}

.bliik-badge svg {
    color: var(--bs-success);
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
    background: #FAFBFC;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Error UI */
#blazor-error-ui {
    background: linear-gradient(135deg, var(--bs-danger) 0%, var(--bs-dark) 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(var(--bs-danger-rgb), 0.3);
}

.error-content {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-light);
    font-weight: 500;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

.error-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.error-actions .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-sidebar {
        width: 260px;
    }
    
    .content-wrapper {
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    
    .main-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #E6E9F0;
    }
    
    .nav-menu {
        padding: 1rem 0;
    }
    
    .nav-section {
        margin-bottom: 1rem;
    }
    
    .brand-text {
        display: none;
    }
    
    .header-content {
        padding: 0.75rem 1rem;
    }
    
    .content-wrapper {
        padding: 1rem 1.5rem;
    }
    
    .user-info {
        padding: 0.4rem 0.75rem;
        gap: 0.5rem;
    }
    
    .welcome-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-links .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .nav-link {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .nav-section-title {
        font-size: 0.7rem;
        padding: 0 1rem;
    }
}

/* ===== END BLIIK LAYOUT STYLES ===== */

/* ===== DASHBOARD STYLES ===== */

.dashboard-container {
    padding: 0;
}

/* Welcome Section */
.welcome-section {
    max-width: 1400px;
    margin: 0 auto 2rem auto;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    color: var(--bs-light);
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    opacity: 0.6;
}

.welcome-content {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bs-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
    line-height: 1.6;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.welcome-subtitle i {
    color: rgba(255,255,255,0.8);
    margin-right: 0.25rem;
}

.welcome-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Profile Header Content (for pages with avatars) */
.profile-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

/* Hero avatar section */
.hero-avatar-section {
    position: relative;
    flex-shrink: 0;
    margin-bottom: 1.5rem;
}

.hero-additional {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.welcome-actions .btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.welcome-actions .btn-primary {
    background-color: var(--bs-primary);
    color: var(--bs-light);
}

.welcome-actions .btn-primary:hover {
    background-color: var(--bs-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--bs-primary-rgb), 0.4);
}

.welcome-actions .btn-success {
    background: rgba(255,255,255,0.2);
    color: var(--bs-light);
    border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.welcome-actions .btn-success:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    color: var(--bs-light);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bs-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(var(--bs-primary-rgb), 0.08);
    border: 1px solid #E6E9F0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--bs-primary-rgb), 0.12);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-light);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #6B7280;
    margin: 0;
    font-weight: 500;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #F3F4F6;
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-light);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    margin: 0 0 0.25rem 0;
    color: #374151;
    font-size: 0.95rem;
}

.activity-time {
    font-size: 0.85rem;
    color: #6B7280;
}

/* Upcoming Sessions */
.upcoming-sessions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #F8F9FA;
    border-radius: 12px;
    border-left: 4px solid var(--bs-success);
}

.session-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 80px;
}

.session-time .time {
    font-weight: 700;
    font-size: 1rem;
    color: var(--bs-dark);
}

.session-time .date {
    font-size: 0.8rem;
    color: #6B7280;
    text-transform: uppercase;
}

.session-info {
    flex: 1;
}

.patient-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bs-dark);
    margin: 0 0 0.25rem 0;
}

.session-type {
    font-size: 0.9rem;
    color: #6B7280;
    margin: 0;
}

/* Cards */
.card {
    border-radius: 16px;
    overflow: hidden;
}

.card-header {
    background: #FAFBFC;
    border-bottom: 1px solid #E6E9F0;
}

.card-header h4 {
    color: var(--bs-dark);
    font-weight: 600;
    font-size: 1.25rem;
}

/* Responsive Design for Dashboard */
@media (max-width: 768px) {
    .welcome-section {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .profile-header-content {
        flex-direction: column;
        text-align: center;
    }

    .welcome-title {
        font-size: 1.75rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
        justify-content: center;
    }

    .hero-avatar-section {
        display: flex;
        justify-content: center;
    }

    .hero-additional {
        margin-top: 1.5rem;
    }

    .welcome-actions {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .activity-item {
        gap: 0.75rem;
    }
    
    .session-item {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .welcome-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .session-time {
        width: 70px;
    }
    
    .session-time .time {
        font-size: 0.9rem;
    }
}

/* ===== END DASHBOARD STYLES ===== */

/* ===== THERAPISTS PAGES STYLES ===== */

.therapists-container {
    padding: 0;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    margin-bottom: 2rem;
    color: var(--bs-light);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    opacity: 0.6;
}

.header-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bs-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
    line-height: 1.6;
}

.header-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-actions .btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.header-actions .btn-primary {
    background-color: var(--bs-light);
    color: var(--bs-primary);
    border-color: var(--bs-light);
}

.header-actions .btn-primary:hover {
    background-color: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.header-actions .btn-outline-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--bs-light);
    border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.header-actions .btn-outline-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    color: var(--bs-light);
}

/* Filters Section */
.filters-section {
    background-color: var(--bs-light);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(var(--bs-primary-rgb), 0.08);
    border: 1px solid #E6E9F0;
}

.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
    z-index: 1;
}

.search-input {
    padding-left: 3rem;
    border-radius: 12px;
    border: 2px solid #E6E9F0;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--bs-warning);
    box-shadow: 0 0 0 0.15rem rgba(246, 195, 68, 0.2);
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    background-color: var(--bs-light);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(var(--bs-primary-rgb), 0.08);
    border: 1px solid #E6E9F0;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--bs-primary-rgb), 0.12);
}

.stat-item .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-light);
    flex-shrink: 0;
}

.stat-item .stat-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin: 0 0 0.25rem 0;
    line-height: 1;
}

.stat-item .stat-content p {
    font-size: 0.9rem;
    color: #6B7280;
    margin: 0;
    font-weight: 500;
}

/* Therapists Grid */
.therapists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.therapist-card {
    background-color: var(--bs-light);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(var(--bs-primary-rgb), 0.08);
    border: 1px solid #E6E9F0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.therapist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(var(--bs-primary-rgb), 0.15);
}

.therapist-card .card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #F3F4F6;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.therapist-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-light);
    flex-shrink: 0;
}

.therapist-info {
    flex: 1;
}

.therapist-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.therapist-specialty {
    font-size: 0.9rem;
    color: #6B7280;
    margin: 0;
    font-weight: 500;
}

.status-badge .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.therapist-card .card-body {
    padding: 1.5rem;
}

.therapist-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.detail-item strong {
    color: var(--bs-dark);
    font-weight: 600;
}

.detail-item span {
    color: #6B7280;
    font-weight: 500;
    text-align: right;
}

.card-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid #F3F4F6;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Loading State */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-text {
    margin-top: 1rem;
    color: #6B7280;
    font-size: 1.1rem;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--bs-light);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(var(--bs-primary-rgb), 0.08);
    border: 1px solid #E6E9F0;
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-light);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1rem;
    color: #6B7280;
    margin-bottom: 2rem;
    max-width: 400px;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.1);
}

.pagination .page-link {
    border: none;
    padding: 0.75rem 1rem;
    color: var(--bs-primary);
    background-color: var(--bs-light);
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    color: var(--bs-light);
}

.pagination .page-link:hover {
    background-color: var(--bs-secondary);
    color: var(--bs-light);
    transform: translateY(-1px);
}

.pagination .page-item.disabled .page-link {
    background-color: #F3F4F6;
    color: #9CA3AF;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-section {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem;
    }
    
    .welcome-actions {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .activity-item {
        gap: 0.75rem;
    }
    
    .session-item {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .welcome-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .session-time {
        width: 70px;
    }
    
    .session-time .time {
        font-size: 0.9rem;
    }
}

/* ===== END DASHBOARD STYLES ===== */


/* ===== DUPLICATE THERAPISTS PAGES STYLES REMOVED ===== */
/* Lines 1437-1878 were a complete duplicate of lines 994-1435 */
/* The duplicate has been removed to avoid CSS conflicts. */


/* ===== THERAPIST FORM STYLES ===== */

.create-container, .edit-container {
    padding: 0;
}

/* Create & Edit Headers */
.create-header, .edit-header {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    color: var(--bs-light);
    position: relative;
    overflow: hidden;
}

.create-header::before, .edit-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    opacity: 0.6;
}

.create-header-content, .edit-header-content {
    position: relative;
    z-index: 1;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-light);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.header-text {
    flex: 1;
}

.create-title, .edit-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--bs-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.create-subtitle, .edit-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Details Header */
.details-container {
    padding: 0;
}

.details-header {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    color: var(--bs-light);
    position: relative;
    overflow: hidden;
}

.details-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    opacity: 0.6;
}

.details-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.therapist-header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.therapist-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-light);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.therapist-header-details {
    flex: 1;
}

.therapist-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--bs-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.therapist-id {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.75rem;
    font-family: 'Courier New', monospace;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
    backdrop-filter: blur(10px);
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--bs-light);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255,255,255,0.6);
}

/* Form Cards */
.form-card, .details-card, .status-card, .help-card, .info-card, .quick-actions-card {
    background-color: var(--bs-light);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(var(--bs-primary-rgb), 0.08);
    border: 1px solid #E6E9F0;
    transition: all 0.3s ease;
}

.form-card:hover, .details-card:hover {
    box-shadow: 0 8px 30px rgba(var(--bs-primary-rgb), 0.12);
}

.form-card .card-header, .details-card .card-header, .status-card .card-header, 
.help-card .card-header, .info-card .card-header, .quick-actions-card .card-header {
    background-color: #F8FAFC;
    border-bottom: 1px solid #E6E9F0;
    padding: 1.5rem;
    border-radius: 16px 16px 0 0;
}

.form-card .card-header h4, .details-card .card-header h4, .status-card .card-header h4,
.help-card .card-header h4, .info-card .card-header h4, .quick-actions-card .card-header h4 {
    color: var(--bs-dark);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

/* Form Styling */
.form-label {
    font-weight: 600;
    color: var(--bs-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--bs-danger);
    font-weight: bold;
}

.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid #E6E9F0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--bs-warning);
    box-shadow: 0 0 0 0.15rem rgba(246, 195, 68, 0.2);
    outline: none;
}

.form-text {
    font-size: 0.85rem;
    color: #6B7280;
    margin-top: 0.5rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E6E9F0;
}

.form-actions .btn {
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.form-actions .btn:hover {
    transform: translateY(-2px);
}

/* Details Grid */
.details-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #F3F4F6;
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: var(--bs-dark);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.detail-value {
    color: #374151;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.specialty-badge {
    background: linear-gradient(135deg, var(--bs-success) 0%, var(--bs-warning) 100%);
    color: var(--bs-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.license-number {
    font-family: 'Courier New', monospace;
    background: #F3F4F6;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.hire-date {
    font-weight: 600;
}

/* Status Information */
.status-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.current-status {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-label {
    font-weight: 600;
    color: var(--bs-dark);
    font-size: 0.95rem;
}

.status-badge-large {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.status-description p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Help Content */
.help-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.help-section {
    padding-bottom: 1rem;
    border-bottom: 1px solid #F3F4F6;
}

.help-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.help-title {
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-list li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: #374151;
    position: relative;
    padding-left: 1.5rem;
}

.help-list li::before {
    content: '•';
    color: var(--bs-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Current Information */
.current-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #F3F4F6;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item strong {
    font-weight: 600;
    color: var(--bs-dark);
    font-size: 0.9rem;
}

.info-item span {
    color: #374151;
    font-size: 0.9rem;
}

/* Action Links */
.action-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Error & Loading States */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--bs-light);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(var(--bs-danger), 0.08);
    border: 1px solid #FEE2E2;
}

.error-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--bs-danger) 0%, #DC2626 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-light);
    margin-bottom: 1.5rem;
}

.error-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-danger);
    margin-bottom: 1rem;
}

.error-container p {
    font-size: 1rem;
    color: #6B7280;
    margin-bottom: 2rem;
    max-width: 400px;
}

/* ===== END THERAPIST FORM STYLES ===== */

/* ===== PERSON MANAGEMENT WIZARD STYLES ===== */

/* Wizard Container */
.wizard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Wizard Progress */
.wizard-progress {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(14, 81, 199, 0.08);
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 12px;
    min-width: 120px;
}

.progress-step.accessible:hover {
    background: rgba(14, 81, 199, 0.05);
}

.progress-step.current {
    background: rgba(14, 81, 199, 0.1);
}

.progress-step:not(.accessible) {
    cursor: not-allowed;
    opacity: 0.5;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.progress-step:not(.completed):not(.current) .step-circle {
    background: #e5e1ef;
    color: #b7adc9;
    border: 2px solid #e5e1ef;
}

.progress-step.current .step-circle {
    background: #0E51C7;
    color: #fff;
    border: 2px solid #0E51C7;
}

.progress-step.completed .step-circle {
    background: #289B87;
    color: #fff;
    border: 2px solid #289B87;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: #071C2A;
}

.progress-connector {
    flex: 1;
    height: 2px;
    background: #e5e1ef;
    margin: 0 1rem;
    border-radius: 1px;
    transition: background 0.3s ease;
}

.progress-connector.completed {
    background: #289B87;
}

/* Step Content */
.wizard-content {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(14, 81, 199, 0.08);
    min-height: 500px;
}

.step-container {
    width: 100%;
}

.step-header {
    margin-bottom: 2rem;
    text-align: center;
}

.step-header h3 {
    color: #071C2A;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-header p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

.step-form {
    width: 100%;
}

/* Form Sections */
.form-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section h4 {
    color: #071C2A;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Summary Cards */
.summary-card {
    background: linear-gradient(135deg, rgba(14, 81, 199, 0.05) 0%, rgba(127, 76, 185, 0.05) 100%);
    border: 1px solid rgba(14, 81, 199, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.summary-card h5 {
    color: #071C2A;
    font-weight: 600;
    margin-bottom: 1rem;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(14, 81, 199, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    color: #071C2A;
    font-weight: 600;
}

/* Card Lists (Addresses, Phones, Documents) */
.addresses-list, .phones-list, .documents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.address-card, .phone-card, .document-card {
    background: #fff;
    border: 1px solid #e5e1ef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.address-card:hover, .phone-card:hover, .document-card:hover {
    box-shadow: 0 4px 20px rgba(14, 81, 199, 0.1);
    border-color: rgba(14, 81, 199, 0.2);
}

.card-header {
    background: rgba(14, 81, 199, 0.05);
    padding: 1rem;
    border-bottom: 1px solid #e5e1ef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h5 {
    margin: 0;
    color: #071C2A;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.card-body {
    padding: 1rem;
}

/* Add Forms */
.add-address-form, .add-phone-form, .add-document-form {
    background: #f8f9fa;
    border: 2px dashed rgba(14, 81, 199, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-header h5 {
    margin: 0;
    color: #071C2A;
    font-weight: 600;
}

.form-content {
    width: 100%;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

/* Add Button Container */
.add-button-container {
    text-align: center;
    padding: 2rem;
}

/* Wizard Navigation */
.wizard-navigation {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(14, 81, 199, 0.08);
    position: sticky;
    bottom: 1rem;
    z-index: 100;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.step-indicator {
    font-weight: 600;
    color: #071C2A;
    background: rgba(14, 81, 199, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Review Step Styles */
.review-content {
    width: 100%;
}

.review-section {
    background: #fff;
    border: 1px solid #e5e1ef;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, rgba(14, 81, 199, 0.05) 0%, rgba(127, 76, 185, 0.05) 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e1ef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h4 {
    margin: 0;
    color: #071C2A;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-content {
    padding: 1.5rem;
}

.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;
}

.info-item label {
    font-weight: 600;
    color: #071C2A;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    color: #495057;
    font-size: 1rem;
}

.review-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.review-item:last-child {
    margin-bottom: 0;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.item-content {
    color: #495057;
}

.document-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.document-details p {
    margin: 0;
    font-size: 0.9rem;
}

/* Review Summary */
.review-summary {
    background: linear-gradient(135deg, rgba(14, 81, 199, 0.1) 0%, rgba(127, 76, 185, 0.1) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.review-summary h4 {
    margin-bottom: 1.5rem;
    color: #071C2A;
}

.summary-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0E51C7;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Review Warnings */
.review-warnings {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-warnings h5 {
    color: #856404;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.warning-list {
    margin: 0;
    padding-left: 1.5rem;
    color: #856404;
}

.warning-list li {
    margin-bottom: 0.5rem;
}

/* Persons Grid (Index page) */
.persons-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

.persons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.person-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(14, 81, 199, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.person-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(14, 81, 199, 0.15);
    border-color: rgba(14, 81, 199, 0.1);
}

.person-card .card-header {
    background: linear-gradient(135deg, rgba(14, 81, 199, 0.05) 0%, rgba(127, 76, 185, 0.05) 100%);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(14, 81, 199, 0.1);
}

.person-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0E51C7 0%, #7F4CB9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 1rem;
}

.person-info {
    flex: 1;
}

.person-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #071C2A;
    margin: 0 0 0.25rem 0;
}

.person-gender {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.age-badge {
    margin-left: auto;
}

.person-details {
    padding: 1.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f3f4;
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-item strong {
    color: #071C2A;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 80px;
}

.detail-item span {
    color: #495057;
    font-size: 0.9rem;
    text-align: right;
    flex: 1;
}

.person-card .card-actions {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #f1f3f4;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
}

.person-card .card-actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-container, .persons-container {
        padding: 1rem;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-connector {
        display: none;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .step-indicator {
        order: -1;
    }
    
    .persons-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .filters-section {
        padding: 1.5rem;
    }

    .therapist-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .status-badge {
        align-self: flex-start;
    }

    .card-actions {
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .card-actions .btn {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 576px) {
    .wizard-progress,
    .wizard-content,
    .wizard-navigation {
        padding: 1rem;
    }
    
    .step-header h3 {
        font-size: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* ===== END PERSON MANAGEMENT WIZARD STYLES ===== */

/* ===== PERSON DETAILS STYLES ===== */

.person-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.details-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(14, 81, 199, 0.08);
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.details-card:hover {
    box-shadow: 0 8px 30px rgba(14, 81, 199, 0.12);
    border-color: rgba(14, 81, 199, 0.1);
}

.details-card .card-header {
    background: linear-gradient(135deg, rgba(14, 81, 199, 0.05) 0%, rgba(127, 76, 185, 0.05) 100%);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(14, 81, 199, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.details-card .card-header h3 {
    margin: 0;
    color: #071C2A;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.details-card .card-body {
    padding: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item label {
    font-weight: 600;
    color: #071C2A;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.info-item span {
    color: #495057;
    font-size: 1rem;
    font-weight: 500;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.item-card:hover {
    background: #fff;
    border-color: rgba(14, 81, 199, 0.2);
    box-shadow: 0 2px 12px rgba(14, 81, 199, 0.08);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.item-header strong {
    color: #071C2A;
    font-weight: 600;
    font-size: 1rem;
}

.item-content {
    color: #495057;
}

.item-content p {
    margin: 0;
    line-height: 1.5;
}

.address-text {
    font-size: 0.95rem;
}

.phone-number {
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.document-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.document-details p {
    font-size: 0.9rem;
}

.document-details strong {
    color: #071C2A;
    font-weight: 600;
}

.empty-section {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.empty-section p {
    margin: 0;
    font-style: italic;
}

/* ===== END PERSON DETAILS STYLES ===== */

/* ===== FILE UPLOAD STYLES ===== */

/* File Upload Container */
.file-upload-container {
    margin-top: 0.5rem;
}

/* File Upload Progress */
.file-upload-progress {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    color: #6c757d;
}

/* File Preview */
.file-preview {
    margin-top: 0.5rem;
}

.file-preview .border {
    background-color: #f8f9fa;
    transition: background-color 0.15s ease-in-out;
}

.file-preview .border:hover {
    background-color: #e9ecef;
}

/* Document Card Files */
.document-card .document-info .mt-2 {
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

.document-card .document-info svg {
    flex-shrink: 0;
}

/* File Input Styling */
.form-control[type="file"] {
    padding: 0.5rem 0.75rem;
    border: 2px dashed #dee2e6;
    background-color: #f8f9fa;
    transition: all 0.15s ease-in-out;
}

.form-control[type="file"]:hover {
    border-color: #3C65F5;
    background-color: rgba(60, 101, 245, 0.05);
}

.form-control[type="file"]:focus {
    border-color: #3C65F5;
    box-shadow: 0 0 0 0.2rem rgba(60, 101, 245, 0.25);
    background-color: rgba(60, 101, 245, 0.05);
}

/* Small Text for File Upload Instructions */
.file-upload-container .form-text {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* File Attachment Card Styling */
.file-attachment-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
    transition: all 0.15s ease-in-out;
}

.file-attachment-card:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.file-attachment-card .file-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.file-attachment-card .file-actions .btn {
    white-space: nowrap;
}

.file-attachment-card .fw-semibold {
    color: #212529;
    font-size: 0.9rem;
}

.file-attachment-card .text-muted {
    font-size: 0.8rem;
}

/* File Icon Styling */
.file-attachment-card svg {
    flex-shrink: 0;
}

/* Responsive File Actions */
@media (max-width: 576px) {
    .file-attachment-card .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    
    .file-attachment-card .file-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .file-attachment-card .file-actions .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ===== END FILE UPLOAD STYLES ===== */

/* ===== AVAILABILITY PAGE STYLES ===== */

/* Welcome Section */
.welcome-section {
    max-width: 1400px;
    margin: 0 auto 2rem auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    opacity: 0.6;
}

.welcome-content {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
    line-height: 1.6;
}

.welcome-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.welcome-actions .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.welcome-actions .btn-primary {
    background-color: white;
    color: #667eea;
    border: 2px solid white;
}

.welcome-actions .btn-primary:hover {
    background-color: #f3f4f6;
    border-color: #f3f4f6;
}

.welcome-actions .btn-success {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.welcome-actions .btn-success:hover {
    background-color: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.4);
}

/* Availability Container */
.availability-container {
    margin: 0 auto;
    padding: 2rem;
}

.availability-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Quick Setup Bar */
.quick-setup-bar {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.quick-setup-bar h5 {
    margin-bottom: 1rem;
    color: #4a5568;
    font-weight: 600;
}

.preset-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.preset-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.preset-buttons .btn.active {
    background-color: #667eea !important;
    border-color: #667eea !important;
    color: white !important;
}

.preset-buttons .btn-outline-primary {
    color: #667eea;
    border-color: #667eea;
}

.preset-buttons .btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

/* Session Configuration Panel */
.session-config-panel {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Weekly Schedule Grid */
.weekly-schedule-grid {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.weekly-schedule-grid h5 {
    margin-bottom: 1.5rem;
    color: #4a5568;
    font-weight: 600;
}

/* Bootstrap Form Switch Overrides for Availability */
.weekly-schedule-grid .form-switch {
    padding-left: 0 !important;
}

.weekly-schedule-grid .form-switch .form-check-input {
    margin-left: 0 !important;
    margin-top: 0 !important;
    float: none !important;
    position: relative !important;
}

.day-schedule-row {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    align-items: center;
}

.day-schedule-row.enabled {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
}

.day-schedule-row.disabled {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.day-header {
    width: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.day-toggle {
    display: flex;
    align-items: center;
    width: 100%;
}

.day-toggle .form-check {
    margin: 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.day-toggle .form-switch {
    padding-left: 0;
    display: flex;
    align-items: center;
    min-height: 1.5rem;
}

.day-toggle .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    margin: 0;
    margin-right: 0.75rem;
    background-color: #e5e7eb;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.day-toggle .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.day-toggle .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

.day-name {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    user-select: none;
    cursor: pointer;
    line-height: 1.25rem;
    display: inline-block;
}

.time-slots-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2rem;
}

.time-ranges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
    align-items: center;
}

.time-range-item {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.time-display {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.add-time-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.add-time-btn svg {
    width: 16px;
    height: 16px;
}

.time-range-item .btn-outline-danger {
    padding: 0.125rem 0.25rem;
    border: none;
    color: #ef4444;
}

.time-range-item .btn-outline-danger:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Availability Grid (existing grid styles) */
.availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.day-column {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
}

.day-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #495057;
}

.availability-slot {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.slot-time {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.slot-actions {
    display: flex;
    gap: 0.5rem;
}

.no-slots {
    text-align: center;
    color: #6c757d;
    font-size: 0.875rem;
    padding: 1rem 0;
}

.unavailability-list {
    max-height: 400px;
    overflow-y: auto;
}

.unavailability-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.unavailability-item:last-child {
    border-bottom: none;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.form-actions .btn {
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.form-actions .btn-primary {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

.form-actions .btn-primary:hover {
    background-color: #5a67d8;
    border-color: #5a67d8;
}

.form-actions .btn-secondary {
    background-color: #6b7280;
    border-color: #6b7280;
    color: white;
}

.form-actions .btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
}

.form-actions .btn-outline-primary {
    color: #667eea;
    border-color: #667eea;
}

.form-actions .btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

/* Responsive Design for Availability */
@media (max-width: 768px) {
    .welcome-section {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem;
    }
    
    .welcome-actions {
        justify-content: center;
    }
    
    .availability-container {
        padding: 1rem;
    }
    
    .preset-buttons {
        flex-direction: column;
    }
    
    .preset-buttons .btn {
        width: 100%;
    }
    
    .day-schedule-row {
        flex-direction: column;
    }
    
    .day-header {
        width: 100%;
    }
    
    .time-slots-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .welcome-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== END AVAILABILITY PAGE STYLES ===== */

/* ===== DOCUMENTS PAGE STYLES ===== */
.documents-section {
    margin-top: 2rem;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.document-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.document-card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.document-card .card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.document-card .card-body {
    padding: 1.25rem;
}

.document-display {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.document-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #4a5568;
}

.document-info p strong {
    font-weight: 600;
    color: #2d3748;
}

/* File attachment card */
.file-attachment-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: background-color 0.2s;
}

.file-attachment-card:hover {
    background: #f1f5f9;
}

.file-actions {
    display: flex;
    gap: 0.25rem;
}

/* Add document form */
.add-document-form {
    background: white;
    border: 2px dashed #cbd5e0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-header h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

.form-content {
    padding: 0.5rem 0;
}

.file-upload-container {
    background: #f8fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.file-upload-container:hover {
    border-color: #667eea;
    background: #f7f9ff;
}

.file-upload-progress {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
}

.uploaded-files-list {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
}

.uploaded-files-list h6 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
}

/* Add button container */
.add-button-container {
    margin-top: 1.5rem;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 0.75rem;
    border: 2px dashed #cbd5e0;
}

.add-button-container:hover {
    background: linear-gradient(135deg, #f7f9ff 0%, #e7e5ff 100%);
    border-color: #667eea;
}

/* Summary card */
.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.summary-card h5 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.summary-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

.summary-item strong {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.summary-item span {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Navigation links */
.navigation-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Validation feedback */
.validation-feedback {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

/* Image preview modal enhancements */
.image-preview-container {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-details {
    flex: 1;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* ===== END DOCUMENTS PAGE STYLES ===== */

