:root {
    --primary-dark: #050d1a;
    --primary-blue: #0f1a2e;
    --secondary-blue: #1a2d47;
    --accent-blue: #3a7fd4;
    --text-light: #e8eef5;
    --text-secondary: #a8b5c8;
    --border-color: #1f3a5a;
    --hover-color: #4a8fe2;
    --color-operational: #10b981;
    --color-degraded: #f59e0b;
    --color-major: #ef4444;
    --color-maintenance: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a1428 50%, var(--primary-blue) 100%);
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 800px 600px at 20% 0%, rgba(58, 127, 212, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 800px 600px at 80% 100%, rgba(58, 127, 212, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Header Styles */
header {
    background: linear-gradient(180deg, 
        rgba(5, 13, 26, 0.98) 0%, 
        rgba(15, 26, 46, 0.95) 100%);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0.5;
}

header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

header .container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 0.35rem;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: var(--text-light);
    text-shadow: 0 2px 12px rgba(58, 127, 212, 0.4);
}
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    margin: 0;
}

/* Service Grid */
.service-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.service-card {
    background: linear-gradient(135deg, 
        rgba(26, 45, 71, 0.6) 0%, 
        rgba(15, 26, 46, 0.4) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(58, 127, 212, 0.1) 0%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 12px;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent-blue);
    background: linear-gradient(135deg, 
        rgba(26, 45, 71, 0.8) 0%, 
        rgba(15, 26, 46, 0.6) 100%);
    box-shadow: 
        0 20px 60px rgba(58, 127, 212, 0.15),
        inset 0 1px 0 rgba(58, 127, 212, 0.1);
    transform: translateY(-4px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 1;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-name {
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
    backdrop-filter: blur(10px);
}

.status-operational {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #4caf50;
    border-color: rgba(16, 185, 129, 0.3);
}

.status-degraded {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #ffc107;
    border-color: rgba(245, 158, 11, 0.3);
}

.status-major_outage {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #f44336;
    border-color: rgba(239, 68, 68, 0.3);
}

.status-maintenance {
    background: linear-gradient(135deg, rgba(59, 130, 243, 0.1) 0%, rgba(59, 130, 243, 0.05) 100%);
    color: #2196f3;
    border-color: rgba(59, 130, 243, 0.3);
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.status-indicator {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.indicator-operational {
    background-color: var(--color-operational);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.8), inset 0 0 4px rgba(255, 255, 255, 0.3);
    animation: pulse-green 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.indicator-degraded {
    background-color: var(--color-degraded);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.indicator-major {
    background-color: var(--color-major);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.8);
    animation: pulse-red 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.indicator-maintenance {
    background-color: var(--color-maintenance);
    box-shadow: 0 0 12px rgba(59, 130, 243, 0.6);
}

@keyframes pulse-green {
    0%, 100% { 
        box-shadow: 0 0 16px rgba(16, 185, 129, 0.8), inset 0 0 4px rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 24px rgba(16, 185, 129, 1), inset 0 0 6px rgba(255, 255, 255, 0.5);
        transform: scale(1.1);
    }
}

@keyframes pulse-red {
    0%, 100% { 
        box-shadow: 0 0 16px rgba(239, 68, 68, 0.8);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 24px rgba(239, 68, 68, 1);
        transform: scale(1.1);
    }
}

/* Incidents Section */
.incidents-section {
    margin-top: 4rem;
}

.incidents-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.incident-card {
    background: linear-gradient(135deg, 
        rgba(26, 45, 71, 0.6) 0%, 
        rgba(15, 26, 46, 0.4) 100%);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--color-major);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.incident-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.incident-card:hover {
    border-color: var(--accent-blue);
    background: linear-gradient(135deg, 
        rgba(26, 45, 71, 0.8) 0%, 
        rgba(15, 26, 46, 0.6) 100%);
    box-shadow: 
        0 20px 60px rgba(58, 127, 212, 0.1),
        inset 0 1px 0 rgba(58, 127, 212, 0.1);
    transform: translateX(4px);
}

.incident-card:hover::before {
    opacity: 1;
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.incident-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
}

.severity-badge {
    padding: 0.35rem 0.95rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
    flex-shrink: 0;
}

.severity-minor {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #ffc107;
    border-color: rgba(245, 158, 11, 0.3);
}

.severity-major {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #f44336;
    border-color: rgba(239, 68, 68, 0.3);
}

.incident-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.status-history {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.history-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.update-item {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.update-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

.update-message {
    margin-top: 0.25rem;
    color: var(--text-light);
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

/* Forms & Inputs */
.login-container {
    max-width: 420px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: linear-gradient(135deg, 
        rgba(26, 45, 71, 0.6) 0%, 
        rgba(15, 26, 46, 0.4) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(58, 127, 212, 0.1);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
}

input[type="text"],
input[type="password"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 0.95rem 1.1rem;
    background: linear-gradient(135deg, 
        rgba(5, 13, 26, 0.8) 0%, 
        rgba(10, 20, 40, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 
        0 0 0 3px rgba(58, 127, 212, 0.15),
        inset 0 1px 0 rgba(58, 127, 212, 0.1);
    background: linear-gradient(135deg, 
        rgba(5, 13, 26, 0.95) 0%, 
        rgba(15, 26, 46, 0.95) 100%);
}

/* Buttons */
button {
    padding: 0.95rem 2rem;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--hover-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 100%;
    letter-spacing: 0.3px;
    box-shadow: 
        0 10px 30px rgba(58, 127, 212, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 40px rgba(58, 127, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

button:hover::before {
    width: 300px;
    height: 300px;
}

button:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, 
        rgba(26, 45, 71, 0.6) 0%, 
        rgba(15, 26, 46, 0.4) 100%);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 0 rgba(58, 127, 212, 0.1);
}

.btn-secondary:hover {
    border-color: var(--accent-blue);
    background: linear-gradient(135deg, 
        rgba(26, 45, 71, 0.8) 0%, 
        rgba(15, 26, 46, 0.6) 100%);
    box-shadow: 
        0 10px 30px rgba(58, 127, 212, 0.15),
        inset 0 1px 0 rgba(58, 127, 212, 0.1);
}

.btn-small {
    padding: 0.7rem 1.25rem;
    font-size: 0.85rem;
    width: auto;
    margin-right: 0.5rem;
    border-radius: 6px;
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-major) 0%, #dc2626 100%);
    box-shadow: 
        0 10px 30px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-danger:hover {
    box-shadow: 
        0 15px 40px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Alerts */
.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    padding: 1.1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    padding: 1.1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.info {
    background: linear-gradient(135deg, rgba(58, 127, 212, 0.15) 0%, rgba(58, 127, 212, 0.05) 100%);
    border: 1px solid rgba(58, 127, 212, 0.4);
    color: #93c5fd;
    padding: 1.1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
    padding: 1.1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(58, 127, 212, 0.2);
    border-top: 3px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .service-grid {
        gap: 1rem;
        grid-template-columns: 1fr;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    header {
        padding: 1.25rem 0;
        margin-bottom: 2rem;
    }
    
    .service-card,
    .incident-card {
        padding: 1.25rem;
    }
    
    .login-container {
        margin: 2rem auto;
        padding: 1.75rem;
    }
}
