/* ===================================================
 * SYSTEM STATUS INDICATORS - LA MONTAÑA AGROMERCADOS
 * ===================================================
 * Indicadores de estado del sistema
 * Diseño modular y reversible
 * =================================================== */

/* ===================================================
 * BADGE EN HEADER
 * =================================================== */
.system-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 12px;
    border: 1px solid transparent;
}

.system-status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.system-status-badge.dev {
    background: linear-gradient(135deg, var(--color-warning), #ffb74d);
    color: #fff;
    border-color: #ff9800;
}

.system-status-badge.prod {
    background: linear-gradient(135deg, var(--color-success), #66bb6a);
    color: #fff;
    border-color: #4caf50;
}

.system-status-badge .status-icon {
    font-size: 10px;
}

/* ===================================================
 * PANEL DE ESTADO EN DASHBOARD
 * =================================================== */
.system-status-panel {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.system-status-panel:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.system-status-panel .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-gray-200);
}

.system-status-panel .panel-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-gray-800);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.system-status-panel .panel-title i {
    color: var(--color-primary);
}

.system-status-panel .panel-toggle {
    background: none;
    border: none;
    color: var(--color-gray-500);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.system-status-panel .panel-toggle:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

.system-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.system-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    transition: all 0.3s ease;
}

.system-status-item:hover {
    background: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.system-status-item .status-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.system-status-item .status-icon.dev {
    background: linear-gradient(135deg, var(--color-warning), #ffb74d);
}

.system-status-item .status-icon.prod {
    background: linear-gradient(135deg, var(--color-success), #66bb6a);
}

.system-status-item .status-icon.info {
    background: linear-gradient(135deg, var(--color-info), #4fc3f7);
}

.system-status-item .status-content {
    flex: 1;
    min-width: 0;
}

.system-status-item .status-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.system-status-item .status-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-800);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.system-status-item .status-details {
    font-size: 11px;
    color: var(--color-gray-500);
    margin-top: 2px;
}

/* ===================================================
 * NOTIFICACIÓN TEMPORAL
 * =================================================== */
.system-status-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, var(--color-warning), #ffb74d);
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.5s ease-out;
}

.system-status-notification .notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.system-status-notification .notification-icon {
    font-size: 16px;
}

.system-status-notification .notification-text {
    flex: 1;
}

.system-status-notification .notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.system-status-notification .notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===================================================
 * RESPONSIVE
 * =================================================== */
@media (max-width: 768px) {
    .system-status-badge {
        margin-left: 8px;
        padding: 3px 6px;
        font-size: 10px;
    }
    
    .system-status-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .system-status-item {
        padding: 10px;
    }
    
    .system-status-notification {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .system-status-notification .notification-content {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .system-status-badge {
        display: none; /* Ocultar en móviles muy pequeños */
    }
    
    .system-status-panel {
        padding: 16px;
    }
    
    .system-status-panel .panel-title {
        font-size: 16px;
    }
}

/* ===================================================
 * UTILIDADES
 * =================================================== */
.system-status-hidden {
    display: none !important;
}

.system-status-visible {
    display: block !important;
}

/* ===================================================
 * ANIMACIONES
 * =================================================== */
.system-status-fade-in {
    animation: fadeIn 0.3s ease-in;
}

.system-status-fade-out {
    animation: fadeOut 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
} 