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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #25D366;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-stats {
    display: flex;
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 150px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.stat-card i {
    font-size: 2rem;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Add Session Form */
.add-session-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    align-items: center;
}

.input-group input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: #25D366;
}

.input-group button {
    padding: 12px 25px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.input-group button:active {
    transform: translateY(0);
}

.form-help {
    color: #666;
    font-size: 0.9rem;
    margin-left: 5px;
}

.section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Bot Grid */
.bot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.bot-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 25px;
    border-left: 5px solid #25D366;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.bot-card.connected {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
}

.bot-card.connecting {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
}

.bot-card.disconnected {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
}

.bot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.bot-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.bot-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

.bot-status.connected {
    background: #28a745;
    color: white;
}

.bot-status.connecting {
    background: #ffc107;
    color: #212529;
}

.bot-status.disconnected {
    background: #dc3545;
    color: white;
}

.bot-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bot-info-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.bot-info-label {
    color: #666;
}

.bot-info-value {
    font-weight: 500;
}

/* Logs */
.logs-container {
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

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

.btn-filter {
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    border-color: #25D366;
    color: #25D366;
}

.btn-filter.active {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

.btn-clear {
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-clear:hover {
    background: #c82333;
}

.logs-list {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 15px;
    background: #f8f9fa;
}

.log-entry {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

.log-entry.success {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.log-entry.error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.log-entry.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.log-entry.info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.log-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

.log-content {
    flex: 1;
}

.log-message {
    font-weight: 500;
    margin-bottom: 5px;
}

.log-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
}

.no-bots, .no-logs {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-bots i, .no-logs i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.notification.error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.notification.info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input,
    .input-group button {
        width: 100%;
    }
    
    .bot-grid {
        grid-template-columns: 1fr;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .bot-grid {
        grid-template-columns: 1fr;
    }
    
    .logs-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logs-controls {
        justify-content: center;
    }
}

/* Scrollbar */
.logs-list::-webkit-scrollbar {
    width: 8px;
}

.logs-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.logs-list::-webkit-scrollbar-thumb {
    background: #25D366;
    border-radius: 4px;
}

.logs-list::-webkit-scrollbar-thumb:hover {
    background: #128C7E;
}
