/* Custom Confirmation Dialogs */
.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: dialogOverlayFadeIn 0.3s ease-out;
}

@keyframes dialogOverlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.custom-dialog {
    background: linear-gradient(145deg, #2d1810, #4a2a1a);
    border: 3px solid #8b4513;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: dialogSlideIn 0.4s ease-out;
    position: relative;
}

@keyframes dialogSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.custom-dialog.warning {
    border-color: #ff6b35;
    background: linear-gradient(145deg, #3d1a1a, #5a2020);
}

.custom-dialog.danger {
    border-color: #ff4444;
    background: linear-gradient(145deg, #4d1515, #6b1a1a);
    box-shadow: 0 20px 60px rgba(255, 68, 68, 0.3);
}

.custom-dialog-header {
    text-align: center;
    margin-bottom: 25px;
}

.custom-dialog-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.custom-dialog.warning .custom-dialog-icon {
    color: #ff6b35;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.custom-dialog.danger .custom-dialog-icon {
    color: #ff4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.7);
    animation: dangerPulse 2s infinite;
}

@keyframes dangerPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

.custom-dialog-title {
    color: #f5deb3;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.custom-dialog.warning .custom-dialog-title {
    color: #ffcc99;
}

.custom-dialog.danger .custom-dialog-title {
    color: #ffaaaa;
}

.custom-dialog-message {
    color: #deb887;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.custom-dialog.warning .custom-dialog-message {
    color: #f0d0a0;
}

.custom-dialog.danger .custom-dialog-message {
    color: #f0c0c0;
    font-weight: bold;
}

.custom-dialog-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.custom-dialog-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    min-width: 120px;
}

.custom-dialog-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.custom-dialog-btn:active {
    transform: translateY(0);
}

.custom-dialog-btn.confirm {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    border: 2px solid #4caf50;
}

.custom-dialog-btn.confirm:hover {
    background: linear-gradient(135deg, #66bb6a, #81c784);
    border-color: #66bb6a;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.custom-dialog-btn.cancel {
    background: linear-gradient(135deg, #757575, #9e9e9e);
    color: white;
    border: 2px solid #757575;
}

.custom-dialog-btn.cancel:hover {
    background: linear-gradient(135deg, #9e9e9e, #bdbdbd);
    border-color: #9e9e9e;
    box-shadow: 0 8px 25px rgba(117, 117, 117, 0.4);
}

.custom-dialog-btn.danger {
    background: linear-gradient(135deg, #f44336, #ff5722);
    color: white;
    border: 2px solid #f44336;
}

.custom-dialog-btn.danger:hover {
    background: linear-gradient(135deg, #ff5722, #ff7043);
    border-color: #ff5722;
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
}

.custom-dialog-btn.warning {
    background: linear-gradient(135deg, #ff9800, #ffc107);
    color: white;
    border: 2px solid #ff9800;
}

.custom-dialog-btn.warning:hover {
    background: linear-gradient(135deg, #ffc107, #ffca28);
    border-color: #ffc107;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-dialog {
        padding: 25px 20px;
        margin: 20px;
    }
    
    .custom-dialog-title {
        font-size: 20px;
    }
    
    .custom-dialog-message {
        font-size: 16px;
    }
    
    .custom-dialog-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 100px;
    }
    
    .custom-dialog-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .custom-dialog-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .custom-dialog {
        padding: 20px 15px;
        margin: 10px;
    }
    
    .custom-dialog-icon {
        font-size: 36px;
    }
    
    .custom-dialog-title {
        font-size: 18px;
    }
    
    .custom-dialog-message {
        font-size: 15px;
    }
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
    .custom-dialog {
        background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
        border-color: #555555;
    }
    
    .custom-dialog.warning {
        background: linear-gradient(145deg, #2d1a1a, #3a2020);
        border-color: #ff6b35;
    }
    
    .custom-dialog.danger {
        background: linear-gradient(145deg, #2d1515, #3a1a1a);
        border-color: #ff4444;
    }
} 