/* Genel Stiller ve Konteyner */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
}

.appointment-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.appointment-wrapper {
    width: 100%;
    max-width: 64rem;
    /* 1024px */
    margin: 2rem auto;
    background-color: white;
    border-radius: 1.5rem;
    /* 24px */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .appointment-wrapper {
        flex-direction: row;
    }
}

/* Sol Panel: Sidebar */
.appointment-sidebar {
    width: 100%;
    background-color: #1f2937;
    /* gray-800 */
    padding: 2rem;
    color: white;
}

@media (min-width: 1024px) {
    .appointment-sidebar {
        width: 33.333333%;
        /* lg:w-1/3 */
    }
}

.sidebar-title {
    font-size: 1.875rem;
    /* 30px */
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sidebar-subtitle {
    color: #9ca3af;
    /* gray-400 */
    margin-bottom: 2rem;
}

.steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: center;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    /* 40px */
    height: 2.5rem;
    /* 40px */
    border-radius: 9999px;
    /* full */
    border: 2px solid #6b7280;
    /* gray-500 */
    color: #9ca3af;
    /* gray-400 */
    transition: all 0.3s ease;
}

.step-name {
    margin-left: 1rem;
    font-weight: 600;
    color: #9ca3af;
    /* gray-400 */
    transition: all 0.3s ease;
}

/* Aktif ve Tamamlanmış Adım Stilleri */
.step-item.active .step-icon {
    background-color: #4338ca;
    /* indigo-700 */
    border-color: #4f46e5;
    /* indigo-600 */
    color: white;
}

.step-item.active .step-name {
    color: white;
}

.step-item.completed .step-icon {
    background-color: #16a34a;
    /* green-600 */
    border-color: #16a34a;
    color: white;
}

.sidebar-footer {
    margin-top: 2.5rem;
    color: #9ca3af;
    /* gray-400 */
    font-size: 0.875rem;
    /* 14px */
}

/* Sağ Panel: İçerik */
.appointment-content {
    width: 100%;
    padding: 2rem;
}

@media (min-width: 1024px) {
    .appointment-content {
        width: 66.666667%;
        /* lg:w-2/3 */
        padding: 3rem;
    }
}

.step-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.step-title {
    font-size: 1.875rem;
    /* 30px */
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #111827;
    /* gray-900 */
}

/* Çalışan Seçimi Grid */
.employee-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .employee-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.employee-card {
    border: 2px solid #e5e7eb;
    /* gray-200 */
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.employee-card:hover {
    border-color: #6366f1;
    /* indigo-500 */
    transform: translateY(-2px);
}

.employee-card.active {
    border-color: #4f46e5;
    /* indigo-600 */
    box-shadow: 0 0 0 2px #c7d2fe;
    background-color: #f5f3ff;
}

.employee-card img {
    width: 5rem;
    /* 80px */
    height: 5rem;
    /* 80px */
    border-radius: 9999px;
    margin: 0 auto 0.75rem;
    object-fit: cover;
}

.employee-card .placeholder-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    margin: 0 auto 0.75rem;
    background-color: #e5e7eb;
    /* gray-200 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    /* 36px */
    color: #6b7280;
    /* gray-500 */
}

/* Hizmet Seçimi Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.service-card {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 110px;
}

.service-card:hover {
    border-color: #4f46e5;
    transform: translateY(-3px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
}

.service-card-content {
    text-align: center;
}

.service-name {
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
    margin: 0;
}

.service-details {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.service-selected-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #16a34a;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.service-card.active {
    border-color: #16a34a;
    background-color: #f0fdf4;
}

.service-card.active .service-selected-icon {
    opacity: 1;
    transform: scale(1);
}

#service-summary {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f9fafb;
    /* gray-50 */
    border-radius: 0.5rem;
    text-align: right;
}

/* Tarih ve Saat Seçimi */
.datetime-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .datetime-wrapper {
        flex-direction: row;
    }
}

#calendar-container,
#time-slots-container {
    flex: 1;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-header h4 {
    font-weight: 600;
    font-size: 1.125rem;
}

.calendar-nav button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 9999px;
    line-height: 1;
}

.calendar-nav button:hover {
    background-color: #e5e7eb;
    /* gray-200 */
}

.calendar-grid,
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    text-align: center;
}

.calendar-weekdays div {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.calendar-day {
    padding: 0.5rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.calendar-day:not(.disabled):hover {
    background-color: #e0e7ff;
    /* indigo-100 */
}

.calendar-day.disabled {
    color: #d1d5db;
    /* gray-300 */
    pointer-events: none;
}

.calendar-day.selected {
    background-color: #4f46e5;
    color: white;
}

#time-slots-container h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.time-slot {
    padding: 0.75rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    background: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.time-slot:hover {
    background-color: #e0e7ff;
}

.time-slot.active {
    background-color: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.no-slots-message {
    text-align: center;
    color: #6b7280;
    padding: 1rem;
    border: 1px dashed #d1d5db;
    border-radius: 0.5rem;
}

/* Bilgi Formu */
.customer-form .form-group {
    margin-bottom: 1rem;
}

.customer-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    /* gray-700 */
}

.customer-form input,
.customer-form textarea {
    margin-top: 0.25rem;
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.customer-form input:focus,
.customer-form textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px #c7d2fe;
}

/* --- DEĞİŞTİRİLEN BÖLÜM BAŞLANGICI --- */
/* Onaylama Adımı - Yeni Kompakt Stiller */
.summary-box-compact {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background-color: #f9fafb;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-grid-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .summary-grid-compact {
        grid-template-columns: 1fr 1fr;
    }
}

.summary-item-compact h5 {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-item-compact h5 i {
    margin-right: 0.5rem;
    color: #9ca3af;
}

.summary-item-compact p {
    font-size: 1rem;
    color: #111827;
    font-weight: 500;
}

.customer-email-summary {
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    font-weight: 400 !important;
    margin-top: 0.25rem;
}

.service-summary-list {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-service-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.summary-service-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* --- DEĞİŞTİRİLEN BÖLÜM SONU --- */

.total-box {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background-color: #e0e7ff;
    /* indigo-100 */
    border-radius: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-box .total-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: #3730a3;
    /* indigo-800 */
}

.total-box .total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3730a3;
}

/* Navigasyon Butonları */
.navigation-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.nav-btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prev-btn {
    background-color: #e5e7eb;
    /* gray-200 */
    color: #1f2937;
    /* gray-800 */
}

.prev-btn:hover:not(:disabled) {
    background-color: #d1d5db;
    /* gray-300 */
}

.next-btn {
    background-color: #4f46e5;
    /* indigo-600 */
    color: white;
}

.next-btn:hover:not(:disabled) {
    background-color: #4338ca;
    /* indigo-700 */
}

.confirm-btn {
    background-color: #16a34a;
    /* green-600 */
    color: white;
}

.confirm-btn:hover:not(:disabled) {
    background-color: #15803d;
    /* green-700 */
}

/* Başarı ve Hata Mesajları */
.form-success-message,
.form-error-message {
    text-align: center;
    padding: 3rem 1rem;
    animation: fadeIn 0.5s ease;
}

.form-success-message i,
.form-error-message i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.form-success-message i {
    color: #16a34a;
}

.form-error-message i {
    color: #dc2626;
}

.form-success-message h3,
.form-error-message h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.new-appointment-btn {
    margin-top: 1.5rem;
    background-color: #4f46e5;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.new-appointment-btn:hover {
    background-color: #4338ca;
}