/* Custom styles for Twilio Bulk SMS Application */

body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.progress {
    border-radius: 0.375rem;
}

.alert {
    border: none;
    border-radius: 0.5rem;
}

.btn {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.badge {
    font-size: 0.75em;
}

/* Login form styling */
.card-header.bg-primary {
    background-color: #0d6efd !important;
}

/* Dashboard cards */
.card.bg-primary,
.card.bg-success,
.card.bg-danger {
    border: none;
}

.card.bg-primary .card-body,
.card.bg-success .card-body,
.card.bg-danger .card-body {
    padding: 1.5rem;
}

/* File upload area */
.form-control[type="file"] {
    border: 2px dashed #dee2e6;
    background-color: #f8f9fa;
    padding: 0.75rem;
}

.form-control[type="file"]:focus {
    border-color: #86b7fe;
    background-color: #fff;
}

/* Message textarea */
#message_body {
    resize: vertical;
    min-height: 120px;
}

/* Loading states */
.btn:disabled {
    opacity: 0.65;
}

/* Progress bar customization */
.progress-bar {
    transition: width 0.3s ease;
}

/* Campaign status page */
.campaign-details .table td:first-child {
    width: 30%;
    font-weight: 600;
}

/* Responsive tables */
.table-responsive {
    border-radius: 0.5rem;
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* Animation for alerts */
.alert {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #212529;
        color: #fff;
    }
    
    .card {
        background-color: #343a40;
        border-color: #495057;
    }
    
    .card-header {
        background-color: #495057;
        border-bottom-color: #6c757d;
    }
    
    .table {
        color: #fff;
    }
    
    .table th {
        background-color: #495057;
        color: #fff;
    }
}
