@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --glow-color-1: #00D1FF;
    --glow-color-2: #E4007C;
    --background-color: #0A0A14;
    --surface-color: rgba(26, 26, 42, 0.6);
    --text-color: #e0e0e0;
    --primary-color: #008080;
    --online-color: #28a745;
    --offline-color: #dc3545;
    --pending-color: #ffc107;
    --button-bg: var(--primary-color);
    --button-text: #fff;
}

.light-mode {
    --background-color: #f5f5f5;
    --surface-color: rgba(255, 255, 255, 0.6);
    --text-color: #000;
    --button-bg: var(--primary-color);
    --button-text: #fff;
}

.menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.menu-content {
    display: none;
    position: absolute;
    right: 0;
    background: var(--surface-color);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    min-width: 180px;
}

.menu-content a,
.menu-content button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    color: var(--text-color);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
}

.menu-content a:hover,
.menu-content button:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.menu.open .menu-content {
    display: block;
}

.menu-icon {
    cursor: pointer;
    font-size: 1.5em;
    color: var(--text-color);
}

.logo {
    position: fixed;
    top: 20px;
    left: 20px;
    font-weight: 700;
    font-size: 1.2em;
    z-index: 200;
}

.logo a {
    color: var(--text-color);
    text-decoration: none;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    position: relative;
    z-index: 1;
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
    max-width: 900px;
    width: 100%;
}

h1 {
    font-size: 3em;
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 0 0 10px var(--glow-color-1), 0 0 20px var(--glow-color-2);
    margin-bottom: 20px;
}

p {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #b0b0d0;
}

h2 {
    font-size: 1.8em;
    color: var(--text-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.service-link {
    background: linear-gradient(90deg, var(--glow-color-1), var(--glow-color-2));
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.4), 0 0 25px rgba(228, 0, 124, 0.4);
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 209, 255, 0.6), 0 0 40px rgba(228, 0, 124, 0.6);
}
#login-section {
    margin-top: 40px;
}

#login-section input {
    background-color: rgba(0,0,0,0.3);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1em;
    width: 70%;
    max-width: 300px;
    text-align: center;
}

#login-section button {
    background: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    box-shadow: 0 0 15px var(--primary-color);
}

#unlocked-controls {
    display: none;
    margin-top: 30px;
}

.service-control {
    background: rgba(0,0,0,0.2);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.action-button {
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button:hover {
    transform: scale(1.05);
}

.action-button.update-button {
    background: var(--button-bg);
    color: var(--button-text);
    box-shadow: 0 0 10px var(--button-bg);
}

.action-button.start {
    background-color: #28a745;
    box-shadow: 0 0 10px #28a745;
}

.action-button.stop {
    background-color: #dc3545;
    box-shadow: 0 0 10px #dc3545;
}

.action-button.restart {
    background-color: #ffc107;
    color: #111;
    box-shadow: 0 0 10px #ffc107;
}

.status-online {
    color: var(--online-color);
}

.status-offline {
    color: var(--offline-color);
}

.status-pending {
    color: var(--pending-color);
}

.indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.indicator.online {
    background-color: var(--online-color);
    box-shadow: 0 0 5px var(--online-color);
}

.indicator.offline {
    background-color: var(--offline-color);
    box-shadow: 0 0 5px var(--offline-color);
}

.indicator.pending {
    background-color: var(--pending-color);
    box-shadow: 0 0 5px var(--pending-color);
}

.server-address {
    font-size: 0.9em;
    opacity: 0.8;
}

.message {
    margin-top: 20px;
    font-weight: 600;
    min-height: 24px;
}

.message.success {
    color: #28a745;
}

.message.error {
    color: #dc3545;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding: 20px 15px;
        overflow-y: auto;
    }
    .container {
        padding: 30px 25px;
        margin-top: 20px;
    }
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.5em;
    }
    .service-link {
        padding: 12px 25px;
        font-size: 1em;
        width: 100%;
    }
    #login-section button {
        width: auto;
    }
}
