/* 3CX Dashboard Styles */
.threecx-dashboard {
    background-color: #f3f4f6;
    min-height: 100vh;
    padding: 2rem;
}

.threecx-dashboard h1 {
    color: #1e3a5f;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: left;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
}

/* Date Filter Card */
.date-filter-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: none;
    margin-bottom: 2rem;
    overflow: hidden;
}

.date-filter-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 1rem 1.5rem;
}

.date-filter-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.date-filter-card .card-body {
    padding: 1.5rem;
    background: white;
}

/* Form Styling */
.date-filter-form .form-label {
    color: #1e3a5f;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.date-filter-form input[type="date"] {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.date-filter-form input[type="date"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.filter-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f99 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Statistics Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.stat-card .card-title {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.stat-card .stat-number {
    color: #1f2937;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.stat-card .stat-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.stat-card .stat-icon {
    position: absolute;
    bottom: -15px;
    right: -15px;
    font-size: 5rem;
    opacity: 0.1;
    color: #3498db;
}

/* Call Activity Chart */
.chart-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: none;
}

.chart-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 1.5rem;
}

.chart-card .card-header h5 {
    font-weight: 600;
    color: #1e3a5f;
    margin: 0;
}

.chart-card .card-body {
    padding: 0;
    height: 300px;
}

/* Table Card */
.table-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: none;
}

.table-card .card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.table-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    color: #1e3a5f;
}

.table-card .table {
    margin-bottom: 0;
}

.table-card .table th {
    border: none;
    background-color: #f9fafb;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table-card .table tbody td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
}

.table-card .table tbody tr:hover {
    background-color: #f8fafc;
}

.table-card .table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
}

/* Action Buttons */
.call-back-btn {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border: none;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.call-back-btn:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Empty State */
.empty-state {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2rem 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .threecx-dashboard {
        padding: 1rem;
    }
    
    .stats-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .date-filter-form .row {
        flex-direction: column;
    }
    
    .date-filter-form .col-md-4 {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .stat-card .stat-number {
        font-size: 2rem;
    }
}