
.form-layout {

    border-radius: 15px;
    width: 500px;
}


.message-text{

    color: white;

}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.modal-body {
    padding: 1.5rem;
}

.service-multiselect-toggle {
    cursor: pointer;
    background-color: #fff;
}

.service-multiselect-toggle::after {
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
    margin-left: 0.75rem;
}

.service-multiselect-menu {
    max-height: 220px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.service-multiselect-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    white-space: normal;
}

.service-multiselect-item:active,
.service-multiselect-item:focus,
.service-multiselect-item:hover {
    background-color: #f3f4f6;
    color: inherit;
}

.service-multiselect-item .form-check-input {
    margin-top: 0;
    flex-shrink: 0;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-control, .form-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.btn-modal-primary {
    background: #1d4ed8;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-modal-primary:hover {
    background: #1e40af;
    color: white;
}

.btn-modal-secondary {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-modal-secondary:hover {
    background: #e5e7eb;
    color: #374151;
}

.required {
    color: #dc2626;
}

/* Dashboard Layout Styles */
:root {
    --primary-color: #4f46e5;
    --secondary-color: #1d4ed8;
    --button-color: #1d4ed8;
    --button-hover: #1e40af;
    --button-dark: #1e3a8a;
    --success-color: #10b981;
    --banner-color: #667eea;
    --sidebar-width: 280px;
}

html {
    font-size: 112.5%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
    font-size: 1rem;
    line-height: 1.6;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--banner-color);
    border-right: none;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.sidebar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.sidebar-brand .brand-text {
    display: flex;
    flex-direction: column;
}

.sidebar-brand .brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: white;
}

.sidebar-brand .brand-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.2;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar .nav-item {
    margin-bottom: 0.25rem;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.2s ease;
    border-radius: 0;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.22);
    border-right: 3px solid white;
}

.sidebar .nav-link i {
    width: 1.5rem;
    font-size: 1.25rem;
    text-align: center;
}

