/**
 * Seadream AppOne Assistant - Frontend Styles
 * 
 * Minimal frontend styling for notifications and loading indicators
 * Non-intrusive design that works with any theme
 * 
 * @package Seadream AppOne Assistant
 * @version 1.0.0
 */

/* ========================================
   NOTIFICATION SYSTEM
   ======================================== */

.seadream-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    padding: 12px 20px;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 350px;
    word-wrap: break-word;
    transition: all 0.3s ease;
}

.seadream-notice.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.seadream-notice.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.seadream-notice.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ========================================
   LOADING INDICATOR
   ======================================== */

.seadream-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seadream-loading .loading-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    min-width: 200px;
}

.seadream-loading .loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: seadream-spin 1s linear infinite;
}

.seadream-loading .loading-message {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    color: #333333;
    margin: 0;
}

@keyframes seadream-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@media (max-width: 768px) {
    .seadream-notice {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 13px;
    }
    
    .seadream-loading .loading-content {
        margin: 20px;
        padding: 20px;
        min-width: auto;
    }
    
    .seadream-loading .loading-spinner {
        width: 30px;
        height: 30px;
        margin-bottom: 10px;
    }
    
    .seadream-loading .loading-message {
        font-size: 14px;
    }
}

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

.seadream-notice:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.seadream-loading .loading-content:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .seadream-notice {
        border-width: 2px;
    }
    
    .seadream-notice.success {
        background-color: #ffffff;
        color: #000000;
        border-color: #008000;
    }
    
    .seadream-notice.error {
        background-color: #ffffff;
        color: #000000;
        border-color: #ff0000;
    }
    
    .seadream-notice.info {
        background-color: #ffffff;
        color: #000000;
        border-color: #0000ff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .seadream-notice {
        transition: none;
    }
    
    .seadream-loading .loading-spinner {
        animation: none;
        border-top-color: #007cba;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .seadream-notice,
    .seadream-loading {
        display: none !important;
    }
}

