/* Genel Stiller ve Konteyner */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
}

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

.appointment-wrapper {
    width: 100%;
    max-width: 72rem;
    margin: 2rem auto;
    background-color: white;
    border-radius: 2rem;
    box-shadow: 0 40px 80px -16px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Sol Panel: Sidebar */
.appointment-sidebar {
    width: 100%;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e293b 100%);
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.appointment-sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

@media (min-width: 1024px) {
    .appointment-sidebar {
        width: 33.333333%;
        padding: 2.5rem;
    }
}

.sidebar-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .sidebar-title {
        font-size: 2rem;
    }
}

.sidebar-subtitle {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .sidebar-subtitle {
        margin-bottom: 2.5rem;
        font-size: 1rem;
    }
}

.steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .steps-wrapper {
        gap: 1.25rem;
    }
}

.step-item {
    display: flex;
    align-items: center;
    opacity: 0.4;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-10px);
}

.step-item.active {
    opacity: 1;
    transform: translateX(0);
}

.step-item.completed {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 1023px) {
    .step-item {
        display: none;
    }

    .step-item.active,
    .step-item.completed:last-of-type {
        display: flex;
    }
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 2px solid #475569;
    color: #94a3b8;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.875rem;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .step-icon {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1rem;
    }
}

.step-name {
    margin-left: 1rem;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.875rem;
}

@media (min-width: 1024px) {
    .step-name {
        font-size: 1rem;
    }
}

.step-item.active .step-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #8b5cf6;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: scale(1.1);
}

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

.step-item.completed .step-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.sidebar-footer {
    margin-top: 2rem;
    color: #cbd5e1;
    font-size: 0.75rem;
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
    .sidebar-footer {
        margin-top: 3rem;
        font-size: 0.875rem;
    }
}

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

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

.step-content {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.step-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #111827;
    background: linear-gradient(135deg, #1e3a8a 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.employee-card {
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: white;
    position: relative;
    overflow: hidden;
}

.employee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.employee-card:hover {
    border-color: #8b5cf6;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(99, 102, 241, 0.2);
}

.employee-card:hover::before {
    opacity: 1;
}

.employee-card.active {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.employee-card img {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 3px solid #f3f4f6;
    transition: all 0.3s ease;
}

.employee-card:hover img,
.employee-card.active img {
    border-color: #6366f1;
    transform: scale(1.05);
}

.employee-card .placeholder-icon {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #6b7280;
    transition: all 0.3s ease;
}

.employee-card:hover .placeholder-icon,
.employee-card.active .placeholder-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

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

.service-card {
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    border-color: #10b981;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(16, 185, 129, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

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

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

.service-selected-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.5rem;
    color: #10b981;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.service-card.active {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

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

#service-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.05);
}

/* 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;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
}

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

.calendar-header h4 {
    font-weight: 600;
    font-size: 1.25rem;
    color: #111827;
}

.calendar-nav button {
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.75rem;
    line-height: 1;
    transition: all 0.2s ease;
    color: #6b7280;
}

.calendar-nav button:hover {
    background-color: #e5e7eb;
    color: #111827;
}

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

.calendar-weekdays div {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
    padding: 0.5rem 0;
}

.calendar-day {
    padding: 0.75rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 500;
}

.calendar-day:not(.disabled):hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    transform: scale(1.05);
}

.calendar-day.disabled {
    color: #d1d5db;
    pointer-events: none;
    opacity: 0.4;
}

.calendar-day.selected {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: scale(1.1);
}

#time-slots-container h4 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #111827;
    font-size: 1.125rem;
}

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

.time-slot {
    padding: 1rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.time-slot:hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

.time-slot.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.no-slots-message {
    text-align: center;
    color: #6b7280;
    padding: 2rem 1rem;
    border: 2px dashed #e5e7eb;
    border-radius: 0.75rem;
    background: #fafafa;
}

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

.customer-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.customer-form input,
.customer-form textarea {
    display: block;
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: white;
}

.customer-form input::placeholder,
.customer-form textarea::placeholder {
    color: #9ca3af;
}

.customer-form input:focus,
.customer-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

/* Onaylama Adımı */
.summary-box-compact {
    border: 2px solid #e5e7eb;
    border-radius: 1.25rem;
    background: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.05);
}

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

@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.75rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.summary-item-compact h5 i {
    margin-right: 0.625rem;
    color: #6366f1;
    font-size: 1rem;
}

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

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

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

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

.total-box {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    border-radius: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.total-box .total-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: #312e81;
}

.total-box .total-price {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-btn {
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-btn:active::before {
    width: 300px;
    height: 300px;
}

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

.prev-btn {
    background: #f3f4f6;
    color: #374151;
}

.prev-btn:hover:not(:disabled) {
    background: #e5e7eb;
    transform: translateX(-4px);
}

.next-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.next-btn:hover:not(:disabled) {
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.confirm-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

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

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

.form-success-message i {
    color: #10b981;
    animation: successPulse 1s ease-in-out;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

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

.new-appointment-btn {
    margin-top: 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.new-appointment-btn:hover {
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}