/* Custom Modal System - NO BOOTSTRAP MODAL CLASSES */
/* File: static/css/modal-manager.css */

/* Modal Overlay */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1055;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.custom-modal {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease;
}

.custom-modal-overlay.show .custom-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.custom-modal-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-modal-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-modal-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.custom-modal-icon.confirm { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.custom-modal-icon.danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.custom-modal-icon.success { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.custom-modal-icon.error { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

/* Modal Body */
.custom-modal-body {
    padding: 16px 20px 20px;
}

.custom-modal-text {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    font-size: 15px;
}

/* Modal Footer */
.custom-modal-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Clean Custom Buttons */
.custom-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    min-height: 38px;
    justify-content: center;
}

.custom-btn:focus {
    outline: none;
}

.custom-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
}

.custom-btn-success {
    background: #22c55e;
    color: white;
}

.custom-btn-success:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.custom-btn-danger {
    background: #ef4444;
    color: white;
}

.custom-btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.custom-btn-primary {
    background: #f01b42;
    color: white;
}

.custom-btn-primary:hover {
    background: #c31532;
    transform: translateY(-1px);
}

.custom-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.custom-btn:disabled:hover {
    transform: none;
}

/* Loading State */
.custom-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .custom-modal-overlay {
        padding: 16px;
    }

    .custom-modal {
        max-width: 100%;
        border-radius: 12px;
    }

    .custom-modal-header {
        padding: 16px 16px 12px;
    }

    .custom-modal-title {
        font-size: 16px;
    }

    .custom-modal-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .custom-modal-body {
        padding: 12px 16px 16px;
    }

    .custom-modal-text {
        font-size: 14px;
    }

    .custom-modal-footer {
        padding: 12px 16px 16px;
        flex-direction: row;
    }

    .custom-btn {
        flex: 1;
        min-width: 0;
        padding: 12px 16px;
    }
}