@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap');

@font-face {
    font-family: 'Vazir';
    src: url('src/fonts/Vazir.eot');
    src: url('src/fonts/Vazir-Medium.woff2') format('woff2'),
            url('src/fonts/Vazir-Medium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'TitrCircle';
    src: url('src/fonts/Titr-Circle.otf');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'TitrLine';
    src: url('src/fonts/Titr-Line.otf');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'TitrRectangle';
    src: url('src/fonts/Titr-Rectangle.otf');
    font-weight: 500;
    font-display: swap;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', Tahoma, sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('src/pattern.jpg');
    background-repeat: repeat;
    background-size: 360px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

h1 {
    font-family: 'TitrLine', Tahoma, sans-serif;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.logo-container {
    text-align: center;
    margin-bottom: -30px;
    position: relative;
    z-index: 2;
}

.logo-svg {
    width: 120px;
    height: 120px;
    animation: pulse 2s infinite;
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(255,255,255,0.6));
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255,255,255,0.4));
    }
    50% { 
        transform: scale(1.08); 
        filter: brightness(0) invert(1) drop-shadow(0 0 30px rgba(255,255,255,0.8)) drop-shadow(0 0 60px rgba(255,255,255,0.4));
    }
}

.logo-icon {
    font-size: 120px;
    margin-bottom: 0;
    animation: pulse 2s infinite;
}

.header {
    backdrop-filter: blur(3px);
    border-radius: 40px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: fit-content;
    max-width: 90%;
    margin: 0 auto;
    margin-top: 36px;
    border: 1px solid #ffffff10;
}

.header h1 {
    font-size: 2.5em;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    background-clip: text;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 800;
}

.header p {
    color: #36aec2ed;
    font-size: 1.1em;
    max-width: 500px;
    margin: 0 auto 30px;
}

.login-form {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 35px -10px rgba(0,0,0,0.15);
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.login-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .logo-svg {
        width: 90px;
        height: 90px;
    }
    
    .logo-icon {
        font-size: 90px;
    }
    
    .logo-container {
        margin-bottom: -20px;
    }
    
    .header {
        padding: 30px 10px;
        max-width: 100%;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .login-form {
        padding: 30px 20px;
        margin: 0 10px;
    }
}

.form-group {
    margin-bottom: 35px;
}

.form-group label {
    display: block;
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.input-wrapper i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #2a5298;
    font-size: 1.3em;
    transition: all 0.3s;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 55px 18px 25px;
    font-size: 16px;
    font-family: 'Vazir', monospace;
    border: 2px solid #e5e7eb;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-align: center;
    background: #f9fafb;
}

.form-group textarea {
    text-align: right;
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 4px rgba(42,82,152,0.1);
    background: white;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 1.0em;
    font-family: 'Vazir', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(30,60,114,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30,60,114,0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-appointment {
    background: linear-gradient(135deg, #10b981, #059669);
    margin-top: 15px;
}

.btn-appointment:hover {
    box-shadow: 0 8px 25px rgba(16,185,129,0.4);
}

.welcome-banner {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 40px;
    padding: 35px 45px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: white;
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '🦷';
    position: absolute;
    font-size: 120px;
    opacity: 0.08;
    bottom: -20px;
    right: -20px;
    pointer-events: none;
}

.welcome-text {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.3em;
    font-weight: 600;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.patient-name-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.national-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1.1em;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 15px;
}

.gallery-header h2 {
    color: white;
    font-size: 1.6em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.stats {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    color: white;
    font-size: 0.95em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.xray-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    body { padding: 15px; }
    .header { padding: 30px 20px; }
    .header h1 { font-size: 1.8em; }
    .login-form { padding: 30px 20px; margin: 0 10px; }
    .welcome-banner { padding: 25px; flex-direction: column; text-align: center; }
    .welcome-text { font-size: 1.1em; justify-content: center; }
    .gallery-header { flex-direction: column; text-align: center; }
    .xray-gallery { grid-template-columns: 1fr; gap: 25px; }
    .xray-image { height: 240px; }
    .modal-close { top: 15px; right: 15px; width: 45px; height: 45px; font-size: 22px; }
}

.xray-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px -10px rgba(0,0,0,0.2);
    cursor: pointer;
    position: relative;
}

.xray-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #1e3c72);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.xray-card:hover::before {
    transform: scaleX(1);
}

.xray-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
}

.xray-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    height: 280px;
}

.xray-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.xray-card:hover .xray-image img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.xray-card:hover .image-overlay {
    opacity: 1;
}

.overlay-icon {
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    color: #1e3c72;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.xray-card:hover .overlay-icon {
    transform: scale(1);
}

.xray-info {
    padding: 25px;
}

.caption {
    font-size: 1.15em;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.caption i {
    color: #2a5298;
    font-size: 1.2em;
}

.date {
    color: #718096;
    font-size: 0.9em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.date i {
    color: #2a5298;
}

.card-buttons {
    display: flex;
    gap: 12px;
}

.btn-download, .btn-view {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-download {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16,185,129,0.3);
}

.btn-view {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59,130,246,0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.95);
    color: #1e3c72;
    text-decoration: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    padding: 25px 35px;
    text-align: center;
    border-radius: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
    border: 1px solid rgba(153,27,27,0.2);
}

.success-message {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    padding: 25px 35px;
    text-align: center;
    border-radius: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
    border: 1px solid rgba(6,95,70,0.2);
}

.footer {
    text-align: center;
    padding: 35px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85em;
    margin-top: 20px;
}

.address-line {
    margin-top: 10px;
    font-size: 0.85em;
    background: rgba(255,255,255,0.1);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

/* --- Modern Appointment Modal Styles (Redesigned) --- */
.appointment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.appointment-modal.active {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(12px);
    }
}

.appointment-modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 48px;
    padding: 0;
    max-width: 560px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.2);
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.appointment-modal.active .appointment-modal-content {
    transform: scale(1);
}

/* Custom scrollbar */
.appointment-modal-content::-webkit-scrollbar {
    width: 6px;
}

.appointment-modal-content::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.appointment-modal-content::-webkit-scrollbar-thumb {
    background: #2a5298;
    border-radius: 10px;
}

.modal-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 22px;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: white;
    font-size: 1.9em;
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    letter-spacing: -0.3px;
}

