/* Custom styles for SoloSell Email Broadcaster */

:root {
    --primary-color:#004f74;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

.bg-primary{
    background-color: var(--primary-color) !important;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: 600;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.quill-editor {
    min-height: 300px;
}

.quill-editor .ql-editor {
    min-height: 250px;
}

.email-preview {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    background-color: white;
    min-height: 200px;
}

.loading-spinner {
    display: none;
}

.loading-spinner.show {
    display: inline-block;
}

.alert {
    border: none;
    border-radius: 0.5rem;
}

.badge {
    font-size: 0.75rem;
}

/* Contact Cards for Mobile */
.contact-cards {
    display: none;
}

.contact-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.contact-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.contact-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f3f4;
}

.contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.contact-email {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    word-break: break-all;
}

.contact-email:hover {
    text-decoration: underline;
}

.contact-details {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.contact-detail-label {
    font-weight: 500;
    color: #6c757d;
    min-width: 80px;
    margin-right: 0.5rem;
}

.contact-detail-value {
    color: #495057;
    flex: 1;
}

.contact-phone {
    color: #28a745;
}

.contact-company {
    color: #6f42c1;
}

.contact-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contact-category {
    display: inline-flex;
    align-items: center;
}

.contact-status {
    display: inline-flex;
    align-items: center;
}

.contact-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: auto;
}

.contact-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.contact-actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Status and Category Badges */
.contact-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.contact-badge i {
    font-size: 0.7rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .table-responsive {
        display: none !important;
    }
    
    .contact-cards {
        display: block !important;
    }
    
    .contact-card {
        margin-bottom: 0.75rem;
        padding: 1rem;
    }
    
    .contact-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-name {
        font-size: 1rem;
    }
    
    .contact-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contact-date {
        margin-left: 0;
    }
    
    .contact-actions {
        justify-content: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .contact-card {
        padding: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-details {
        gap: 0.5rem;
    }
    
    .contact-detail-item {
        font-size: 0.8rem;
    }
    
    .contact-detail-label {
        min-width: 70px;
        font-size: 0.8rem;
    }
}

/* Animation for loading states */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
