/* AML Audit Modal Styles */

/* Overlay */
.aml-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;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aml-overlay.aml-visible {
    opacity: 1;
}

/* Modal */
.aml-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 0;
    max-width: 480px;
    width: 90%;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.aml-modal.aml-visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Modal Content */
.aml-modal-content {
    display: flex;
    flex-direction: column;
}

/* Header */
.aml-modal-header {
    padding: 24px 24px 0;
    border-bottom: 1px solid #333;
}

.aml-modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

/* Body */
.aml-modal-body {
    padding: 24px;
}

.aml-modal-message {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.5;
    color: #e0e0e0;
}

.aml-modal-details {
    background: #16213e;
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    color: #a0a0a0;
}

.aml-modal-details code {
    background: #0f3460;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #00d9ff;
    word-break: break-all;
}

.aml-modal-details div {
    margin: 8px 0;
}

/* Footer */
.aml-modal-footer {
    padding: 0 24px 24px;
}

.aml-modal-action {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Status Variants */
.aml-modal.aml-success .aml-modal-action {
    background: #00c853;
    color: #000;
}

.aml-modal.aml-success .aml-modal-action:hover {
    background: #00e676;
}

.aml-modal.aml-warning .aml-modal-action {
    background: #ff9800;
    color: #000;
}

.aml-modal.aml-warning .aml-modal-action:hover {
    background: #ffb74d;
}

.aml-modal.aml-error .aml-modal-action {
    background: #f44336;
    color: #fff;
}

.aml-modal.aml-error .aml-modal-action:hover {
    background: #ef5350;
}

/* Info */
.aml-modal-info {
    padding: 16px 24px 24px;
    border-top: 1px solid #333;
    text-align: center;
}

.aml-modal-info small {
    color: #888;
    line-height: 1.6;
}

.aml-modal-info a {
    color: #00d9ff;
    text-decoration: none;
}

.aml-modal-info a:hover {
    text-decoration: underline;
}

/* Status Icons in Title */
.aml-modal.aml-success .aml-modal-title { color: #00c853; }
.aml-modal.aml-warning .aml-modal-title { color: #ff9800; }
.aml-modal.aml-error .aml-modal-title { color: #f44336; }

/* Mobile Responsive */
@media (max-width: 480px) {
    .aml-modal {
        width: 95%;
        margin: 0 auto;
    }
    
    .aml-modal-header,
    .aml-modal-body,
    .aml-modal-footer,
    .aml-modal-info {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Animation */
@keyframes aml-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.aml-modal.aml-checking .aml-modal-message {
    animation: aml-pulse 1.5s ease-in-out infinite;
}