.modal-header h3 i {
    font-size: 1.4em;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.modal-header p {
    color: rgba(255,255,255,0.85);
    font-size: 0.9em;
    margin-top: 12px;
    margin-bottom: 0;
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    left: 28px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 20px;
    backdrop-filter: blur(4px);
}

.modal-close-btn:hover {
    background: rgba(255,255,255,0.35);
    transform: rotate(90deg);
}

.modal-form-body {
    padding: 16px 32px 32px;
}

.form-row-modern {
    margin-bottom: 24px;
}

.form-row-modern label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-row-modern label i {
    color: #2a5298;
    width: 22px;
    font-size: 1.1em;
}

.required-star {
    color: #e94560;
    font-size: 1.2em;
    margin-right: 4px;
}

.form-row-modern input,
.form-row-modern textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: 'Vazir', Tahoma, sans-serif;
    border: 2px solid #e2e8f0;
    border-radius: 28px;
    background: #ffffff;
    transition: all 0.25s ease;
    outline: none;
    color: #1e293b;
}

.form-row-modern input:focus,
.form-row-modern textarea:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42,82,152,0.15);
}

.form-row-modern textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.input-hint {
    font-size: 0.75em;
    color: #64748b;
    margin-top: 6px;
    margin-right: 12px;
}

.btn-submit-appointment {
    background: linear-gradient(135deg, #10b981, #059669);
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    font-family: 'Vazir', sans-serif;
    font-size: 1.05em;
    font-weight: 700;
    margin-top: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    box-shadow: 0 8px 20px rgba(16,185,129,0.25);
}

.btn-submit-appointment:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(16,185,129,0.35);
    background: linear-gradient(135deg, #0e9f6e, #048857);
}

.btn-submit-appointment:active {
    transform: translateY(1px);
}

.footer-note {
    text-align: center;
    font-size: 0.75em;
    color: #94a3b8;
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

/* Modal Image Styles (kept original) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.96);
    z-index: 1000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: rgba(255,255,255,0.95);
    border-radius: 40px;
    color: #718096;
}

@media (max-width: 640px) {
    .modal-header h3 {
        font-size: 1.4em;
    }
    .modal-form-body {
        padding: 12px 22px 28px;
    }
    .appointment-modal-content {
        border-radius: 36px;
    }
    .modal-header {
        padding: 24px 20px;
    }
    .form-row-modern input, 
    .form-row-modern textarea {
        padding: 12px 16px;
    }
    .modal-close-btn {
        top: 23px;
        left: 24px;
        width: 36px;
        height: 36px;
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a202c;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 10px;
}

.file-preview {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 12px 16px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

.file-preview i {
    font-size: 24px;
    color: #2a5298;
}

.file-preview span {
    flex: 1;
    font-size: 0.85em;
    color: #1e293b;
    word-break: break-all;
}

.remove-file {
    background: none;
    border: none;
    cursor: pointer;
    color: #ef4444;
    font-size: 18px;
    padding: 4px 8px;
    transition: transform 0.2s;
}

.remove-file:hover {
    transform: scale(1.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress bar for upload (optional) */
.upload-progress {
    margin-top: 12px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    display: none;
}

.upload-progress.active {
    display: block;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    width: 0%;
    transition: width 0.3s;
    border-radius: 4px;
}

/* Enhanced multiple file upload styles */
.file-upload-wrapper {
    width: 100%;
    cursor: pointer;
}

.file-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 24px;
    padding: 32px 20px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #2a5298;
    background: #f1f5f9;
    transform: translateY(-2px);
}

.file-upload-area i {
    font-size: 48px;
    color: #2a5298;
    margin-bottom: 12px;
    display: block;
}

.file-upload-text {
    display: block;
    font-size: 0.95em;
    color: #475569;
    margin-bottom: 8px;
    font-weight: 500;
}

.file-upload-hint {
    display: block;
    font-size: 0.7em;
    color: #94a3b8;
}

.files-list {
    margin-top: 16px;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 16px;
    background: #f8fafc;
    padding: 8px;
}

.file-item {
    background: white;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    animation: slideIn 0.2s ease;
    border: 1px solid #e2e8f0;
}

.file-item i {
    font-size: 20px;
    color: #2a5298;
}

.file-item .file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-item .file-name {
    font-size: 0.85em;
    color: #1e293b;
    font-weight: 500;
    word-break: break-all;
}

.file-item .file-size {
    font-size: 0.7em;
    color: #94a3b8;
}

.file-item .remove-file-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ef4444;
    font-size: 16px;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-item .remove-file-btn:hover {
    background: #fee2e2;
    transform: scale(1.1);
}

/* Toast notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px 28px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1em;
    font-weight: 500;
    z-index: 2000;
    box-shadow: 0 10px 40px rgba(16,185,129,0.4);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    direction: rtl;
    max-width: 90%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    pointer-events: none;
    right: auto;
    margin: 0 auto;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

.toast-notification i {
    font-size: 24px;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== Mobile Responsive Styles (max-width: 640px) ===== */
@media (max-width: 640px) {
    .toast-notification {
        width: max-content;
        max-width: 90%;
        /* Thinner padding for compactness on small screens */
        padding: 10px 18px;
        
        /* Smaller font size for better readability on mobile */
        font-size: 0.85em;
        
        /* Reduce gap between icon and text */
        gap: 10px;
        
        /* Slightly smaller border-radius for a modern, compact look */
        border-radius: 48px;
        
        /* Slightly lighter shadow for mobile */
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
        
        /* Ensure long messages wrap properly */
        word-break: break-word;
        text-align: center;
        line-height: 1.4;
    }
    
    /* Adjust icon size for mobile */
    .toast-notification i {
        font-size: 20px;
    }
}

/* Extra Small Devices (max-width: 480px) */
@media (max-width: 480px) {
    .toast-notification {
        /* Even thinner padding for very small screens */
        padding: 8px 14px;
        
        /* Smaller font size */
        font-size: 0.8em;
        
        /* Reduce gap */
        gap: 8px;
    }
    
    /* Icon size for extra small devices */
    .toast-notification i {
        font-size: 18px;
    }
}

.toast-notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Loading overlay inside modal */
.modal-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    border-radius: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(4px);
}

.modal-loading-overlay .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #2a5298;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.modal-loading-overlay p {
    color: #1e293b;
    font-size: 0.9em;
}

/* @keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
} */

.btn-submit-appointment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Admin Button */
.admin-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    /*background: linear-gradient(135deg, #667eea36 0%, #764ba294 100%);*/
    background: #ffffff17;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.admin-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

@media (max-width: 768px) {
    .admin-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        top: 15px;
        left: 15px;
    }
}