/* Custom styles for WhatsApp Digest Admin Panel */

:root {
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    --telegram-blue: #0088cc;
    --danger-red: #dc3545;
    --warning-yellow: #ffc107;
}

/* Global styles */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.navbar-brand .fa-whatsapp {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Card enhancements */
.card {
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

/* Status badges */
.badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 20px;
}

.badge.fs-6 {
    font-size: 1rem !important;
    padding: 0.75rem 1rem;
}

/* WhatsApp specific styles */
.whatsapp-connected {
    color: var(--whatsapp-green) !important;
}

.whatsapp-disconnected {
    color: var(--danger-red) !important;
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    border-color: var(--whatsapp-green);
    color: white;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-dark);
    border-color: var(--whatsapp-dark);
    color: white;
}

.btn-telegram {
    background-color: var(--telegram-blue);
    border-color: var(--telegram-blue);
    color: white;
}

.btn-telegram:hover {
    background-color: #0077b5;
    border-color: #0077b5;
    color: white;
}

/* Avatar styles */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Dashboard specific styles */
.dashboard-stats .card {
    border: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
}

.dashboard-stats .card-body {
    padding: 2rem 1.5rem;
}

.dashboard-stats h4 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Quick actions */
.quick-action-btn {
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.quick-action-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Table enhancements */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
}

.table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-color: #e9ecef;
}

.table-hover tbody tr:hover {
    background-color: rgba(0,123,255,0.05);
}

/* User detail page */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-weight: bold;
    color: #6c757d;
}

/* QR Code container */
#qr-container {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e9ecef;
    border-radius: 12px;
    background-color: #f8f9fa;
}

#qr-container.has-qr {
    border-color: var(--whatsapp-green);
    background-color: #f0fff4;
}

/* Chat icons */
.chat-icon {
    width: 30px;
    text-align: center;
}

.chat-list-item {
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.chat-list-item:hover {
    background-color: #f8f9fa;
}

/* Status indicators */
.status-online {
    color: #28a745;
}

.status-offline {
    color: #dc3545;
}

.status-warning {
    color: #ffc107;
}

/* Loading animations */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Modal enhancements */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e9ecef;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
}

/* Form enhancements */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Alert enhancements */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-info {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.alert-success {
    background-color: #e8f5e8;
    color: #155724;
}

.alert-warning {
    background-color: #fff8e1;
    color: #856404;
}

.alert-danger {
    background-color: #ffebee;
    color: #721c24;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-stats h4 {
        font-size: 2rem;
    }

    .quick-action-btn {
        height: 80px;
    }

    .quick-action-btn i {
        font-size: 1.2rem;
    }

    .card-body {
        padding: 1rem;
    }

    .table td, .table th {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Button group improvements */
.btn-group .btn {
    border-radius: 6px;
    margin-right: 2px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Empty states */
.empty-state {
    padding: 3rem 2rem;
    text-align: center;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Success animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.3s ease;
}

/* System status indicator */
#system-status {
    font-size: 0.9rem;
}

#system-status .fas {
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}
