/* WestFax Enterprise Monitor Custom Styles */

:root {
    --primary-color: #b4232d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-bg: #f8f9fa;
}

body {
    background-color: var(--light-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header Styles */
.header-section {
    background: #b4232d;
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.header-section h1 {
    font-weight: 300;
    margin-bottom: 0.5rem;
}

/* Status Cards */
.status-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    border: none;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.status-card .card-header {
    background: transparent;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.status-indicator.operational {
    background-color: var(--success-color);
}

.status-indicator.degraded {
    background-color: var(--warning-color);
}

.status-indicator.down {
    background-color: var(--danger-color);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Response Time Display */
.response-time {
    font-size: 2rem;
    font-weight: 300;
    color: var(--dark-color);
}

.response-time small {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Server Status Boxes */
.server-status-box {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.server-status-box:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.server-status-box.up {
    border-left: 4px solid var(--success-color);
}

.server-status-box.down {
    border-left: 4px solid var(--danger-color);
}

.server-status-box .server-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-status-box .server-status {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.server-status-box .server-status.up {
    color: var(--success-color);
}

.server-status-box .server-status.down {
    color: var(--danger-color);
}

.server-status-box .server-ping {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Charts Container */
.chart-container {
    position: relative;
    height: 300px;
    margin-top: 1rem;
}

/* Maintenance Banner */
.maintenance-banner {
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    font-weight: 500;
}

.maintenance-banner.info {
    background-color: #cfe2ff;
    border: 1px solid #b6d4fe;
    color: #084298;
}

.maintenance-banner.warning {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    color: #664d03;
}

.maintenance-banner.danger {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

/* Login Form */
.login-container {
    max-width: 400px;
    margin: 5rem auto;
}

.login-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    padding: 2rem;
}

/* Status Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid #dee2e6;
}

.timeline-item.success::before {
    border-color: var(--success-color);
}

.timeline-item.warning::before {
    border-color: var(--warning-color);
}

.timeline-item.danger::before {
    border-color: var(--danger-color);
}

/* Admin Controls */
.admin-controls {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Tables */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Modal Styling */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,.1);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-section {
        padding: 1.5rem 0;
    }
    
    .header-section h1 {
        font-size: 1.75rem;
    }
    
    .status-card {
        margin-bottom: 1rem;
    }
    
    .chart-container {
        height: 250px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .status-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
} 