/* WhatsApp Bot Dashboard Styles */

:root {
    --wa-green: #25D366;
    --wa-dark-green: #128C7E;
    --wa-light-green: #DCF8C6;
}

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

/* Navbar */
.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

.navbar-brand i {
    font-size: 1.5rem;
}

/* Status Cards */
.status-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

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

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.card-header {
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-weight: 600;
    border-radius: 15px 15px 0 0 !important;
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

/* Status Dots */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-active {
    background-color: var(--wa-green);
    box-shadow: 0 0 8px var(--wa-green);
}

.status-inactive {
    background-color: #dc3545;
}

/* List Items */
.list-group-item {
    border-left: none;
    border-right: none;
    padding: 12px 15px;
}

.list-group-item:first-child {
    border-top: none;
}

/* Message Preview */
.message-preview {
    background: var(--wa-light-green);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 5px;
    font-size: 0.85rem;
}

/* QR Code */
.qr-container {
    padding: 20px;
    background: white;
    display: inline-block;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.qr-container img {
    max-width: 250px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-success {
    background-color: var(--wa-green);
    border-color: var(--wa-green);
}

.btn-success:hover {
    background-color: var(--wa-dark-green);
    border-color: var(--wa-dark-green);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 5px 10px;
}

/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-radius: 15px 15px 0 0;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--wa-green);
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}

/* Toast */
.toast {
    border-radius: 10px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .container-fluid {
        padding: 10px;
    }
    
    .status-card {
        margin-bottom: 10px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .btn-group-sm .btn {
        padding: 5px 8px;
    }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert animations */
.alert {
    border-radius: 10px;
    border: none;
}

/* Hover effects */
.list-group-item:hover {
    background-color: #f8f9fa;
}

.btn-group .btn:hover {
    z-index: 1;
}