.sidebar .nav-link-toggle {
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.sidebar .nav-link-toggle .nav-submenu-chevron {
    margin-left: auto;
    width: auto;
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.sidebar .nav-item-has-submenu.open .nav-submenu-chevron {
    transform: rotate(180deg);
}

.sidebar .nav-submenu {
    display: none;
    padding: 0.25rem 0 0.5rem;
}

.sidebar .nav-item-has-submenu.open .nav-submenu {
    display: block;
}

.sidebar .nav-sublink {
    padding-left: 3.75rem;
    font-size: 1rem;
}

.sidebar .nav-sublink.active {
    border-right: 3px solid white;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Main Content Styles */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
}

.content-header {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-body {
    padding: 2rem;
}

/* Metric Cards Styles */
.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

.metric-card.blue {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.metric-card.purple {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.metric-card.green {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.metric-value {
    font-size: 3.0rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.metric-label {
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.metric-description {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.metric-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.metric-icon.blue {
    background: #3b82f6;
    color: white;
}

.metric-icon.purple {
    background: #8b5cf6;
    color: white;
}

.metric-icon.green {
    background: #10b981;
    color: white;
}

.metric-value.blue {
    color: #1e40af;
}

.metric-value.purple {
    color: #6d28d9;
}

.metric-value.green {
    color: #047857;
}

/* Button Styles */
.btn-primary {
    background-color: var(--button-color);
    border-color: var(--button-color);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--button-hover);
    border-color: var(--button-hover);
}

.btn-outline-primary {
    color: var(--button-color);
    border-color: var(--button-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--button-color);
    border-color: var(--button-color);
    color: white;
}

.btn-new-appointment {
    background: var(--button-color);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-new-appointment:hover {
    background: var(--button-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.4);
    color: white;
}

.btn-user-dropdown {
    background: var(--button-hover);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-transform: uppercase;
}

.btn-user-dropdown:hover {
    background: var(--button-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
    color: white;
}

.btn-user-dropdown:focus {
    background: var(--button-dark);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

.user-dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 0.5rem 0;
    min-width: 200px;
}

.user-dropdown-menu .dropdown-item {
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.15s ease;
}

.user-dropdown-menu .dropdown-item:hover {
    background-color: #f3f4f6;
    color: #5b21b6;
}

.user-dropdown-menu .dropdown-item i {
    width: 16px;
    text-align: center;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    margin-right: 1rem;
}

/* Section Styles */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
}

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

.dashboard-header .section-subtitle {
    margin-bottom: 0;
}

.dashboard-section-toggles {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.dashboard-section-toggles .form-check {
    margin-bottom: 0;
    min-height: 1.5rem;
    padding-left: 2.75em;
}

.dashboard-section-toggles .form-check-input {
    width: 2.5em;
    height: 1.25em;
    margin-top: 0.15em;
    cursor: pointer;
}

.dashboard-section-toggles .form-check-input:focus {
    border-color: #6ee7b7;
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

.dashboard-section-toggles .form-check-input:checked {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.dashboard-section-toggles .form-check-input:checked:focus {
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

.dashboard-section-toggles .form-check-label {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.invite-email-toggle {
    min-height: 1.1rem;
    padding-left: 2.15em;
    margin-bottom: 0;
}

.invite-email-toggle .form-check-input {
    width: 1.75em;
    height: 0.9em;
    margin-left: -2.15em;
    margin-top: 0.15em;
    cursor: pointer;
}

.invite-email-toggle .form-check-input:focus {
    border-color: #6ee7b7;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

.invite-email-toggle .form-check-input:checked {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.invite-email-toggle .form-check-input:checked:focus {
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

.invite-email-toggle .form-check-label {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
}

.dashboard-metrics-empty {
    color: #64748b;
    font-size: 1rem;
    text-align: center;
    margin: 2rem 0 0;
}

/* Registration Page Styles */
/* Registration Layout */
.register-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-container {
    max-width: 500px;
    width: 100%;
    padding: 2rem;
}

/* Registration Welcome Header */
.register-welcome-header {
    text-align: center;
    margin-bottom: 3rem;
}

.register-welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.register-welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
}

.register-welcome-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 0;
    font-weight: 400;
}

/* Registration Card */
.register-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

/* Registration Button */
.register-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.register-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Registration Login Link */
.register-login-link {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 1.5rem;
}

.register-login-link p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.register-login-link a {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.register-login-link a:hover {
    color: #059669;
    text-decoration: underline;
}

/* Registration Responsive Styles */
@media (max-width: 768px) {
    .register-container {
        padding: 1rem;
    }
    
    .register-welcome-title {
        font-size: 2rem;
    }
    
    .register-card {
        padding: 2rem 1.5rem;
    }
}

/* Login/Register Page Styles */
.login-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    max-width: 500px;
    width: 100%;
    padding: 2rem;
}

.welcome-header {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
}

.welcome-subtitle-specialty {
    font-size: 1.5rem;
    color: #7c3aed;
    margin-bottom: 1rem;
    font-weight: 600;
    font-style: italic;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 0;
    font-weight: 400;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

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

.form-field {
    width: 100%;
}

.form-field input {
    width: 100%;
}

.login-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--button-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.login-btn:hover {
    background: var(--button-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.4);
}

.register-link {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 1.5rem;
}

.register-link p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.register-link a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.register-link a:hover {
    color: #3730a3;
    text-decoration: underline;
}

/* Login/Register Responsive Styles */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
}

/* ========================================
   PATIENTS LIST STYLES
   ======================================== */

/* Patient Avatar Styles */
.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
}

/* Patient Card Styles - Dashboard Style */
.patient-info {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.patient-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.patient-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.patient-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Search Functionality Styles */
.search-container {
    position: relative;
}

.patient-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    margin-top: 0.25rem;
}

.patient-search-dropdown {
    max-height: 220px;
    overflow-y: auto;
    background-color: #fff;
}

.search-input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 2;
}

.clear-search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.875rem;
    padding: 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.clear-search-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.search-results-info {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Search Highlight Effect */
.patient-card.search-highlight,
.appointment-row.search-highlight {
    animation: searchHighlight 0.3s ease-in-out;
}

@keyframes searchHighlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Search Input Responsive */
@media (max-width: 768px) {
    .search-input {
        padding: 0.75rem 1rem 0.75rem 2.25rem;
        font-size: 0.8rem;
    }
    
    .search-icon {
        left: 0.5rem;
        font-size: 0.8rem;
    }
    
    .search-results-info {
        font-size: 0.8rem;
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* Patient Card Metric Value Override */
.metric-card .metric-value {
    font-size: 3.0rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.metric-card .metric-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #374151;
    line-height: 1.3;
}

.metric-card .metric-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0;
}

/* Patient Info Text Styles */
.patient-info small {
    font-size: 0.875rem;
    line-height: 1.4;
}

.patient-info .text-muted {
    color: #6b7280 !important;
}

/* Patients Table Styles (Legacy) */
.patients-table th {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.patients-table td {
    vertical-align: middle;
}

/* Patients Action Buttons (Legacy) */
.patients-actions .btn {
    margin-right: 2px;
}

.patients-actions .btn:last-child {
    margin-right: 0;
}

/* Patients Card Styles (Legacy) */
.patients-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.patients-card .card-header {
    border-radius: 12px 12px 0 0;
}

/* ========================================
   PATIENT FORM STYLES
   ======================================== */

/* Patient Form Card */
.patient-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #10b981;
    margin-bottom: 2rem;
    overflow: visible;
}

.patient-form-card .card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem 2rem;
}

.patient-form-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0;
    display: flex;
    align-items: center;
}

.patient-form-card .card-body {
    padding: 2rem;
    overflow: visible;
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
}

.form-section-title i {
    color: #10b981;
    width: 20px;
    text-align: center;
}

.form-section-collapsible {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.form-section:has(+ .form-section-collapsible) {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.form-section-collapsible .form-section-title {
    margin-bottom: 0;
}

.form-section-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 0 0 0.4rem;
    text-align: left;
    cursor: pointer;
}

.form-section-toggle:hover {
    color: #111827;
}

.form-section-toggle:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 4px;
    border-radius: 4px;
}

.form-section-toggle .form-section-toggle-icon {
    margin-left: 0.5rem;
    color: #6b7280;
    width: auto;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.form-section-toggle[aria-expanded="true"] .form-section-toggle-icon {
    transform: rotate(180deg);
}

.form-section-collapsible .collapse {
    padding-top: 0.25rem;
}

/* Registration Form Sections */
.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #7c3aed;
    width: 20px;
    text-align: center;
}

/* Form Field Styling */
.patient-form .form-group {
    margin-bottom: 1.5rem;
}

.patient-form .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.patient-form .form-control,
.patient-form .form-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-color: #ffffff;
}

.patient-form {
    --select-placeholder-color: var(--bs-secondary-color, #6c757d);
}

.patient-form select.is-placeholder {
    color: var(--select-placeholder-color) !important;
}

.patient-form select option {
    color: #111827;
}

.patient-form select option[value=""] {
    color: var(--select-placeholder-color);
}

.patient-form .form-control:focus,
.patient-form .form-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    outline: none;
}

.patient-form .form-control:disabled,
.patient-form .form-select:disabled {
    background-color: #f9fafb;
    color: #6b7280;
}

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

.patient-form textarea#id_motivo_consulta {
    min-height: 72px;
}

/* Required Field Indicator */
.patient-form .required {
    color: #dc2626;
    font-weight: 600;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 2rem;
}

.btn-save-patient {
    background: #10b981;
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-save-patient:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-save-patient:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.4);
}

.btn-export-history {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-export-history:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    text-decoration: none;
}

.btn-export-history:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.4);
}

.btn-cancel-patient {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-cancel-patient:hover {
    background: #e5e7eb;
    color: #374151;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-cancel-patient:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Form Validation Styles */
.patient-form .is-invalid {
    border-color: #dc2626;
}

.patient-form .invalid-feedback {
    display: block;
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.patient-form .is-valid {
    border-color: #10b981;
}

.patient-form .valid-feedback {
    display: block;
    color: #10b981;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Form Help Text */
.patient-form .form-text {
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.patient-form .vital-sign-input-group .input-group-text {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 3.25rem;
    justify-content: center;
}

.patient-form .vital-sign-input-group .form-control {
    border-right: 0;
}

.patient-form .vital-sign-input-group .form-control:focus {
    border-right: 0;
}

.patient-form .vital-sign-input-group .form-control:focus + .input-group-text {
    border-color: #7c3aed;
}

/* Responsive Form Layout */
@media (max-width: 768px) {
    .patient-form-card .card-body {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-save-patient,
    .btn-export-history,
    .btn-cancel-patient,
    .btn-danger-patient {
        width: 100%;
        justify-content: center;
    }
    
    .form-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .patient-form-card .card-body {
        padding: 1rem;
    }
    
    .form-section-title {
        font-size: 0.875rem;
    }
}

/* Patient Info Field Styles (for view-patient page) */
.patient-info-field {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    color: #374151;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    font-weight: 500;
    word-break: break-word;
}

.patient-info-field:empty::before {
    content: "No especificado";
    color: #9ca3af;
    font-style: italic;
}

/* Attention history table (view-patient) */
.patient-form .attention-history-table {
    font-size: 1rem;
    color: #374151;
}

.patient-form .attention-history-table thead th {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    border-bottom: none;
    padding: 0 0.75rem 0.75rem 0;
    vertical-align: bottom;
}

.patient-form .attention-history-table tbody td {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    border-bottom: none;
    padding: 0.375rem 0.75rem 0.375rem 0;
    vertical-align: middle;
}

.patient-form .attention-history-table tbody tr:first-child td {
    padding-top: 0;
}

.patient-form .attention-history-table .text-muted {
    color: #9ca3af;
    font-weight: 400;
    font-style: italic;
}

.patient-form .attention-history-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.375rem;
}

.patient-form .attention-history-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1e40af;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    text-decoration: none;
    transition: all 0.2s ease;
}

.patient-form .attention-history-action:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.patient-form .attention-history-action--edit {
    color: #374151;
    background: #f3f4f6;
    border-color: #d1d5db;
}

.patient-form .attention-history-action--edit:hover {
    background: #6b7280;
    color: #fff;
    border-color: #6b7280;
}

.patient-form .attention-history-action--export {
    color: #9a3412;
    background: #ffedd5;
    border-color: #fed7aa;
}

.patient-form .attention-history-action--export:hover {
    background: #ea580c;
    color: #fff;
    border-color: #ea580c;
}

.patient-form-readonly .form-control:disabled,
.patient-form-readonly .form-select:disabled,
.patient-form-readonly textarea.form-control:disabled {
    background-color: #f8fafc;
    color: #374151;
    opacity: 1;
    cursor: default;
}

.patient-form-readonly .vital-sign-input-group .input-group-text {
    opacity: 1;
}

/* Danger Button for Delete Actions */
.btn-danger-patient {
    background: #dc2626;
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-danger-patient:hover {
    background: #b91c1c;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.btn-danger-patient:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.4);
}

/* Form Loading State */
.patient-form.loading .form-control,
.patient-form.loading .form-select {
    opacity: 0.6;
    pointer-events: none;
}

.patient-form.loading .btn-save-patient {
    background: #6b7280;
    cursor: not-allowed;
}

.patient-form.loading .btn-save-patient:hover {
    transform: none;
    box-shadow: none;
}

/* Form Success State */
.patient-form.success .form-control,
.patient-form.success .form-select {
    border-color: #10b981;
}

/* Form Error State */
.patient-form.error .form-control,
.patient-form.error .form-select {
    border-color: #dc2626;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .content-header,
    .content-body {
        padding: 1rem;
    }
    
    .metric-card {
        margin-bottom: 1rem;
    }
}

/* ========================================
   INDEX PAGE STYLES
   ======================================== */

/* Index Page Body Styles */
.index-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-container {
    max-width: 800px;
    width: 100%;
    padding: 2rem;
}

.welcome-header {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 0;
    font-weight: 400;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.action-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

.action-card.primary {
    border: 1px solid #e2e8f0;
}

.action-card.secondary {
    border: 1px solid #e2e8f0;
}

.action-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.action-card-icon.primary {
    background: #4f46e5;
}

.action-card-icon.secondary {
    background: #10b981;
}

.action-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.action-card-description {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.action-card-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-card-btn.primary {
    background: #4f46e5;
    color: white;
}

.action-card-btn.primary:hover {
    background: #3730a3;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.action-card-btn.secondary {
    background: #10b981;
    color: white;
}

.action-card-btn.secondary:hover {
    background: #059669;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Index Page Responsive Styles */
@media (max-width: 768px) {
    .welcome-container {
        padding: 1rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .action-card {
        padding: 2rem 1.5rem;
    }
}

/* Landing Page (Marketing) */
.landing-body {
    --primary-color: #1d4ed8;
    --secondary-color: #1e40af;
    --success-color: #10b981;
    --dark-color: #1e293b;
    --light-bg: #f8fafc;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
}

.landing-body .navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.landing-body .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-body .navbar-brand i {
    font-size: 1.8rem;
}

.landing-body .btn-login {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.landing-body .btn-login:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.3);
}

.landing-body .hero-section {
    background: #667eea;
    padding: 150px 0 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.landing-body .hero-image-wrapper {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}

.landing-body .hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -25px;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05));
    filter: blur(40px);
    z-index: 0;
    opacity: 0.6;
}

.landing-body .hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
    border: 4px solid rgba(255, 255, 255, 0.35);
}

.landing-body .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.landing-body .hero-content {
    position: relative;
    z-index: 1;
}

.landing-body .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.landing-body .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
}

.landing-body .hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.landing-body .hero-cta-note {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fef3c7;
}

.landing-body .btn-hero {
    background: white;
    color: var(--primary-color);
    padding: 1.2rem 3rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.landing-body .btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: var(--primary-color);
}

.landing-body .features-section {
    padding: 100px 0;
    background: white;
}

.landing-body .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
    display: block;
    gap: 0;
}

.landing-body .section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 4rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.landing-body .row.g-4 > .col-lg-4,
.landing-body .row.g-4 > .col-md-6 {
    margin-bottom: 0;
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
}

.landing-body .feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #f1f5f9;
    height: 100%;
}

.landing-body .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.landing-body .feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: white;
    font-size: 2rem;
}

.landing-body .feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.landing-body .feature-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
}

.landing-body .audience-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.landing-body .audience-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.landing-body .audience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.landing-body .audience-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-body .audience-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.landing-body .audience-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
}

.landing-body .benefits-section {
    padding: 100px 0;
    background: white;
}

.landing-body .benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.landing-body .benefit-item:hover {
    background: #f1f5f9;
    transform: translateX(10px);
}

.landing-body .benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--success-color), #059669);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.landing-body .benefit-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.landing-body .benefit-content p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    line-height: 1.7;
}

.landing-body .cta-section {
    padding: 100px 0;
    background: #667eea;
    color: white;
    text-align: center;
}

.landing-body .cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.landing-body .cta-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.landing-body .footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1.5rem 0;
}

.landing-body .footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-body .footer-text {
    color: #94a3b8;
    line-height: 1.7;
}

.landing-body .footer-link {
    color: #94a3b8;
    text-decoration: none;
}

.landing-body .footer-link:hover {
    text-decoration: underline;
}

.landing-body .footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #94a3b8;
}

.landing-body .fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: landingFadeInUp 0.6s ease forwards;
}

@keyframes landingFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#medicus-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.medicus-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.medicus-chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 28px rgba(29, 78, 216, 0.45);
}

.medicus-chat-panel {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.medicus-chat-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.medicus-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.medicus-chat-header strong {
    display: block;
    font-size: 1rem;
}

.medicus-chat-header small {
    opacity: 0.85;
    font-size: 0.8rem;
}

.medicus-chat-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
}

.medicus-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--light-bg, #f8fafc);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.medicus-chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    line-height: 1.45;
    font-size: 0.92rem;
    word-wrap: break-word;
}

