/* Confirmation Modal Styles */

.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.confirmation-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.confirmation-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.confirmation-header {
    padding: 24px 24px 16px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(217, 168, 38, 0.1) 0%, rgba(217, 168, 38, 0.05) 100%);
}

.confirmation-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.confirmation-icon.register {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.confirmation-icon.unregister {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.confirmation-icon.success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.confirmation-icon.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.confirmation-title {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
}

.confirmation-subtitle {
    margin: 0;
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

/* Body */
.confirmation-body {
    padding: 24px;
    text-align: center;
}

.confirmation-message {
    margin: 0;
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
}

.task-info-preview {
    background: rgba(247, 247, 247, 0.8);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    border-left: 4px solid var(--header-link-color, #d9a826);
}

.task-info-preview h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.task-info-preview p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Actions */
.confirmation-actions {
    padding: 16px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-confirmation {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.btn-confirm {
    background: var(--header-link-color, #d9a826);
    color: white;
}

.btn-confirm:hover {
    background: var(--button-hover-color, #c49023);
    box-shadow: 0 4px 12px rgba(217, 168, 38, 0.3);
}

.btn-confirm.register {
    background: #22c55e;
    color: white;
}

.btn-confirm.register:hover {
    background: #16a34a;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-confirm.unregister {
    background: #ef4444;
    color: white;
}

.btn-confirm.unregister:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-cancel {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.btn-cancel:hover {
    background: #e5e7eb;
    color: #4b5563;
    border-color: #d1d5db;
}

.btn-close {
    background: var(--header-link-color, #d9a826);
    color: white;
    min-width: 140px;
}

.btn-close:hover {
    background: var(--button-hover-color, #c49023);
    box-shadow: 0 4px 12px rgba(217, 168, 38, 0.3);
}

/* Loading State */
.btn-confirmation.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-confirmation.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 480px) {
    .confirmation-content {
        width: 95%;
        max-width: none;
        margin: 10px;
    }
    
    .confirmation-header,
    .confirmation-body {
        padding: 20px;
    }
    
    .confirmation-actions {
        padding: 16px 20px 20px 20px;
        flex-direction: column;
    }
    
    .btn-confirmation {
        width: 100%;
        min-width: auto;
    }
    
    .confirmation-title {
        font-size: 1.2rem;
    }
}
