/* ============================================
   System Messages CSS
   ============================================
   Centered, non-intrusive messages for system events
   (booster assignment, order completion, etc.)
   ============================================ */

.system-message-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 16px 0;
    padding: 0 12px;
}

.system-message {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 12px;
    max-width: 80%;
    text-align: center;
    
    /* Light theme */
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Dark theme */
html[data-theme="dark"] .system-message {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.system-message-icon {
    font-size: 18px;
    opacity: 0.7;
    
    /* Light theme */
    color: #555;
}

html[data-theme="dark"] .system-message-icon {
    color: #aaa;
}

.system-message-text {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    
    /* Light theme */
    color: #333;
}

html[data-theme="dark"] .system-message-text {
    color: #ddd;
}

.system-message-time {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 2px;
    
    /* Light theme */
    color: #666;
}

html[data-theme="dark"] .system-message-time {
    color: #999;
}

/* Trustpilot review button styling */
.system-message-text a.trustpilot-button {
    display: block;
    background: linear-gradient(135deg, #00b67a 0%, #005128 100%);
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 182, 122, 0.3);
    text-align: center;
    max-width: 280px;
    margin: 0 auto;
    transition: transform 0.2s, box-shadow 0.2s;
}

.system-message-text a.trustpilot-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 182, 122, 0.4);
}

.system-message-text a.trustpilot-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 182, 122, 0.3);
}

/* Override any global .time styles when inside system messages */
.system-message .time.system-message-time {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 2px;
    display: block;
    text-align: center;
    
    /* Remove any positioning/float from regular message .time */
    position: static;
    float: none;
    margin-left: 0;
    margin-right: 0;
}

/* Special styling for different system message types */
.system-message-container[data-system-type="booster-assigned"] .system-message {
    /* Light theme - subtle green */
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

html[data-theme="dark"] .system-message-container[data-system-type="booster-assigned"] .system-message {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.25);
}

.system-message-container[data-system-type="booster-assigned"] .system-message-icon {
    color: #22c55e;
}

.system-message-container[data-system-type="order-completed"] .system-message {
    /* Light theme - subtle blue */
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

html[data-theme="dark"] .system-message-container[data-system-type="order-completed"] .system-message {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.25);
}

.system-message-container[data-system-type="order-completed"] .system-message-icon {
    color: #3b82f6;
}

/* Animation when system message appears */
@keyframes systemMessageFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.system-message-container {
    animation: systemMessageFadeIn 0.3s ease-out;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .system-message {
        max-width: 90%;
        padding: 8px 12px;
    }
    
    .system-message-icon {
        font-size: 16px;
    }
    
    .system-message-text {
        font-size: 12px;
    }
    
    .system-message-time,
    .system-message .time.system-message-time {
        font-size: 10px;
    }
}

