* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
    min-height: 100vh;
}

/* Login */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: #16213e;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 32px;
    color: #e94560;
    font-weight: 700;
    letter-spacing: 3px;
}

.login-header p {
    color: #888;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #aaa;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #e94560;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: #e94560;
    color: #fff;
}

.btn-primary:hover {
    background: #c73650;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    background: #2a2a4a;
    color: #ccc;
    border: 1px solid #444;
}

.btn-sm:hover {
    background: #3a3a5a;
}

.btn-danger {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

.btn-danger:hover {
    background: #a93226;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: rgba(233,69,96,0.15);
    color: #e94560;
    border: 1px solid rgba(233,69,96,0.3);
}

/* App layout */
.app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #16213e;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #2a2a4a;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid #2a2a4a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    color: #e94560;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
}

.sidebar-nav {
    flex: 1;
    padding: 15px 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #aaa;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s;
    font-size: 15px;
}

.nav-item:hover {
    background: #1a1a2e;
    color: #fff;
}

.nav-item.active {
    background: #e94560;
    color: #fff;
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 15px 10px;
    border-top: 1px solid #2a2a4a;
}

.sidebar-footer .logout:hover {
    background: rgba(233,69,96,0.15);
    color: #e94560;
}

/* Content */
.content {
    flex: 1;
    margin-left: 250px;
}

.content-header {
    padding: 20px 30px;
    border-bottom: 1px solid #2a2a4a;
    background: #16213e;
}

.content-header h1 {
    font-size: 22px;
    font-weight: 600;
}

.content-body {
    padding: 25px 30px;
}

/* Logs */
.logs-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.auto-refresh {
    margin-left: auto;
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.logs-output {
    background: #0d1117;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.log-line {
    padding: 2px 0;
    border-bottom: 1px solid #1a1a2e;
    word-break: break-all;
}

.log-line:last-child {
    border-bottom: none;
}

/* Settings */
.settings-container {
    max-width: 600px;
}

.settings-card {
    background: #16213e;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #2a2a4a;
}

.settings-card h3 {
    margin-bottom: 15px;
}

.bot-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 16px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666;
}

.status-dot.online {
    background: #27ae60;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.5);
}

.status-dot.offline {
    background: #e74c3c;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.5);
}

.bot-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-success {
    background: #27ae60;
    color: #fff;
}

.btn-success:hover {
    background: #219a52;
}

.btn-warning {
    background: #f39c12;
    color: #fff;
}

.btn-warning:hover {
    background: #d68910;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.text-muted {
    color: #666;
}

.text-error {
    color: #e94560;
}

/* Mobile header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #16213e;
    border-bottom: 1px solid #2a2a4a;
    align-items: center;
    padding: 0 15px;
    gap: 15px;
    z-index: 20;
}

.mobile-header h2 {
    color: #e94560;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
}

.burger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: #aaa;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.sidebar-close:hover {
    color: #e94560;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9;
}

.sidebar-overlay.open {
    display: block;
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 30;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .content {
        margin-left: 0;
        padding-top: 56px;
    }

    .content-header {
        padding: 15px 15px;
    }

    .content-header h1 {
        font-size: 18px;
    }

    .content-body {
        padding: 15px;
    }

    .logs-toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .auto-refresh {
        margin-left: 0;
        width: 100%;
    }

    .logs-output {
        max-height: 60vh;
        padding: 10px;
        font-size: 11px;
    }

    .settings-card {
        padding: 20px 15px;
    }

    .login-card {
        padding: 30px 20px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}
