/* ========================================
   Moduł: Leads - Statystyki kosztów AI
   ======================================== */

/* Szczegóły leada - informacje o kosztach */
.cost-info {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #b3d9ff;
}

.cost-main {
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d0e8ff;
}

.cost-label {
    font-weight: 600;
    color: #333;
}

.cost-value {
    font-size: 18px;
    font-weight: 700;
    color: #0066cc;
    margin: 0 5px;
}

.token-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.token-item {
    font-size: 13px;
    color: #555;
    background: white;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

/* Dashboard kosztów - lista leadów */
.cost-dashboard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cost-dashboard-header h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
}

.cost-dashboard-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.cost-stat-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.cost-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.cost-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #667eea;
    margin: 5px 0;
}

.cost-stat-sublabel {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

/* Badge kosztu w tabeli */
.cost-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* Card - szczegóły leada */
.card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
}

.card-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Email display */
.email-subject {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.email-body {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Error log */
.error-log {
    background: #fff3cd;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ffc107;
    color: #856404;
    font-size: 13px;
}
