/* Lead Feedback System Public Styles */

.lfs-login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
}

.lfs-login-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.lfs-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.lfs-login-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.lfs-login-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.lfs-form-group {
    margin-bottom: 20px;
}

.lfs-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.lfs-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.lfs-form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.lfs-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.lfs-btn-primary {
    background: #0073aa;
    color: #fff;
}

.lfs-btn-primary:hover {
    background: #005a87;
}

.lfs-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#lfs-login-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

#lfs-login-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#lfs-login-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* User Dashboard Styles */
.lfs-user-dashboard {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.lfs-dashboard-header {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lfs-dashboard-header h1 {
    margin: 0;
    color: #333;
}

.lfs-dashboard-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.lfs-stat-item {
    font-size: 14px;
    color: #666;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.lfs-leads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.lfs-lead-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    transition: transform 0.2s ease;
}

.lfs-lead-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.lfs-lead-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.lfs-lead-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.lfs-lead-details {
    margin-bottom: 15px;
}

.lfs-lead-details p {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.lfs-lead-feedback {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.lfs-feedback-section {
    margin-bottom: 10px;
}

.lfs-feedback-section:last-child {
    margin-bottom: 0;
}

.lfs-feedback-section h4 {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.lfs-feedback-section p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.lfs-no-leads {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Responsive */
@media (max-width: 768px) {
    .lfs-dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .lfs-dashboard-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .lfs-leads-grid {
        grid-template-columns: 1fr;
    }
    
    .lfs-lead-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Admin Dashboard Styles */
.lfs-admin-dashboard {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.lfs-admin-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 4px 4px 0 0;
}

.lfs-tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.lfs-tab-btn.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.lfs-tab-btn:hover {
    color: #0073aa;
}

.lfs-tab-content {
    background: #fff;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lfs-tab-panel {
    display: none;
    padding: 20px;
}

.lfs-tab-panel.active {
    display: block;
}

.lfs-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.lfs-panel-header h2 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.lfs-data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 20px;
}

.lfs-data-table th,
.lfs-data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.lfs-data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.lfs-data-table td {
    color: #666;
    font-size: 14px;
}

.lfs-data-table tr:hover {
    background: #f8f9fa;
}

.lfs-btn-small {
    padding: 6px 12px;
    font-size: 12px;
    margin-left: 5px;
}

.lfs-btn-danger {
    background: #dc3545;
    color: white;
}

.lfs-btn-danger:hover {
    background: #c82333;
}

/* Modal Styles */
.lfs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.lfs-modal-content {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.lfs-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
}

.lfs-modal-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.lfs-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.lfs-modal-close:hover {
    background: #ddd;
    color: #333;
}

.lfs-modal form {
    padding: 20px;
}

.lfs-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.lfs-checkbox-group {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background: #f9f9f9;
}

.lfs-checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
}

.lfs-checkbox-item:last-child {
    margin-bottom: 0;
}

.lfs-checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.lfs-checkbox-item span {
    font-size: 14px;
    color: #333;
}

.lfs-report-placeholder {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Status badges for frontend */
.lfs-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
    white-space: nowrap;
}

.lfs-status-blow-out { background: #fef3c7; color: #92400e; }
.lfs-status-confirmed { background: #d1fae5; color: #065f46; }
.lfs-status-piac { background: #e0e7ff; color: #3730a3; }
.lfs-status-utc { background: #fce7f3; color: #be185d; }
.lfs-status-dem { background: #ecfdf5; color: #047857; }
.lfs-status-sold { background: #dcfce7; color: #166534; }
.lfs-status-no-dem { background: #fef2f2; color: #dc2626; }
.lfs-status-reappoint { background: #e0f2fe; color: #0369a1; }

/* Responsive adjustments for admin dashboard */
@media (max-width: 768px) {
    .lfs-admin-dashboard {
        padding: 10px;
    }
    
    .lfs-admin-tabs {
        flex-direction: column;
    }
    
    .lfs-tab-btn {
        text-align: left;
        padding: 12px 20px;
    }
    
    .lfs-panel-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .lfs-data-table {
        font-size: 12px;
    }
    
    .lfs-data-table th,
    .lfs-data-table td {
        padding: 8px 6px;
    }
    
    .lfs-modal {
        padding: 10px;
    }
    
    .lfs-modal-content {
        max-height: 95vh;
    }
    
    .lfs-modal-actions {
        flex-direction: column;
    }
}