:root {
    --bg-color: #1a1a2e; /* Dark Blue/Purple */
    --primary-color: #0faddc; /* Bright Cyan */
    --secondary-color: #e94560; /* Accent Red/Pink */
    --text-color: #e0e0e0; /* Light Grey */
    --terminal-bg: #0f111a;
    --terminal-header: #2c2f3b;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto Mono', monospace;
}

body {
    margin: 0;
    padding: 20px;
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 20px 20px; /* Subtle grid pattern */
    animation: fadeIn 1s ease-out;
}

.maintenance-container {
    text-align: center;
    max-width: 700px;
    width: 100%;
    padding: 30px;
    background-color: rgba(26, 26, 46, 0.8); /* Slightly transparent */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px); /* Frosted glass effect */
    border: 1px solid rgba(15, 173, 220, 0.2);
}

.logo-container {
    margin-bottom: 20px;
}

/* Updated logo styles */
.maintenance-logo {
    width: 80px; /* Adjust width as needed */
    max-width: 100%; /* Prevent overflow on small screens */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Scale image nicely */
    animation: pulse 3s infinite ease-in-out; /* Keep pulse, remove rotate */
}

h1 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: slideInDown 0.8s ease-out;
}

.subtitle {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 20px;
    opacity: 0.9;
}

p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.terminal {
    background-color: var(--terminal-bg);
    border-radius: 8px;
    margin: 30px auto;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(15, 173, 220, 0.3);
    overflow: hidden;
    animation: slideInUp 0.8s ease-out 0.2s backwards; /* Delay slightly */
}

.terminal-header {
    background-color: var(--terminal-header);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    position: relative; /* For centering title */
}

.terminal-header span:not(.terminal-title) {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}
.terminal-header span:nth-child(1) { background-color: #ff5f56; } /* Red */
.terminal-header span:nth-child(2) { background-color: #ffbd2e; } /* Yellow */
.terminal-header span:nth-child(3) { background-color: #27c93f; } /* Green */

.terminal-title {
    color: #bbb;
    font-size: 0.9em;
    position: absolute; /* Center the title */
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
}

.terminal-body {
    padding: 15px;
    font-size: 0.9em;
    height: 150px; /* Fixed height */
    overflow-y: auto; /* Allow scrolling if needed */
    text-align: left;
    position: relative;
}

/* Custom scrollbar for terminal */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}
.terminal-body::-webkit-scrollbar-track {
    background: var(--terminal-bg);
}
.terminal-body::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
    border: 2px solid var(--terminal-bg);
}

#terminal-output {
    margin: 0;
    white-space: pre-wrap; /* Wrap long lines */
    word-break: break-all;
    color: #4CAF50; /* Greenish text */
}

#terminal-output span.info { color: var(--primary-color); }
#terminal-output span.warn { color: #ffbd2e; }
#terminal-output span.error { color: var(--secondary-color); }
#terminal-output span.dim { color: #888; }
#terminal-output span.success { color: #4CAF50; } /* Added explicit success style */


.cursor {
    display: inline-block;
    background-color: var(--text-color);
    width: 8px;
    height: 1.1em; /* Match line height */
    margin-left: 5px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

.status-info {
    font-style: italic;
    color: #aaa;
    margin-top: 25px;
}

/* Removed .cloudflare-ref rule */

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Removed rotateLogo keyframes */

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    .maintenance-container {
        padding: 20px;
    }
    h1 {
        font-size: 1.5em;
    }
    .subtitle {
        font-size: 1em;
    }
    .terminal {
        max-width: 100%;
    }
    .terminal-body {
        height: 120px;
        font-size: 0.8em;
    }
}
