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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f1a;
    color: #e0e0e0;
}

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

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

.login-box {
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: #1e1e2e;
    border: 1px solid #2e2e3e;
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 16px;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #4a90e2;
    background: #25253a;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.login-btn:hover {
    transform: translateY(-2px);
}

.error-message {
    color: #e74c3c;
    margin-top: 15px;
    text-align: center;
}

/* Admin panel */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #1a1a2e;
    border-right: 1px solid #2a2a3e;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #2a2a3e;
}

.sidebar-header h2 {
    font-size: 20px;
}

.nav-menu {
    list-style: none;
    padding: 20px 0;
    flex: 1;
}

.nav-item {
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item:hover {
    background: #2a2a3e;
}

.nav-item.active {
    background: linear-gradient(90deg, #4a90e2, #357abd);
    border-left: 3px solid #fff;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #2a2a3e;
}

.logout-btn {
    width: 100%;
    padding: 10px;
    background: #e74c3c;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.main-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.refresh-btn {
    padding: 8px 16px;
    background: #2a2a3e;
    border: 1px solid #3a3a4e;
    border-radius: 8px;
    color: #e0e0e0;
    cursor: pointer;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: #1e1e2e;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #2e2e3e;
}

.stat-card h3 {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}

.stat-card span {
    font-size: 36px;
    font-weight: bold;
    color: #4a90e2;
}

.table-container {
    background: #1e1e2e;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid #2e2e3e;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #2e2e3e;
}

th {
    background: #26263a;
    font-weight: 600;
    color: #aaa;
}

.loading {
    text-align: center;
    color: #888;
    padding: 40px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.status-badge.active {
    background: #27ae60;
    color: white;
}

.status-badge.registered {
    background: #3498db;
    color: white;
}

.hangup-btn {
    padding: 4px 12px;
    background: #e74c3c;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 12px;
}

.uuid-cell {
    font-family: monospace;
    font-size: 12px;
}

.command-panel {
    background: #1e1e2e;
    border-radius: 12px;
    padding: 24px;
}

.quick-commands {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quick-cmd {
    padding: 8px 16px;
    background: #2a2a3e;
    border: 1px solid #3a3a4e;
    border-radius: 8px;
    color: #e0e0e0;
    cursor: pointer;
}

.command-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.command-input input {
    flex: 1;
    padding: 12px;
    background: #2a2a3e;
    border: 1px solid #3a3a4e;
    border-radius: 8px;
    color: #e0e0e0;
    font-family: monospace;
}

.command-input button {
    padding: 12px 24px;
    background: #4a90e2;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

#cmdOutput, .status-panel {
    background: #0a0a12;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
}

#cmdOutputText, #statusOutput {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}
