/* Custom Alert System - Get The Justice Theme */
:root {
    --alert-primary: #afa939;
    --alert-primary-dark: #354f0b;
    --alert-success: #28a745;
    --alert-error: #dc3545;
    --alert-warning: #ffc107;
    --alert-info: #17a2b8;
    --alert-text-dark: rgba(0,0,0,.8);
    --alert-text-light: #666;
    --alert-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Alert Overlay */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(4px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Alert Container */
.custom-alert-container {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    box-shadow: var(--alert-shadow);
    animation: slideUp 0.3s ease;
    overflow: hidden;
    font-family: 'Poppins', Arial, sans-serif;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Alert Header */
.custom-alert-header {
    background: linear-gradient(135deg, var(--alert-primary-dark) 0%, var(--alert-primary) 100%);
    color: #fff;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.custom-alert-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
}

.custom-alert-header.success {
    background: linear-gradient(135deg, #1e7e34 0%, var(--alert-success) 100%);
}

.custom-alert-header.error {
    background: linear-gradient(135deg, #a71e2a 0%, var(--alert-error) 100%);
}

.custom-alert-header.warning {
    background: linear-gradient(135deg, #d39e00 0%, var(--alert-warning) 100%);
}

.custom-alert-header.info {
    background: linear-gradient(135deg, #117a8b 0%, var(--alert-info) 100%);
}

.custom-alert-icon {
    font-size: 28px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.custom-alert-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.custom-alert-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.custom-alert-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Alert Body */
.custom-alert-body {
    padding: 25px;
    color: var(--alert-text-dark);
    font-size: 16px;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Alert Footer */
.custom-alert-footer {
    padding: 15px 25px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e9ecef;
}

.custom-alert-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    min-width: 100px;
}

.custom-alert-btn-primary {
    background: var(--alert-primary);
    color: #fff;
}

.custom-alert-btn-primary:hover {
    background: var(--alert-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(175, 169, 57, 0.3);
}

.custom-alert-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.custom-alert-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.custom-alert-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 576px) {
    .custom-alert-container {
        width: 95%;
        max-width: none;
    }
    
    .custom-alert-header {
        padding: 18px 20px;
    }
    
    .custom-alert-title {
        font-size: 18px;
    }
    
    .custom-alert-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
        margin-right: 12px;
    }
    
    .custom-alert-body {
        padding: 20px;
        font-size: 15px;
    }
    
    .custom-alert-footer {
        padding: 12px 20px;
        flex-direction: column;
    }
    
    .custom-alert-btn {
        width: 100%;
    }
}

/* Animation for auto-close */
.custom-alert-container.closing {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(30px);
        opacity: 0;
    }
}

.custom-alert-overlay.closing {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

