/*
ACTEXPORTER NOTIFICATION SYSTEM STYLES
Professional inline notifications to replace alert() popups
*/

/* ==============================================
   NOTIFICATION CONTAINER
   ============================================== */

.aex-notification-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 9999;
    pointer-events: none;
}

@media (max-width: 768px) {
    .aex-notification-container {
        top: 60px;
        width: 95%;
        left: 2.5%;
        transform: none;
    }
}

/* ==============================================
   NOTIFICATION BASE STYLES
   ============================================== */

.aex-notification {
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease-out;
    pointer-events: all;
    position: relative;
    overflow: hidden;
}

.aex-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.aex-notification.hide {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease-in;
}

/* ==============================================
   NOTIFICATION TYPES
   ============================================== */

.aex-notification-error {
    background: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

.aex-notification-error::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #d9534f;
}

.aex-notification-success {
    background: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.aex-notification-success::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #5cb85c;
}

.aex-notification-warning {
    background: #fcf8e3;
    border: 1px solid #faebcc;
    color: #8a6d3b;
}

.aex-notification-warning::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #f0ad4e;
}

.aex-notification-info {
    background: #d9edf7;
    border: 1px solid #bce8f1;
    color: #31708f;
}

.aex-notification-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #5bc0de;
}

/* ==============================================
   NOTIFICATION CONTENT
   ============================================== */

.aex-notification-content {
    padding: 15px 20px;
    padding-left: 24px;
}

.aex-notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.aex-notification-header .glyphicon {
    font-size: 16px;
    margin-right: 8px;
    flex-shrink: 0;
}

.aex-notification-title {
    flex-grow: 1;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.aex-notification-close {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    margin-left: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.aex-notification-close:hover {
    opacity: 1;
}

.aex-notification-message {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* ==============================================
   NOTIFICATION ACTIONS
   ============================================== */

.aex-notification-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.aex-notification-actions .btn {
    margin-right: 8px;
    margin-bottom: 4px;
    font-size: 12px;
    padding: 4px 12px;
}

.aex-notification-actions .btn:last-child {
    margin-right: 0;
}

.aex-notification-error .aex-notification-actions .btn-primary {
    background-color: #d9534f;
    border-color: #d43f3a;
}

.aex-notification-error .aex-notification-actions .btn-primary:hover {
    background-color: #c9302c;
    border-color: #ac2925;
}

.aex-notification-success .aex-notification-actions .btn-primary {
    background-color: #5cb85c;
    border-color: #4cae4c;
}

.aex-notification-success .aex-notification-actions .btn-primary:hover {
    background-color: #449d44;
    border-color: #398439;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 480px) {
    .aex-notification-content {
        padding: 12px 15px;
        padding-left: 19px;
    }

    .aex-notification-header {
        margin-bottom: 6px;
    }

    .aex-notification-title {
        font-size: 13px;
    }

    .aex-notification-message {
        font-size: 13px;
    }

    .aex-notification-actions {
        margin-top: 10px;
        padding-top: 10px;
    }

    .aex-notification-actions .btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 6px;
    }
}

/* ==============================================
   SPECIFIC NOTIFICATION TYPES
   ============================================== */

.aex-notification.payment-error {
    border-color: #d9534f;
}

.aex-notification.payment-error .aex-notification-header .glyphicon {
    color: #d9534f;
}

.aex-notification.upload-error .aex-notification-message {
    font-size: 13px;
}

.aex-notification.auth-error {
    background: #f2dede;
}

.aex-notification.api-error .aex-notification-message {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.05);
    padding: 8px;
    border-radius: 3px;
    margin-top: 8px;
}

.aex-notification.success-message .aex-notification-header .glyphicon {
    color: #5cb85c;
}

/* ==============================================
   ACCESSIBILITY
   ============================================== */

@media (prefers-contrast: high) {
    .aex-notification {
        border-width: 2px;
    }

    .aex-notification-error {
        background: #ffebee;
        border-color: #d32f2f;
        color: #d32f2f;
    }

    .aex-notification-success {
        background: #e8f5e8;
        border-color: #2e7d32;
        color: #2e7d32;
    }

    .aex-notification-warning {
        background: #fff8e1;
        border-color: #f57c00;
        color: #f57c00;
    }

    .aex-notification-info {
        background: #e3f2fd;
        border-color: #1976d2;
        color: #1976d2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aex-notification,
    .aex-notification.show,
    .aex-notification.hide {
        transition: opacity 0.2s ease;
        transform: none;
    }
}

@media print {
    .aex-notification-container {
        display: none;
    }
}
