/* WhatsApp Automation Dashboard Styles */

body {
    background-color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Stat Cards */
.stat-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .card-body {
    padding: 1.25rem;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Status Badges */
.badge-draft { background-color: #6c757d; }
.badge-queued { background-color: #0dcaf0; color: #000; }
.badge-running { background-color: #198754; }
.badge-paused { background-color: #ffc107; color: #000; }
.badge-completed { background-color: #0d6efd; }
.badge-cancelled { background-color: #dc3545; }
.badge-failed { background-color: #dc3545; }
.badge-pending { background-color: #ffc107; color: #000; }
.badge-sending { background-color: #0dcaf0; color: #000; }
.badge-sent { background-color: #198754; }

/* Campaign Progress */
.campaign-progress .progress {
    height: 8px;
    border-radius: 4px;
}

/* Table Styles */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6c757d;
    border-bottom-width: 1px;
}

.table td {
    vertical-align: middle;
}

/* Action Buttons */
.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.login-card .card-body {
    padding: 2.5rem;
}

/* Search and Filter Bar */
.filter-bar {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Campaign Detail Live Log */
.live-log {
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.85rem;
}

.live-log .log-entry {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

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

.live-log .log-sent {
    color: #198754;
}

.live-log .log-failed {
    color: #dc3545;
}

.live-log .log-sending {
    color: #0dcaf0;
}

/* File Upload Area */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.upload-area:hover {
    border-color: #198754;
}

.upload-area.dragover {
    border-color: #198754;
    background-color: #f0fff4;
}

/* Bot Status Indicator */
.bot-online { background-color: #198754 !important; }
.bot-offline { background-color: #dc3545 !important; }
.bot-sending { background-color: #0dcaf0 !important; color: #000 !important; }

/* Pagination */
.pagination .page-link {
    color: #198754;
}

.pagination .page-item.active .page-link {
    background-color: #198754;
    border-color: #198754;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-card .stat-value {
        font-size: 1.25rem;
    }

    .container-fluid {
        padding: 10px !important;
    }
}