.medicus-chat-message.user {
    align-self: flex-end;
    background: var(--primary-color);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.medicus-chat-message.assistant {
    align-self: flex-start;
    background: #fff;
    color: var(--dark-color, #1e293b);
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.medicus-chat-message.welcome a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.medicus-chat-message.welcome a:hover {
    text-decoration: underline;
}

.medicus-chat-loading {
    display: flex;
    gap: 4px;
    padding: 0 16px 8px;
    background: var(--light-bg, #f8fafc);
}

.medicus-chat-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    animation: medicus-chat-bounce 1.2s infinite ease-in-out;
}

.medicus-chat-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.medicus-chat-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes medicus-chat-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
    40% { transform: translateY(-6px); opacity: 1; }
}

.medicus-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.medicus-chat-form input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.92rem;
    outline: none;
}

.medicus-chat-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.medicus-chat-form button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.medicus-chat-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Voice form fill (dictado) */
.voice-form-fill-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-right: 0.5rem;
    position: relative;
    z-index: 6;
}

.voice-form-fill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    color: #334155;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 7;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.voice-form-fill-btn:hover:not(:disabled) {
    border-color: var(--primary-color, #1d4ed8);
    color: var(--primary-color, #1d4ed8);
}

.voice-form-fill-btn.is-listening {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    animation: voice-fill-pulse 1.2s ease-in-out infinite;
}

.voice-form-fill-btn.is-processing {
    opacity: 0.75;
    cursor: wait;
}

.voice-form-fill-btn.is-unsupported,
.voice-form-fill-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.voice-fill-highlight {
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.25) !important;
    transition: box-shadow 0.3s ease;
}

