
.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;
}

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

.form-control, .form-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.875rem;
    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: #7c3aed;
    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: #6d28d9;
    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: #7c3aed;
    --success-color: #10b981;
    --sidebar-width: 280px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid #e2e8f0;
    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 #e2e8f0;
}

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

.sidebar-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

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

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

.sidebar-brand .brand-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
    line-height: 1.2;
}

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

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 0;
}

.nav-link:hover,
.nav-link.active {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

.nav-link.active {
    background-color: #eef2ff;
    border-right: 3px solid var(--primary-color);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* 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: 20px;
}

.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-new-appointment {
    background: #7c3aed;
    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: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
    color: white;
}

.btn-user-dropdown {
    background: #5b21b6;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-transform: uppercase;
}

.btn-user-dropdown:hover {
    background: #4c1d95;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.4);
    color: white;
}

.btn-user-dropdown:focus {
    background: #4c1d95;
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(91, 33, 182, 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: 0.875rem;
    margin-bottom: 2rem;
}

/* 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: #7c3aed;
    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: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 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: 14px;
}

/* 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.75rem;
    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;
}

.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.75rem;
    line-height: 1.4;
}

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

/* Patients Table Styles (Legacy) */
.patients-table th {
    font-size: 0.875rem;
    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;
}

.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;
}

/* 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;
}

/* 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: 0.875rem;
}

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

.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;
}

/* 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-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;
}

/* 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-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: 0.875rem;
    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;
}

/* 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;
    }
}

/* ========================================
   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: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.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: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.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: 1rem;
    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: 1rem;
    border: 1px solid #e2e8f0;
}

.contact-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.75rem 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: 1rem;
    border: 1px solid #fde68a;
}

.notes-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 0.5rem 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: 1rem 1.5rem 1.5rem 1.5rem;
    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 {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .appointment-patient-info {
        width: 100%;
    }
    
    .appointment-status {
        align-self: flex-end;
    }
    
    .appointment-datetime {
        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-attend {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

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

.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 */
.month-navigation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    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;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 14px;
  }
  
  #calendar {
    max-width: 1100px;
    margin: 40px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }

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

  .fc-toolbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    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 {
    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) {
    #calendar {
      margin: 20px auto;
      padding: 10px;
    }

    .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;
}