/* ========================================
   CONVERSION.CSS - Conversion pages page
   ======================================== */

.conversion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.full-width {
    grid-column: span 2;
}

.conversion-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.conversion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.3s;
}

.conversion-item:hover {
    transform: translateX(5px);
    background: #eff6ff;
}

.conversion-name {
    font-weight: 600;
    color: #1e293b;
}

.conversion-rate {
    font-size: 24px;
    font-weight: bold;
    color: #22c55e;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.performance-table th,
.performance-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.performance-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.performance-table tr:hover {
    background: #f8fafc;
}

.rate-badge {
    background: #22c55e;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

/* Chart Card */
.chart-card canvas {
    max-height: 300px;
    width: 100%;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .conversion-grid {
        gap: 20px;
    }
    
    .conversion-rate {
        font-size: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .conversion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .full-width {
        grid-column: span 1;
    }
    
    .conversion-item {
        padding: 12px;
    }
    
    .conversion-name {
        font-size: 14px;
    }
    
    .conversion-rate {
        font-size: 18px;
    }
    
    .performance-table th,
    .performance-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .chart-card canvas {
        max-height: 250px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .stats-card {
        padding: 15px;
    }
    
    .stats-card h3 {
        font-size: 16px;
    }
    
    .conversion-item {
        padding: 10px;
    }
    
    .conversion-name {
        font-size: 13px;
    }
    
    .conversion-rate {
        font-size: 16px;
    }
    
    .performance-table th,
    .performance-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .rate-badge {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .chart-card canvas {
        max-height: 200px;
    }
}

/* ========================================
   DARK MODE STYLES
   ======================================== */

body.dark-mode .conversion-item {
    background: #1e293b;
    color: #f1f5f9;
}

body.dark-mode .conversion-item:hover {
    background: #334155;
}

body.dark-mode .conversion-name {
    color: #f1f5f9;
}

body.dark-mode .performance-table th {
    background: #0f172a;
    color: #f1f5f9;
}

body.dark-mode .performance-table td {
    border-bottom-color: #334155;
    color: #94a3b8;
}

body.dark-mode .performance-table tr:hover {
    background: #1e293b;
}

body.dark-mode .performance-table tr:hover td {
    color: #f1f5f9;
}
/* Fix conversion items on small screens */
@media (max-width: 480px) {
    .conversion-item {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 8px;
    }
    
    .performance-table th,
    .performance-table td {
        padding: 8px;
        font-size: 11px;
    }
}