.modal-header .voice-form-fill-wrap,
.card-header .voice-form-fill-wrap {
    margin-left: auto;
}

.card-header.voice-form-card-header,
.modal-header.voice-form-modal-header {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.card-header.voice-form-card-header .card-title,
.modal-header.voice-form-modal-header .modal-title {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

/* Bootstrap .btn-close uses margin-left: auto; keep mic + close grouped on the right */
.modal-header.voice-form-modal-header .btn-close {
    margin-left: 0;
}

/* Keep Dictar visible while scrolling long forms */
.patient-form-card > .card-header.voice-form-card-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 40;
    background: #f8fafc;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    overflow: visible;
}

.modal-dialog-scrollable .modal-header.voice-form-modal-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
}

.card-header .voice-form-fill-wrap,
.modal-header .voice-form-fill-wrap {
    position: relative;
    flex-shrink: 0;
}

.voice-fill-overlay {
    position: fixed;
    left: 1rem;
    right: 6.5rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 32rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.22);
    border: 1px solid #e2e8f0;
    pointer-events: auto;
}

.voice-fill-overlay[hidden] {
    display: none !important;
}

.voice-fill-overlay-text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #334155;
    max-height: 6.5rem;
    overflow-y: auto;
    white-space: pre-line;
    word-break: break-word;
    user-select: none;
    -webkit-user-select: none;
}

