:root {
    --delft-blue: #2f3f64;
    --silver-lake-blue: #6290c3;
    --anti-flash-white: #eff1f3;
    --persian-red: #cc2936;
    --claret: #9c0d38;
    --success-green: #28a745;
    --warning-orange: #fd7e14;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: 
        linear-gradient(135deg, rgba(26, 35, 50, 0.75) 0%, rgba(47, 63, 100, 0.70) 100%),
        url('../images/tactical_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--delft-blue);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.logo .subtitle {
    font-size: 1.1rem;
    color: var(--silver-lake-blue);
    font-weight: 500;
}

.status-card {
    background: linear-gradient(135deg, var(--delft-blue) 0%, var(--silver-lake-blue) 100%);
    color: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(47, 63, 100, 0.3);
}

.server-online-card {
    background: linear-gradient(135deg, var(--success-green) 0%, #20c997 100%);
    color: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
    animation: fadeIn 0.5s ease;
}

.server-online-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.server-online-card p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.redirect-now-button {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--success-green);
    background: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.redirect-now-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.redirect-now-button:active {
    transform: translateY(0);
}

.status-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.vote-progress {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.vote-count {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.vote-count .current {
    color: #fff;
}

.vote-count .separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
}

.vote-count .required {
    color: rgba(255, 255, 255, 0.7);
}

.progress-label {
    text-align: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.timer-info {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
}

.timer-info strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.monitor-status {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.monitor-status small {
    font-family: 'Courier New', monospace;
}

.action-section {
    text-align: center;
}

.wake-button {
    width: 100%;
    padding: 18px 32px;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--persian-red) 0%, var(--claret) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(204, 41, 54, 0.4);
    position: relative;
    overflow: hidden;
}

.wake-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(204, 41, 54, 0.5);
}

.wake-button:active:not(:disabled) {
    transform: translateY(0);
}

.wake-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wake-button.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.message.success {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success-green);
    border: 2px solid var(--success-green);
}

.message.error {
    background: rgba(204, 41, 54, 0.15);
    color: var(--persian-red);
    border: 2px solid var(--persian-red);
}

.message.info {
    background: rgba(98, 144, 195, 0.15);
    color: var(--silver-lake-blue);
    border: 2px solid var(--silver-lake-blue);
}

.message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgba(47, 63, 100, 0.1);
}

.info-section h3 {
    color: var(--delft-blue);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.info-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.info-section ul {
    color: #666;
    line-height: 1.8;
    padding-left: 20px;
}

.info-section ul li {
    margin-bottom: 8px;
}

.footer {
    margin-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .container {
        padding: 25px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .vote-count {
        font-size: 2.5rem;
    }
    
    .wake-button {
        font-size: 1.1rem;
        padding: 16px 24px;
    }
}
