/* Modal System Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.modal-icon {
    font-size: 32px;
    line-height: 1;
}

.modal-icon.info { color: #4a9eff; }
.modal-icon.warning { color: #ff9944; }
.modal-icon.confirm { color: #44ff44; }
.modal-icon.error { color: #ff4444; }

.modal-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.modal-message {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1em;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-primary {
    background: #4a9eff;
    color: white;
}

.modal-btn-primary:hover {
    background: #357abd;
    transform: translateY(-1px);
}

.modal-btn-success {
    background: #44ff44;
    color: #000;
}

.modal-btn-success:hover {
    background: #22dd22;
    transform: translateY(-1px);
}

.modal-btn-danger {
    background: #ff4444;
    color: white;
}

.modal-btn-danger:hover {
    background: #cc0000;
    transform: translateY(-1px);
}

.modal-btn-secondary {
    background: transparent;
    color: #999;
    border: 1px solid #444;
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
}

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

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