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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
    padding: 20px;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 10px;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
}

.btn-logout {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: #ff4757;
}

.subtitle {
    color: #8892b0;
    font-size: 1.1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card.critical { border-left: 4px solid #ff4757; }
.stat-card.warning { border-left: 4px solid #ffa502; }
.stat-card.ok { border-left: 4px solid #2ed573; }
.stat-card.total { border-left: 4px solid #5352ed; }

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
}

.stat-label {
    color: #8892b0;
    font-size: 0.9rem;
}

.actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #5352ed;
    color: white;
}

.btn-primary:hover {
    background: #4344d4;
}

.btn-secondary {
    background: #ffa502;
    color: #1a1a2e;
}

.btn-secondary:hover {
    background: #e69500;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #5352ed;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.alert-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-message.success {
    background: rgba(46, 213, 115, 0.2);
    border: 1px solid #2ed573;
}

.alert-message.error {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid #ff4757;
}

.table-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: rgba(0, 0, 0, 0.3);
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #8892b0;
}

td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.text-center {
    text-align: center;
    color: #8892b0;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.critical {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.status-badge.warning {
    background: rgba(255, 165, 2, 0.2);
    color: #ffa502;
}

.status-badge.ok {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
}

.dte-type {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}