/* ========================================
   Telegram Bot Hosting Platform - Dark Theme
   Mobile-First | Clean | Modern
======================================== */

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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0f0f1a;
    color: #e0e0ff;
    line-height: 1.6;
    padding: 1rem;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #2a2a3a;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #6e6eff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

header p {
    color: #a0a0cc;
    font-size: 0.95rem;
}

/* Cards */
.card {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a2a3a;
}

.card h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #00d4ff;
    font-weight: 600;
}

/* Form */
.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #c0c0ff;
    font-weight: 500;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid #3a3a50;
    background: #0f0f1a;
    color: #e0e0ff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #6e6eff;
    box-shadow: 0 0 0 3px rgba(110, 110, 255, 0.2);
}

textarea {
    min-height: 180px;
    resize: vertical;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    background: #2a2a3a;
    border: none;
    border-radius: 10px;
    color: #a0a0cc;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.tab-btn.active,
.tab-btn:hover {
    background: #6e6eff;
    color: white;
    transform: translateY(-2px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #6e6eff, #00d4ff);
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(110, 110, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(110, 110, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Bot List */
.bot-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bot-item {
    background: #16213e;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    border: 1px solid #2a3a5a;
}

.bot-item strong {
    color: #e0e0ff;
    font-size: 1.05rem;
}

.status {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status.running {
    color: #00ff88;
}

.status.stopped {
    color: #ff6b6b;
}

.actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.actions button,
.actions a {
    padding: 0.5rem 0.9rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 70px;
    text-align: center;
}

.btn-start {
    background: #00d4aa;
    color: white;
}

.btn-stop {
    background: #ff6b6b;
    color: white;
}

.btn-delete {
    background: #ff4757;
    color: white;
}

.btn-log {
    background: #6e6eff;
    color: white;
}

.actions button:hover,
.actions a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Empty State */
.empty {
    text-align: center;
    color: #7777aa;
    font-style: italic;
    padding: 2rem 0;
}

/* Responsive */
@media (min-width: 600px) {
    header h1 {
        font-size: 2.2rem;
    }
    
    .card {
        padding: 2rem;
    }
    
    .btn-primary {
        width: auto;
        padding: 0.9rem 2rem;
    }
    
    .bot-item {
        flex-wrap: nowrap;
    }
}

@media (min-width: 768px) {
    .tabs {
        flex-wrap: nowrap;
    }
    
    .input-group input,
    .input-group textarea {
        font-size: 1rem;
    }
}