/* System status display */
.status-good {
    color: green;
}

.status-warning {
    color: orange;
}

.status-critical {
    color: red;
}

.text-white {
    color: white;
}

.system-status {
    display: inline-block;
    margin-left: 5px;
}

/* Billing warning banner styles */
#billing-warning-banner {
    background-color: #ffcc00;
    color: #000;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-bottom: 1px solid #e0b800;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#billing-warning-banner .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
}

#billing-warning-banner strong {
    margin-right: 8px;
}

.billing-contact {
    background-color: #e0b800;
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 10px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    border: none;
}

.billing-contact:hover {
    background-color: #c9a700;
    color: #000;
}

.critical-banner {
    background-color: #ff0f0f !important;
    color: #fff !important;
    font-weight: bold;
    border-bottom: 1px solid #cc0000 !important;
}

.grace-banner {
    background-color: #ff0f0f !important;
    color: #fff !important;
    font-weight: bold;
    border-bottom: 1px solid #cc0000 !important;
}

.critical-banner .billing-contact,
.grace-banner .billing-contact {
    background-color: #fff;
    color: #ff0f0f;
}

.critical-banner .billing-contact:hover,
.grace-banner .billing-contact:hover {
    background-color: #f0f0f0;
}

/* Warning styles */
.critical-alert {
    color: #ff0000;
    text-decoration: none;
}

.warning-alert {
    color: #ff8800;
    text-decoration: none;
}

/* System status container */
#system-status-container {
    display: table;
    margin-left: auto;
    margin-right: 0;
    height: 50px;
    float: left;
    overflow: hidden;
    box-sizing: border-box;
    border: none;
    position: relative;
    margin-bottom: 0;
    box-shadow: none;
}

.tituloalmacenamiento {
    display: table-cell;
    vertical-align: middle;
    padding: 0.1em 0.25em;
    margin: 0;
    line-height: 1.2;
    color: #ccc;
    border-bottom: none;
}

/* Footer styles */
#footer .container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.render-time {
    position: relative;
    min-height: 60px;
    text-align: center;
    font-family: Arial, sans-serif;
    color: #777777;
}

.render-time p {
    margin: 0;
}

.tos-link {
    color: #777777;
}

.logo-link {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    display: block;
}

.logo-link img {
    border: none;
}

/* Overdue payment styles */
body.payment-overdue {
    background-color: #bfbfbf; /* 75% gray */
}

/* Debug container */
.debug-container {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px;
    font-family: monospace;
    font-size: 11px;
    text-align: left;
    margin-top: 20px;
}

/* Animation keyframes */
@keyframes flash {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes ring {
    0% { transform: rotate(0); }
    5% { transform: rotate(15deg); }
    10% { transform: rotate(-15deg); }
    15% { transform: rotate(10deg); }
    20% { transform: rotate(-10deg); }
    25% { transform: rotate(5deg); }
    30% { transform: rotate(-5deg); }
    35% { transform: rotate(0); }
    100% { transform: rotate(0); }
}

@keyframes double-blink {
    0%, 49% { background-color: #ff0f0f; }
    50%, 100% { background-color: #cc0000; }
}

/* Animation classes */
.flash-warning {
    animation: flash 0.5s infinite;
    color: #ff0f0f;
}

.ringing {
    animation: ring 2s infinite;
    transform-origin: 50% 0;
}

.double-blink {
    animation: double-blink 1s infinite;
}

/* Media queries */
@media (max-width: 768px) {
    #billing-warning-banner {
        padding: 6px 8px;
    }
    
    .billing-contact {
        margin-top: 5px;
        margin-left: 0;
    }
}


#billing-warning-banner .fa-bell.ringing {
    animation: ring 2s infinite;
    transform-origin: 50% 0;
    display: inline-block; /* Ensure proper display */
}



/* Performance indicator colors */
.text-white {
    color: #777777;
}

.status-warning {
    color: #ffc107; /* Industrial yellow */
    font-weight: bold;
}

.status-critical {
    color: #dc3545; /* Dark red */
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}
