* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    fill: black;
    flex-shrink: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
    color: #333;
    padding: 20px;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 15px;
}

.last-update {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Service Card Styles */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-card.online {
    border-left-color: #22c55e;
}

.service-card.warning {
    border-left-color: #f59e0b;
}

.service-card.offline {
    border-left-color: #ef4444;
}

.service-card.unknown {
    border-left-color: #6b7280;
}

/* Service Header */
.service-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    min-height: auto;
}

.status-badge-container {
    flex-shrink: 0;
    min-width: fit-content;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-block;
}

.status-online {
    background-color: #dcfce7;
    color: #166534;
}

.status-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.status-offline {
    background-color: #fecaca;
    color: #991b1b;
}

.status-unknown {
    background-color: #f3f4f6;
    color: #374151;
}

/* Service Name Section */
.service-name-section {
    margin-bottom: 20px;
    flex: 1;
}

.service-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-name-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Service Details */
.service-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.detail-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.85rem;
    line-height: 1.2;
}

/* Summary Styles */
.summary {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.summary-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 25px;
}

.stat-item {
    padding: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-online { 
    color: #22c55e; 
}

.stat-warning { 
    color: #f59e0b; 
}

.stat-offline { 
    color: #ef4444; 
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* Refresh Button */
.refresh-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2563eb;
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.refresh-btn:hover {
    background: #1d4ed8;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.refresh-btn.spinning {
    animation: spin 1s linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    background: #fef2f2;
    color: #991b1b;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    border: 1px solid #fecaca;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .container-fluid {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .container-fluid {
        max-width: 1000px;
    }
}

@media (max-width: 992px) {
    .container-fluid {
        max-width: 900px;
    }
    
    .service-card {
        padding: 18px;
    }
    
    .service-name {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .header {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 16px;
    }
    
    .service-header {
        margin-bottom: 12px;
    }
    
    .service-name-section {
        margin-bottom: 16px;
    }
    
    .service-name {
        font-size: 0.95rem;
    }
    
    .status-badge {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    
    .detail-item {
        padding: 10px;
    }
    
    .detail-label {
        font-size: 0.65rem;
    }
    
    .detail-value {
        font-size: 0.8rem;
    }
    
    .summary {
        padding: 20px;
    }
    
    .summary-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .refresh-btn {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
        bottom: 25px;
        right: 25px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 15px;
    }
    
    .service-header {
        margin-bottom: 10px;
    }
    
    .service-name-section {
        margin-bottom: 15px;
    }
    
    .service-name {
        font-size: 0.9rem;
        gap: 8px;
    }
    
    svg {
        width: 18px;
        height: 18px;
    }
    
    .status-badge {
        padding: 4px 8px;
        font-size: 0.65rem;
    }
    
    .detail-item {
        padding: 8px;
    }
    
    .detail-label {
        font-size: 0.6rem;
    }
    
    .detail-value {
        font-size: 0.75rem;
    }
    
    .summary {
        padding: 18px 15px;
    }
    
    .summary-title {
        font-size: 1.1rem;
        margin-bottom: 18px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .refresh-btn {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .service-name {
        font-size: 0.85rem;
    }
    
    .status-badge {
        padding: 3px 6px;
        font-size: 0.6rem;
    }
    
    .detail-item {
        padding: 6px;
    }
    
    .detail-label {
        font-size: 0.55rem;
    }
    
    .detail-value {
        font-size: 0.7rem;
    }
} 