/* Randevu Modal Styles */
.randevu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.randevu-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.randevu-modal__content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.randevu-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, var(--theme-primary-color, #2563eb) 0%, var(--theme-secondary-color, #7c3aed) 100%);
    color: #ffffff;
}

.randevu-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.randevu-modal__close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.randevu-modal__close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.randevu-modal__body {
    padding: 30px;
    text-align: center;
}

.randevu-modal__status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

/* Loading State */
.randevu-modal__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.randevu-modal__spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--theme-primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.randevu-modal__message {
    margin: 0;
    font-size: 16px;
    color: #374151;
    font-weight: 500;
    line-height: 1.5;
}

/* Success State */
.randevu-modal__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.randevu-modal__success .randevu-modal__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    animation: bounceIn 0.5s ease-out;
}

.randevu-modal__success .randevu-modal__message {
    color: #059669;
    font-weight: 600;
    font-size: 16px;
}

/* Error State */
.randevu-modal__error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.randevu-modal__error .randevu-modal__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    animation: bounceIn 0.5s ease-out;
}

.randevu-modal__error .randevu-modal__message {
    color: #dc2626;
    font-weight: 600;
    font-size: 16px;
}

/* Buttons */
.randevu-modal__btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.randevu-modal__btn--primary {
    background: linear-gradient(135deg, var(--theme-primary-color) 0%, var(--theme-secondary-color) 100%);
    color: #ffffff;
}

.randevu-modal__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.randevu-modal__btn--secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.randevu-modal__btn--secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

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

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

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .randevu-modal__overlay {
        padding: 16px;
    }
    
    .randevu-modal__content {
        max-width: 100%;
    }
    
    .randevu-modal__header {
        padding: 20px 24px 16px;
    }
    
    .randevu-modal__title {
        font-size: 18px;
    }
    
    .randevu-modal__body {
        padding: 24px;
    }
    
    .randevu-modal__message {
        font-size: 15px;
    }
    
    .randevu-modal__btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 100px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .randevu-modal__content {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .randevu-modal__header {
        border-bottom-color: #374151;
    }
    
    .randevu-modal__message {
        color: #d1d5db;
    }
    
    .randevu-modal__btn--secondary {
        background: #374151;
        color: #f9fafb;
        border-color: #4b5563;
    }
    
    .randevu-modal__btn--secondary:hover {
        background: #4b5563;
    }
}
