/*
 * Call Center Management System - Main Stylesheet
 * This file contains custom styles that are not provided by Tailwind CSS.
 */

/* ============================================
   Base Styles
   ============================================ */
body {
    font-family: 'Inter', sans-serif;
}

/* ============================================
   Form Elements
   ============================================ */

/* Custom styles for multi-select dropdowns for better visibility */
select[multiple] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    padding: 0.5rem;
}

select[multiple]:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    border-color: #3b82f6;
}

/* ============================================
   Table Styles
   ============================================ */

/* Custom styling for tables */
#leads-table-tl th,
#leads-table-sc th {
    background-color: #f9fafb;
}

#leads-table-tl tr:nth-child(even),
#leads-table-sc tr:nth-child(even) {
    background-color: #f3f4f6;
}

#leads-table-tl td,
#leads-table-sc td {
    padding: 12px 24px;
    white-space: nowrap;
}

/* ============================================
   Dashboard Styles
   ============================================ */

.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
}

/* Custom scrollbar for tables */
.table-wrapper::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background-color: #a0aec0;
    border-radius: 3px;
}

.table-wrapper::-webkit-scrollbar-track {
    background-color: #edf2f7;
}

/* ============================================
   Loading Overlay
   ============================================ */

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
