/* Maya Reports - Main Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: #f5f5f5;
    line-height: 1.6;
}

/* Header Styles */
.header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.header .user-info {
    margin-top: 10px;
    color: #666;
}

.header .logout {
    float: right;
    margin-top: -40px;
}

.logout a {
    color: #007cba;
    text-decoration: none;
}

.back-link {
    margin-bottom: 10px;
}

.back-link a {
    color: #007cba;
    text-decoration: none;
}

/* Stats Grid */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #007cba;
}

.stat-label {
    color: #666;
    margin-top: 5px;
}

/* Content Sections */
.content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.leads-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Tables */
.leads-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

.leads-table th {
    background: #f8f9fa;
    font-weight: bold;
}

/* Status Classes */
.status-completed {
    color: #28a745;
    font-weight: bold;
}

.status-pending {
    color: #ffc107;
    font-weight: bold;
}

.status-failed {
    color: #dc3545;
    font-weight: bold;
}

/* Data Display */
.maya-data {
    font-size: 0.9em;
    color: #666;
}

.relationship-only {
    font-style: italic;
    color: #007cba;
}

/* Buttons */
.btn {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn:hover {
    background: #e5e7eb;
    color: #374151;
}

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

.btn-generating {
    background: #f59e0b !important;
}

.btn-success {
    background: #10b981 !important;
}

.btn-warning {
    background: #f59e0b !important;
    color: white !important;
    cursor: not-allowed;
}

.btn-error {
    background: #ef4444 !important;
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 4px;
}

/* Material Icons */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 14px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Code Display */
pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
}

/* Sections */
.section {
    margin-bottom: 30px;
}

.section h3 {
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 5px;
}

/* Interpretation Content */
.interpretation-content {
    margin-bottom: 30px;
}

.interpretation-text {
    margin-bottom: 30px;
    font-size: 16px;
}

.interpretation-meta {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    color: #6b7280;
}

.no-interpretation {
    text-align: center;
    color: #6b7280;
    padding: 40px;
}

/* Typography */
h1, h2, h3 {
    color: #374151;
}

h3 {
    margin-top: 0;
}

/* Login Form */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    color: #374151;
}

.form-group input {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.btn-primary {
    background: #007cba;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

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

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Error Messages */
.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #fecaca;
    margin-bottom: 20px;
}

.success-message {
    background: #f0fdf4;
    color: #16a34a;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #bbf7d0;
    margin-bottom: 20px;
}

/* Lead Detail Styles */
.lead-detail-header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lead-detail-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.8em;
}

.lead-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.9em;
}

.lead-email {
    font-weight: 500;
}

.lead-date {
    color: #888;
}

.lead-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    text-transform: uppercase;
}

/* Person Data Grid */
.person-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.person-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.person-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.person-card .material-icons {
    font-size: 20px;
    color: #007cba;
}

.person-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.detail-row .label {
    font-weight: 500;
    color: #555;
    min-width: 100px;
}

.detail-row .value {
    color: #333;
    text-align: right;
}

.relationship-card {
    border-left: 4px solid #007cba;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.empty-state .material-icons {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
}

/* Report Type Styling */
.report-type {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-type .material-icons {
    font-size: 18px;
    color: #007cba;
}

/* Status Badges */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.success {
    background: #d4edda;
    color: #155724;
}

.status-badge.error {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

/* Text Utilities */
.text-muted {
    color: #6b7280;
}

.text-decoration-none {
    text-decoration: none;
}

.text-primary {
    color: #007cba;
}

/* Button Improvements */
.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 15px;
    }
    
    .header .logout {
        float: none;
        margin-top: 10px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .leads-table {
        font-size: 14px;
    }
    
    .leads-table th,
    .leads-table td {
        padding: 8px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 2px;
    }
    
    .btn {
        width: 28px;
        height: 28px;
    }
    
    .person-data-grid {
        grid-template-columns: 1fr;
    }
    
    .lead-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-row {
        flex-direction: column;
        text-align: left;
    }
    
    .detail-row .value {
        text-align: left;
        margin-top: 2px;
    }
} 