.voice-fill-overlay.is-error .voice-fill-overlay-text {
    color: #b91c1c;
}

.voice-fill-overlay.is-success .voice-fill-overlay-text {
    color: #15803d;
}

.voice-fill-overlay.is-listening .voice-fill-overlay-text,
.voice-fill-overlay.is-processing .voice-fill-overlay-text {
    color: #1d4ed8;
}

.voice-fill-overlay-stop {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    width: 100%;
    border: none;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.voice-fill-overlay.is-listening .voice-fill-overlay-stop {
    display: inline-flex;
}

.voice-fill-overlay-stop:active {
    background: #b91c1c;
}

@keyframes voice-fill-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

@media (max-width: 768px) {
    .voice-form-fill-btn {
        min-width: 2.75rem;
        height: 2.75rem;
        padding: 0 0.75rem;
        font-size: 1.05rem;
    }

    .patient-form-card > .card-header.voice-form-card-header {
        z-index: 50;
        padding: 0.85rem 1rem;
    }

    .voice-fill-overlay {
        left: 0.75rem;
        right: 0.75rem;
        bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 768px) {
    .landing-body .hero-title {
        font-size: 2.5rem;
    }

    .landing-body .hero-subtitle {
        font-size: 1.2rem;
    }

    .landing-body .hero-description {
        font-size: 1rem;
    }

    .landing-body .section-title {
        font-size: 2rem;
    }

    .landing-body .cta-title {
        font-size: 2rem;
    }

    .landing-body .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    .landing-body .benefit-icon {
        margin: 0 auto 1rem auto;
    }

    .landing-body .hero-image-wrapper::after {
        inset: -15px;
    }
}

@media (max-width: 480px) {
    #medicus-chat-widget {
        right: 16px;
        bottom: 16px;
        left: 16px;
    }

    .medicus-chat-panel {
        width: 100%;
        right: 0;
    }
}

/* ========================================
   APPOINTMENTS MODERN CARDS STYLES
   ======================================== */

/* Appointments Cards Container */
.appointments-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Modern Appointment Card */
.appointment-card-modern {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.appointment-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

/* Card Header */
.appointment-card-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1rem 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.appointment-patient-info {
    grid-column: 1;
}

.appointment-phone {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.appointment-phone i {
    color: #4f46e5;
    width: 16px;
    text-align: center;
}

.appointment-phone-empty {
    /* Empty placeholder to maintain grid structure */
}

.appointment-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.appointment-card-header .appointment-status {
    grid-column: 3;
    justify-content: flex-end;
    margin-left: auto;
}

.appointment-patient-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.patient-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.patient-details {
    flex: 1;
}

.patient-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.appointment-type {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

.appointment-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-upcoming {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-today {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-past {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* New Status Badge Styles */
.status-scheduled {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.status-completed {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-rescheduled {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.status-unknown {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* Card Body */
.appointment-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.appointment-datetime {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.appointment-datetime-value {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.appointment-datetime-value .value-item {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.appointment-datetime-value .value-icon {
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
}

.appointment-datetime-value .value-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.appointment-datetime-value .value-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.appointment-datetime-value .value-amount {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.datetime-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.datetime-icon {
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
}

.datetime-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.datetime-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.datetime-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.datetime-day {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: capitalize;
}

/* Value Section */
.appointment-value {
    background: #f0f9ff;
    border-radius: 12px;
    padding: 0.75rem;
    border: 1px solid #e0f2fe;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.value-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #0ea5e9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.value-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.value-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.value-amount {
    font-size: 1.125rem;
    color: #0f172a;
    font-weight: 700;
}

/* Contact Section */
.appointment-contact {
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
}

.contact-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.contact-item i {
    width: 16px;
    text-align: center;
    color: #4f46e5;
}

/* Notes Section */
.appointment-notes {
    background: #fefce8;
    border-radius: 12px;
    padding: 0.75rem;
    border: 1px solid #fde68a;
}

.notes-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 0.375rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notes-content {
    font-size: 0.875rem;
    color: #a16207;
    margin: 0;
    line-height: 1.5;
}

/* Card Footer */
.appointment-card-footer {
    padding: 0.75rem 1rem 1rem 1rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.appointment-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-view {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.btn-view:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-edit {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-edit:hover {
    background: #6b7280;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.btn-delete {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.btn-delete:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* New appointment action buttons */
.btn-attend {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.btn-attend:hover {
    background: #16a34a;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.btn-reschedule {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.btn-reschedule:hover {
    background: #f59e0b;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-cancel {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.btn-cancel:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Search Highlight Effect */
.appointment-card-modern.search-highlight {
    animation: searchHighlight 0.3s ease-in-out;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .appointment-card-header {
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .appointment-patient-info {
        width: 100%;
    }
    
    .appointment-phone {
        justify-content: flex-start;
    }
    
    .appointment-status {
        justify-content: flex-start;
    }
    
    .appointment-datetime {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .appointment-datetime-value {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .appointment-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .appointment-card-header,
    .appointment-card-body,
    .appointment-card-footer {
        padding: 1rem;
    }
    
    .patient-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .patient-name {
        font-size: 1.125rem;
    }
    
    .datetime-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .datetime-value {
        font-size: 0.875rem;
    }
}

/* ========================================
   CONSULTAS STYLES
   ======================================== */

/* Custom styles for consultas */
.consultas-card {
    border-left: 4px solid #28a745;
}

.consultas-avatar {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.consultas-details {
    padding: 1rem 0;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.detail-content p {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.detail-content strong {
    color: #495057;
}

.notes-text {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    border-left: 3px solid #28a745;
    font-style: italic;
}

/* Search highlight for consultas */
.appointment-card-modern.search-highlight.consultas-card {
    background-color: rgba(40, 167, 69, 0.1) !important;
    border: 2px solid rgba(40, 167, 69, 0.3) !important;
}

/* ========================================
   PATIENTS MODERN CARDS STYLES
   ======================================== */

/* Patient card specific styles */
.patient-card .appointment-card-modern {
    border-left: 4px solid #10b981;
    margin-bottom: 1.5rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

/* Additional spacing for patient cards */
.patient-card {
    margin-bottom: 1rem;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

.patient-card:last-child {
    margin-bottom: 0;
}

/* Container spacing for patients list */
.row.g-5 {
    margin-top: 1rem;
    margin-bottom: 2rem;
    --bs-gutter-x: 1.5rem; /* Reduced horizontal gutter for 3-column layout */
}

/* Extra spacing between card rows and horizontal padding */
.row.g-4 > .col-xl-4,
.row.g-4 > .col-lg-4,
.row.g-4 > .col-md-6 {
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Additional horizontal spacing for patient cards */
.patient-card {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    height: 100%;
}

.patient-card .patient-avatar {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    width: 32px;
    height: 32px;
}

.patient-card .status-badge.status-completed {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Patient card search highlight */
.patient-card.search-highlight {
    background-color: rgba(16, 185, 129, 0.05) !important;
    border: 2px solid rgba(16, 185, 129, 0.2) !important;
    border-left: 4px solid #10b981 !important;
}

/* Patient contact info styling */
.patient-card .appointment-contact {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.patient-card .appointment-notes {
    background: #fefce8;
    border: 1px solid #fde68a;
}

.patient-card .notes-title {
    color: #92400e;
}

.patient-card .notes-content {
    color: #a16207;
}

/* Patient action buttons */
.patient-card .btn-action.btn-view:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.patient-card .btn-action.btn-edit:hover {
    background: #bfdbfe;
    color: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Compact Patient Info Styles */
.patient-compact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
    flex: 1;
    min-width: 0;
}

.info-item i {
    width: 12px;
    text-align: center;
    color: #10b981;
    flex-shrink: 0;
    font-size: 0.7rem;
}

.info-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Compact card adjustments with smaller width */
.patient-card .appointment-card-header {
    padding: 0.75rem 0.75rem 0.5rem 0.75rem;
}

.patient-card .appointment-card-body {
    padding: 0.5rem 0.75rem;
}

.patient-card .appointment-card-footer {
    padding: 0.5rem 0.75rem 0.75rem 0.75rem;
}

.patient-card .appointment-actions {
    gap: 0.5rem;
}

.patient-card .btn-action {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
    min-width: auto;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

/* Appointment card buttons - match patient card styling */
.appointment-card-modern .btn-action {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
    min-width: auto;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

/* Smaller text for compact cards */
.patient-card .patient-name {
    font-size: 0.85rem;
    margin-bottom: 0.125rem;
    line-height: 1.2;
}

.patient-card .appointment-type {
    font-size: 0.7rem;
    line-height: 1.2;
}

/* Make header more compact */
.patient-card .appointment-patient-info {
    gap: 0.75rem;
}

.patient-card .btn-action span {
    display: inline;
}

.patient-card .btn-action i {
    margin-right: 0.25rem;
}

/* Responsive adjustments for compact cards */
@media (max-width: 768px) {
    /* Maintain good horizontal spacing on mobile */
    .row.g-5 {
        --bs-gutter-x: 1rem; /* Reduced horizontal gutter on mobile */
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .row.g-5 > .col-lg-4,
    .row.g-5 > .col-md-6 {
        margin-bottom: 1.5rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    .patient-card {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        margin-left: 0.125rem;
        margin-right: 0.125rem;
    }
    
    .patient-card .appointment-card-modern {
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }
    
    .patient-card .appointment-card-header {
        padding: 0.5rem 0.75rem 0.375rem 0.75rem;
    }
    
    .patient-card .appointment-card-body {
        padding: 0.375rem 0.75rem;
    }
    
    .patient-card .appointment-card-footer {
        padding: 0.375rem 0.75rem 0.5rem 0.75rem;
    }
    
    .patient-card .patient-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .patient-card .patient-name {
        font-size: 0.8rem;
    }
    
    .patient-card .appointment-type {
        font-size: 0.65rem;
    }
}

/* 3-card layout optimizations */
@media (min-width: 992px) {
    .row.g-4 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 1.25rem;
    }
    
    .patient-card {
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }
    
    .patient-card .appointment-card-modern {
        flex: 1;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .patient-card .appointment-card-body {
        flex: 1;
    }
    
    .patient-card .appointment-card-footer {
        margin-top: auto;
    }
}

/* Ensure cards are equal height on larger screens */
@media (min-width: 1200px) {
    .row.g-4 > .col-xl-4 {
        display: flex;
    }
    
    .patient-card {
        width: 100%;
    }
}

/* Additional 3-card layout refinements */
@media (min-width: 992px) and (max-width: 1199px) {
    .row.g-4 {
        --bs-gutter-x: 0.5rem;
    }
    
    .patient-card {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

/* Mobile optimizations for single column */
@media (max-width: 767px) {
    .patient-card {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 1rem;
    }
}

/* Month Navigation Styles */
#dashboard-periods {
    transition: opacity 0.15s ease;
}

#dashboard-periods.htmx-request {
    opacity: 0.55;
    pointer-events: none;
}

.month-navigation {
    background: #667eea;
    border-radius: 15px;
    padding: 2rem;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.month-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.month-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.month-display h3 {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.month-display p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Monthly Earnings Display */
.monthly-earnings-display {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.earnings-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.earnings-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #10b981;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
}

.earnings-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.earnings-amount i {
    color: #10b981;
    font-size: 1.5rem;
}

/* Zero earnings styling */
.monthly-earnings-display:has(.earnings-value:contains("$0")) .earnings-value {
    color: #6b7280;
}

.monthly-earnings-display:has(.earnings-value:contains("$0")) .earnings-amount i {
    color: #6b7280;
}

/* Day Group Headers */
.day-group-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.day-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.day-group-count {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive month navigation */
@media (max-width: 768px) {
    .month-navigation {
        padding: 1.5rem 1rem;
    }
    
    .month-nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .month-display h3 {
        font-size: 1.5rem;
    }
    
    .month-display p {
        font-size: 0.85rem;
    }
    
    .monthly-earnings-display {
        padding: 0.75rem 1rem;
        margin-top: 0.75rem;
    }
    
    .earnings-value {
        font-size: 1.5rem;
    }
    
    .earnings-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .month-navigation .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .month-nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .month-display {
        order: -1;
    }
}


html, body {
    margin: 0;
    padding: 0;
  }
  
  .content-body:has(.calendario-page) {
    padding: 0.75rem 1.5rem 2rem;
    overflow: visible;
  }

  .calendario-page {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 6rem;
  }

  .calendario-page__header {
    flex-shrink: 0;
  }

  .calendario-page__header .section-title {
    margin-bottom: 0.1rem;
    font-size: 1.35rem;
  }

  .calendario-page__header .section-subtitle {
    font-size: 0.9rem;
  }

  .calendario-page__legend {
    flex-shrink: 0;
    margin-bottom: 0;
    padding: 0.4rem 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 1rem;
  }

  .calendario-page__legend .legend-items {
    margin: 0;
  }

  #calendar {
    width: 100%;
    max-width: none;
    margin: 0 0 0.5rem;
    min-height: 80vh;
    height: 80vh;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
  }

  /* FullCalendar Custom Styling */
  .fc {
    font-family: inherit;
  }

  .fc-toolbar {
    background: var(--banner-color);
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
  }

  .fc-toolbar-title {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .fc-button {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    font-weight: 500;
    border-radius: 6px !important;
    transition: all 0.3s ease;
  }

  .fc-button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
  }

  .fc-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5) !important;
  }

  .fc-button-active {
    background: rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
  }

  .fc-daygrid-event {
    border-radius: 4px;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 2px 6px;
    margin: 1px 0;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .fc-daygrid-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .fc-event-title {
    font-weight: 600;
  }

  .fc-daygrid-day {
    background: #fafafa;
    border: 1px solid #e0e0e0;
  }

  .fc-daygrid-day:hover {
    background: #f0f0f0;
  }

  .fc-day-today {
    background: #e3f2fd !important;
  }

  .fc-daygrid-day-number {
    font-weight: 600;
    color: #333;
    padding: 8px;
  }

  .fc-day-today .fc-daygrid-day-number {
    color: #1976d2;
    font-weight: 700;
  }

  .fc-daygrid-day-top {
    flex-direction: row;
    justify-content: flex-start;
  }

  .fc-col-header-cell {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    font-weight: 600;
    color: #555;
    padding: 10px 5px;
  }

  .fc-scrollgrid {
    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
  }

  .fc-timegrid-event {
    border-radius: 4px;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
  }

  .fc-list-event {
    border-radius: 4px;
    margin: 2px 0;
    cursor: pointer;
  }

  .fc-list-event:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  /* Appointment Details Modal */
  .appointment-details-actions {
    align-items: center !important;
  }

  .appointment-details-actions .btn-action {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 0.375rem;
    min-height: calc(1.5em + 0.75rem + 2px);
  }

  .appointment-details-actions .btn-action i {
    font-size: 0.8rem;
  }

  .appointment-details-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    min-height: calc(1.5em + 0.75rem + 2px);
  }

  .appointment-details {
    line-height: 1.6;
  }

  .appointment-details h5 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
  }

  .appointment-details p {
    margin-bottom: 10px;
    color: #555;
  }

  .appointment-details strong {
    color: #333;
    font-weight: 600;
  }

  /* Status Color Indicators - Only for appointment statuses */
  .fc-event[style*="rgb(0, 123, 255)"] {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
  }

  .fc-event[style*="rgb(40, 167, 69)"] {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
  }

  .fc-event[style*="rgb(255, 193, 7)"] {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    color: #212529 !important;
  }

  .fc-event[style*="rgb(220, 53, 69)"] {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
  }

  /* Calendar Legend */
  .calendar-legend {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
  }

  .legend-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }

  .legend-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
  }

  .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }

  .legend-note {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
  }

  .legend-note i {
    color: #007bff;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .calendario-page {
      gap: 0.75rem;
    }

    .calendario-page__legend {
      padding: 0.75rem 1rem;
      flex-direction: column;
      align-items: flex-start;
    }

    #calendar {
      margin: 0;
      padding: 8px;
      min-height: 70vh;
      height: 70vh;
    }

    .calendario-page {
      padding-bottom: 5rem;
    }

    .fc-toolbar {
      padding: 10px 15px;
      flex-direction: column;
      gap: 10px;
    }

    .fc-toolbar-title {
      font-size: 1.2rem;
    }

    .fc-button {
      font-size: 0.85rem;
      padding: 6px 12px;
    }

    .fc-daygrid-event {
      font-size: 0.75rem;
      padding: 1px 4px;
    }

    .calendar-legend {
      padding: 15px;
    }

    .legend-items {
      gap: 10px;
    }

    .legend-item {
      font-size: 0.8rem;
    }
  }

/* Invoice Button Styles */
.appointment-actions {
  padding: 0.75rem 1rem;
  border-top: 1px solid #e5e7eb;
  background-color: #f9fafb;
  border-radius: 0 0 12px 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.invoice-btn {
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.75rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  min-width: auto;
}

.invoice-btn:hover {
  background-color: #a7f3d0;
  border-color: #6ee7b7;
  color: #064e3b;
  text-decoration: none;
  transform: translateY(-1px);
}

.invoice-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.invoice-btn i {
  font-size: 0.875rem;
}

/* ========================================
   PATIENT TABS STYLES
   ======================================== */

/* Patient Tabs Navigation */
.patient-tabs {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
}

.patient-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-weight: 600;
    padding: 1rem 1.5rem;
    transition: all 0.2s ease;
    background: none;
}

.patient-tabs .nav-link:hover {
    color: #4f46e5;
    background: #f8fafc;
    border-bottom-color: #cbd5e1;
}

.patient-tabs .nav-link.active {
    color: #4f46e5;
    background: #f8fafc;
    border-bottom-color: #4f46e5;
}

.patient-tabs .nav-link i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

/* Tab Content */
.tab-content {
    padding-top: 0;
}

/* ========================================
   FILE MANAGEMENT STYLES
   ======================================== */

/* File Upload Section */
.file-upload-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.file-upload-section .form-section-title {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
    margin-bottom: 1.5rem;
}

/* Files List Section */
.files-list-section {
    margin-top: 2rem;
}

.files-list-section .form-section-title {
    color: #10b981;
    border-bottom-color: #10b981;
    margin-bottom: 1.5rem;
}

/* File Items */
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.file-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.file-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.file-icon {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.file-size {
    font-weight: 500;
}

.file-date {
    color: #9ca3af;
}

.file-description {
    color: #4f46e5;
    font-style: italic;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.file-actions .btn {
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.file-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* No Files Message */
.no-files-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

.no-files-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-files-message p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

/* File Upload Progress Modal */
#uploadProgressModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#uploadProgressModal .progress {
    height: 8px;
    border-radius: 4px;
    background-color: #f1f5f9;
}

#uploadProgressModal .progress-bar {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* File Type Icons */
.file-icon .fas.fa-image {
    color: #3b82f6;
}

.file-icon .fas.fa-file-pdf {
    color: #dc2626;
}

.file-icon .fas.fa-file-word {
    color: #2563eb;
}

.file-icon .fas.fa-file {
    color: #6b7280;
}

/* Responsive File Management */
@media (max-width: 768px) {
    .file-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .file-info {
        margin-bottom: 0;
    }
    
    .file-actions {
        justify-content: center;
        margin-left: 0;
    }
    
    .file-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .file-upload-section {
        padding: 1rem;
    }
    
    .patient-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .file-item {
        padding: 0.75rem;
    }
    
    .file-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 0.75rem;
    }
    
    .file-name {
        font-size: 0.875rem;
    }
    
    .file-meta {
        font-size: 0.75rem;
    }
    
    .file-actions .btn {
        padding: 0.375rem;
        font-size: 0.75rem;
    }
}
