/**
 * Custom Styles
 * Bulk SMS Platform
 */

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.auth-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-header p {
    opacity: 0.9;
    margin-bottom: 0;
}

.auth-body {
    padding: 40px 30px;
}

/* Dashboard Stats */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-card.primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.stat-card.success {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.stat-card.warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.stat-card.info {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SMS Character Counter */
.sms-counter {
    font-size: 0.9rem;
    color: #6b7280;
}

.sms-counter.warning {
    color: #f59e0b;
}

.sms-counter.danger {
    color: #ef4444;
}

/* Recipient Tags */
.recipient-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.recipient-tag {
    background: #e5e7eb;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recipient-tag .remove {
    cursor: pointer;
    color: #ef4444;
}

.recipient-tag .remove:hover {
    color: #dc2626;
}

/* Contact Table */
.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

/* Price Calculator */
.price-calculator {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.price-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: #6366f1;
}

/* Message Preview */
.message-preview {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #6366f1;
}

.message-preview .sender {
    font-weight: 600;
    color: #6366f1;
    margin-bottom: 10px;
}

.message-preview .content {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Status Badges */
.badge {
    padding: 6px 12px;
    font-weight: 500;
}

/* Table Styles */
.table th {
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
}

/* Pagination */
.pagination {
    margin-top: 20px;
}

.page-link {
    color: #6366f1;
    border-radius: 8px;
    margin: 0 3px;
}

.page-link:hover {
    background: #6366f1;
    color: white;
}

.page-item.active .page-link {
    background: #6366f1;
    border-color: #6366f1;
}

/* Form Validation */
.is-invalid {
    border-color: #ef4444 !important;
}

.invalid-feedback {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #374151;
    margin-bottom: 10px;
}

.empty-state p {
    color: #6b7280;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-header {
        padding: 30px 20px;
    }

    .auth-body {
        padding: 30px 20px;
    }

    .stat-card {
        margin-bottom: 15px;
    }
}