* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #0a1628 0%, #0d2137 30%, #0f4c5c 60%, #1a6b7c 100%);
    min-height: 100vh;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(30, 144, 175, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(15, 82, 105, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.wave {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='rgba(30,144,175,0.1)' d='M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z'/%3E%3C/svg%3E");
    background-size: 1200px 100px;
    animation: wave 15s linear infinite;
    z-index: 0;
}

.wave:nth-child(2) {
    bottom: 10px;
    opacity: 0.5;
    animation: wave 12s linear reverse infinite;
}

.wave:nth-child(3) {
    bottom: 20px;
    opacity: 0.3;
    animation: wave 18s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 40px 20px;
}

.logo {
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(30, 144, 175, 0.5);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h1 span {
    color: #5ec8e5;
    text-shadow: 0 0 20px rgba(94, 200, 229, 0.5);
}

header p {
    color: #7dd3e8;
    font-size: 1.1rem;
}

.status-card {
    background: rgba(13, 33, 55, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(94, 200, 229, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.status-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.running {
    background: #5ec8e5;
    box-shadow: 0 0 20px #5ec8e5, 0 0 40px rgba(94, 200, 229, 0.4);
}

.status-dot.stopped {
    background: #e74c3c;
    box-shadow: 0 0 20px #e74c3c;
}

.status-dot.starting, .status-dot.stopping, .status-dot.restarting {
    background: #f4d03f;
    box-shadow: 0 0 20px #f4d03f;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.status-text {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.password-section {
    margin-bottom: 20px;
}

.password-section label {
    display: block;
    margin-bottom: 8px;
    color: #7dd3e8;
    font-weight: 500;
}

.password-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid rgba(94, 200, 229, 0.3);
    background: rgba(0,20,40,0.5);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.password-input:focus {
    outline: none;
    border-color: #5ec8e5;
    box-shadow: 0 0 15px rgba(94, 200, 229, 0.3);
}

.password-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-start {
    background: linear-gradient(135deg, #5ec8e5, #3498db);
    color: #fff;
    box-shadow: 0 4px 15px rgba(94, 200, 229, 0.3);
}

.btn-start:hover:not(:disabled) {
    box-shadow: 0 6px 25px rgba(94, 200, 229, 0.5);
}

.btn-stop {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-stop:hover:not(:disabled) {
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
}

.btn-restart {
    background: linear-gradient(135deg, #f4d03f, #f39c12);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(244, 208, 63, 0.3);
}

.btn-restart:hover:not(:disabled) {
    box-shadow: 0 6px 25px rgba(244, 208, 63, 0.5);
}

.console-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #7dd3e8;
}

.console-header h3 {
    font-weight: 500;
}

.console {
    background: rgba(0, 15, 30, 0.8);
    border-radius: 12px;
    padding: 15px;
    height: 300px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    border: 1px solid rgba(94, 200, 229, 0.2);
}

.console::-webkit-scrollbar {
    width: 8px;
}

.console::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.console::-webkit-scrollbar-thumb {
    background: rgba(94, 200, 229, 0.3);
    border-radius: 4px;
}

.console::-webkit-scrollbar-thumb:hover {
    background: rgba(94, 200, 229, 0.5);
}

.console p {
    margin: 5px 0;
    color: #7dd3e8;
}

.console p.error {
    color: #e74c3c;
}

.console p.success {
    color: #5ec8e5;
}

.command-section {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.command-input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid rgba(94, 200, 229, 0.3);
    background: rgba(0,20,40,0.5);
    color: #fff;
    font-size: 1rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

.command-input:focus {
    outline: none;
    border-color: #5ec8e5;
    box-shadow: 0 0 15px rgba(94, 200, 229, 0.3);
}

.command-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.btn-send {
    padding: 12px 25px;
    background: linear-gradient(135deg, #5ec8e5, #3498db);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-send:hover {
    box-shadow: 0 5px 20px rgba(94, 200, 229, 0.4);
    transform: translateY(-2px);
}

.message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
    font-weight: 500;
}

.message.success {
    background: rgba(94, 200, 229, 0.2);
    border: 1px solid #5ec8e5;
    display: block;
}

.message.error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    display: block;
}

.icon {
    font-size: 1.2rem;
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: rgba(125, 211, 232, 0.6);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .controls {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 3rem;
    }

    .status-card {
        padding: 20px;
    }
}
