/**
 * Calculator Leads Manager - Frontend Styles
 * Version: 1.0.0
 */

/* ============================================
   STATS CONTAINER & LAYOUT
   ============================================ */
   .clm-stats-container { 
    width: 100%; 
    max-width: 100%; 
    padding: 0;
    background: transparent; 
    margin: 0;
}

.clm-stats-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   CALCULATOR SELECTOR
   ============================================ */
.clm-calculator-selector { 
    margin-bottom: 25px; 
    padding: 25px; 
    background: #3c4f65;
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.clm-calculator-selector h3 { 
    margin-top: 0; 
    margin-bottom: 15px;
    color: white; 
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clm-calculator-dropdown { 
    width: 100%; 
    max-width: 600px; 
    min-height: 50px;
    padding: 14px 50px 14px 18px; 
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid #d1d5db; 
    border-radius: 6px; 
    background: white;
    cursor: pointer; 
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    color: #374151;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.clm-calculator-dropdown:hover { 
    border-color: #9ca3af;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.clm-calculator-dropdown:focus { 
    outline: none; 
    border-color: #3c4f65;
    box-shadow: 0 0 0 3px rgba(60, 79, 101, 0.1);
}

.clm-calculator-dropdown option {
    padding: 12px 16px;
    font-size: 15px;
    color: #374151;
    background: white;
    line-height: 1.5;
    font-weight: 500;
}

.clm-calculator-dropdown option:hover {
    background: #f9fafb;
}

.clm-calculator-dropdown option:checked {
    background: #3c4f65;
    color: white;
    font-weight: 600;
}

/* ============================================
   STATS HEADER
   ============================================ */
.clm-stats-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px; 
    flex-wrap: wrap; 
    gap: 15px; 
}

.clm-stats-header h3 { 
    margin: 0; 
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
}

.clm-stats-period { 
    color: #6b7280; 
    font-size: 14px; 
    background: #f3f4f6; 
    padding: 6px 14px; 
    border-radius: 6px;
    font-weight: 500;
}

/* ============================================
   STATISTICS GRID
   ============================================ */
.clm-stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px; 
    margin-bottom: 30px;
}

.clm-stat-box { 
    background: white; 
    padding: 24px; 
    border-radius: 8px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
    border-left: 4px solid #3c4f65; 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clm-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.clm-stat-box.blue { 
    border-left-color: #3c4f65; 
}

.clm-stat-box.green { 
    border-left-color: #10b981; 
}

.clm-stat-box.orange { 
    border-left-color: #f59e0b; 
}

.clm-stat-box.purple { 
    border-left-color: #8b5cf6; 
}

.clm-stat-number { 
    font-size: 32px; 
    font-weight: 700; 
    color: #3c4f65; 
    margin-bottom: 8px; 
    line-height: 1;
}

.clm-stat-box.blue .clm-stat-number { 
    color: #3c4f65; 
}

.clm-stat-box.green .clm-stat-number { 
    color: #10b981; 
}

.clm-stat-box.orange .clm-stat-number { 
    color: #f59e0b; 
}

.clm-stat-box.purple .clm-stat-number { 
    color: #8b5cf6; 
}

.clm-stat-label { 
    color: #6b7280; 
    font-size: 14px; 
    font-weight: 500; 
}

/* ============================================
   LEADS TABLE
   ============================================ */
.clm-leads-table { 
    width: 100%; 
    background: white; 
    border-collapse: collapse; 
    margin-top: 25px; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.clm-leads-table th { 
    background: #3c4f65; 
    color: white; 
    padding: 14px 16px; 
    text-align: left; 
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clm-leads-table td { 
    padding: 12px 16px; 
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 14px;
}

.clm-leads-table tr:hover { 
    background: #f9fafb; 
}

.clm-leads-table tr:last-child td { 
    border-bottom: none; 
}

.clm-leads-table a {
    color: #3c4f65;
    text-decoration: none;
    font-weight: 500;
}

.clm-leads-table a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* ============================================
   NO LEADS MESSAGE
   ============================================ */
.clm-no-leads { 
    text-align: center; 
    padding: 60px 20px; 
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-top: 25px;
}

.clm-no-leads-icon { 
    font-size: 64px; 
    margin-bottom: 20px; 
    opacity: 0.4; 
}

.clm-no-leads h4 {
    color: #374151;
    font-size: 20px;
    font-weight: 600;
}

.clm-no-leads p {
    color: #6b7280;
    font-size: 15px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large Screens (1400px+) */
@media (min-width: 1400px) {
    .clm-stats-inner { 
        padding: 30px 40px; 
    }
}

/* Medium Screens (1200px+) */
@media (min-width: 1200px) {
    .clm-stats-grid { 
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
        gap: 25px; 
    }
}

/* Mobile Screens (768px and below) */
@media (max-width: 768px) {
    .clm-stats-inner { 
        padding: 15px; 
    }
    
    .clm-calculator-selector { 
        padding: 20px; 
    }
    
    .clm-calculator-selector h3 { 
        font-size: 16px; 
    }
    
    .clm-calculator-dropdown { 
        max-width: 100%; 
        font-size: 15px;
        padding: 12px 45px 12px 15px;
        min-height: 45px;
    }
    
    .clm-calculator-dropdown option {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .clm-stats-header { 
        flex-direction: column; 
        align-items: flex-start; 
    }
    
    .clm-stats-header h3 { 
        font-size: 18px; 
    }
    
    .clm-stat-number { 
        font-size: 28px; 
    }
    
    .clm-stats-grid { 
        gap: 15px; 
    }
    
    .clm-leads-table { 
        font-size: 14px; 
    }
    
    .clm-leads-table th, 
    .clm-leads-table td { 
        padding: 8px; 
    }
}

