* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.admin-container {
    display: flex;
    min-height: 100vh;
    background: #f5f5f5;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2c3e50 0%, #1a2634 100%);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.logo h2 {
    font-size: 1.8em;
    margin-bottom: 5px;
}

.logo p {
    font-size: 0.9em;
    opacity: 0.8;
}

.nav-menu {
    padding: 10px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: all 0.3s;
    gap: 10px;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-menu a.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.status-bot {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-indicator.conectado {
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
}

.status-indicator.desconectado {
    background: #f87171;
}

.status-indicator.aguardando_qr {
    background: #fbbf24;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 20px;
}

.header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
    color: #333;
    font-size: 1.5em;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.server-info {
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9em;
}

.btn-refresh {
    padding: 8px 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-refresh:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

/* Content Pages */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.stat-icon {
    font-size: 2.5em;
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-info h3 {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.stat-info p {
    color: #333;
    font-size: 1.8em;
    font-weight: bold;
}

/* QR Code */
.qr-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.qr-container {
    margin: 30px auto;
    width: 300px;
    height: 300px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-placeholder {
    color: #666;
    font-style: italic;
}

.qr-container img {
    max-width: 100%;
    max-height: 100%;
}

/* Forms */
.config-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.config-card h3 {
    margin-bottom: 20px;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-family: monospace;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.btn-warning {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* Numbers Grid */
.numbers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.numbers-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.numbers-card h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.number-list {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.number-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    margin-bottom: 5px;
    border-radius: 5px;
}

.number-item button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.number-item button:hover {
    background: #dc2626;
}

.add-number {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.add-number input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
}

.add-number button {
    padding: 10px 20px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.add-number button:hover {
    background: #059669;
}

/* Logs */
.logs-container {
    background: #1e1e2f;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    height: 500px;
    overflow-y: auto;
}

.log-entry {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9em;
}

.log-info { color: #60a5fa; }
.log-sucesso { color: #4ade80; }
.log-erro { color: #f87171; }
.log-aviso { color: #fbbf24; }
.log-qr { color: #c084fc; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .numbers-grid {
        grid-template-columns: 1fr;
    }
}