/* ==========================================
   Modern Appointment System CSS
   Mevcut site tasarımıyla uyumlu
========================================== */

/* Alert Messages */
.alert {
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: none;
    align-items: center;
    gap: 15px;
    animation: slideDown 0.3s ease;
}

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

.alert.show {
    display: flex !important;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 2px solid #6EE7B7;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 2px solid #FCA5A5;
}

.alert i {
    font-size: 24px;
}

/* Appointment Section */
.appointment-section {
    padding: 60px 0;
    background: #F7F9FC;
}

.section-intro {
    text-align: center;
    margin-bottom: 50px;
}

.section-intro h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 15px;
}

.section-intro p {
    font-size: 18px;
    color: #718096;
}

/* Booking Grid */
.booking-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Calendar Sidebar */
.calendar-sidebar {
    background: #F8FAFC;
    padding: 30px;
    border-right: 1px solid #E2E8F0;
}

.calendar-header {
    margin-bottom: 25px;
}

.calendar-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 12px;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFF4ED;
    color: #FF6B35;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

/* Calendar Days */
.calendar-days {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

.calendar-days::-webkit-scrollbar {
    width: 6px;
}

.calendar-days::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 10px;
}

.calendar-days::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}

.calendar-days::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

.calendar-day {
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-day:hover {
    border-color: #FF6B35;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
}

.calendar-day.selected {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8A65 100%);
    border-color: #FF6B35;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.day-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.day-name {
    font-weight: 600;
    font-size: 16px;
}

.day-date {
    font-size: 14px;
    opacity: 0.8;
}

.day-slots {
    font-size: 13px;
    font-weight: 600;
    color: #10B981;
    display: flex;
    align-items: center;
    gap: 5px;
}

.calendar-day.selected .day-slots {
    color: white;
}

/* Slots Area */
.slots-area {
    padding: 40px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #A0AEC0;
}

.empty-state i {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #64748B;
}

.slots-header {
    margin-bottom: 30px;
}

.slots-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 8px;
}

.slots-header p {
    color: #718096;
    font-size: 16px;
}

/* Time Slots Grid */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}

.time-slot {
    background: white;
    border: 2px solid #E2E8F0;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.time-slot:hover {
    border-color: #FF6B35;
    background: #FFF4ED;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.time-slot.selected {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8A65 100%);
    border-color: #FF6B35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* Booking Form */
.booking-form {
    background: #F8FAFC;
    padding: 35px;
    border-radius: 16px;
    display: none;
    border: 2px solid #E2E8F0;
}

.booking-form.active {
    display: block;
    animation: slideIn 0.4s ease;
}

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

.form-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #E2E8F0;
}

.form-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 8px;
}

.selected-time {
    color: #FF6B35;
    font-weight: 700;
    font-size: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 15px;
    color: #2C3E50;
}

.booking-form .form-group input,
.booking-form .form-group select,
.booking-form .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.booking-form .form-group input:focus,
.booking-form .form-group select:focus,
.booking-form .form-group textarea:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.booking-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: 'Poppins', sans-serif;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8A65 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #E55A2B 0%, #E67A55 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

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

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #A0AEC0;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #E2E8F0;
    border-top: 4px solid #FF6B35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Info Section */
.appointment-info-section {
    padding: 60px 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-box {
    background: #F8FAFC;
    padding: 35px;
    border-radius: 16px;
    border: 2px solid #E2E8F0;
    transition: all 0.3s ease;
}

.info-box:hover {
    border-color: #FF6B35;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.1);
    transform: translateY(-5px);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8A65 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
}

.info-box h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 12px 0;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #475569;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li i {
    color: #FF6B35;
    font-size: 18px;
    width: 24px;
}

.info-list li strong {
    color: #2C3E50;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 968px) {
    .booking-grid {
        grid-template-columns: 1fr;
    }

    .calendar-sidebar {
        border-right: none;
        border-bottom: 2px solid #E2E8F0;
    }

    .calendar-days {
        max-height: 400px;
    }

    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .appointment-section {
        padding: 40px 0;
    }

    .section-intro h2 {
        font-size: 28px;
    }

    .booking-grid {
        border-radius: 15px;
    }

    .calendar-sidebar,
    .slots-area,
    .booking-form,
    .info-box {
        padding: 25px;
    }

    .time-slots {
        grid-template-columns: 1fr 1fr;
    }

    .slots-header h2 {
        font-size: 22px;
    }
}
