/* SAVE THIS AS: public/style.css */
:root { --brand-navy: #04145C; --brand-blue: #377CFF; --brand-cyan: #3FD5FF; --brand-violet: #D02AFF; --gray-light: #f8f9fa; --gray-dark: #343a40; --border-color: #dee2e6; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; margin: 0; background-color: var(--gray-light); color: var(--gray-dark); display: flex; justify-content: center; padding: 20px; box-sizing: border-box; }
.app-container { background: #ffffff; padding: 30px 40px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); max-width: 95%; width: 1800px; min-width: 320px; }
h1 { text-align: center; color: var(--brand-navy); margin-bottom: 10px; font-weight: 600; }
h2 { color: #495057; margin-top: 25px; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; font-weight: 500; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.app-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; margin-bottom: 10px; border-bottom: 2px solid var(--border-color); }
.logo { max-height: 40px; }
#creditsRefresh { margin-left: 8px; }
body.login-page { background-color: var(--brand-navy); align-items: center; }
.login-container { background: white; padding: 40px; border-radius: 12px; text-align: center; max-width: 400px; width: 100%; box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.login-logo { max-height: 50px; margin-bottom: 20px; }
.login-title { color: var(--brand-navy); margin-top: 0; }
.login-container p { color: #6c757d; margin-bottom: 25px; }
.login-form input { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 1rem; margin-bottom: 15px; }
.login-form button { width: 100%; background-color: var(--brand-blue); color: white; border: none; padding: 12px; border-radius: 6px; font-size: 1.1rem; cursor: pointer; transition: background-color 0.2s; }
.login-form button:hover { background-color: #2066e3; }
#loginError { margin-top: 15px; }
.tutorial-section { background-color: #e7f3ff; border: 1px solid #cfe2ff; border-radius: 8px; padding: 20px; margin: 15px 0 30px 0; position: relative; }
.tutorial-section h3 { margin-top: 0; color: var(--brand-navy); }
.tutorial-section ol { padding-left: 20px; margin-bottom: 0; }
.tutorial-section li { margin-bottom: 10px; }
.tutorial-section li:last-child { margin-bottom: 0; }
.tutorial-section .close-btn { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 1.5rem; color: #999; cursor: pointer; line-height: 1; padding: 0; }
.input-section { margin-bottom: 30px; padding-bottom: 20px; }
textarea#urlsInput { width: 100%; box-sizing: border-box; padding: 12px; margin-bottom: 20px; border: 1px solid var(--border-color); border-radius: 6px; min-height: 120px; font-size: 1rem; resize: vertical; }
.controls-container { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 15px; margin-bottom: 20px; }
.control-group { display: flex; flex-direction: column; }
.control-group label { margin-bottom: 5px; font-size: 0.9em; color: #6c757d; }
select#fieldsSelect { padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 6px; background-color: #fff; font-size: 1rem; min-width: 200px; height: 45px; box-sizing: border-box; }
button#enrichButton { padding: 0 25px; height: 45px; line-height: 45px; background-color: var(--brand-blue); color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 1.05rem; font-weight: 500; transition: background-color 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
button#enrichButton:hover { background-color: #2066e3; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); }
button#enrichButton:disabled { background-color: #adb5bd; cursor: not-allowed; box-shadow: none; }
#loadingIndicator { margin-top: 15px; font-weight: bold; color: var(--brand-blue); text-align: center; padding: 10px; background-color: #e7f3ff; border-radius: 6px; border: 1px solid #cfe2ff; }
.spinner { border: 4px solid #f3f3f3; border-top: 4px solid var(--brand-blue); border-radius: 50%; width: 24px; height: 24px; animation: spin 1s linear infinite; margin: 0 auto;  }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.error-message { margin-top: 15px; color: #721c24; background-color: #f8d7da; border: 1px solid #f5c6cb; padding: 12px 15px; border-radius: 6px; }
.credits-container { display: flex; align-items: center; gap: 8px; }
.credits-box { background-color: #e7f3ff; border: 1px solid #cfe2ff; color: #04145C; padding: 6px 10px; border-radius: 8px; font-weight: 600; min-width: 160px; text-align: center; }
.credits-box.loading { background-color: #f0f7ff; color: #495057; }
.credits-box.error { background-color: #f8d7da; border-color: #f5c6cb; color: #721c24; }
.credits-count { font-size: 1rem; }
.credits-refresh { background-color: #e9ecef; color: #333; border: 1px solid var(--border-color); border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 0.9rem; }
.credits-refresh:hover { background-color: #dee2e6; }
.credits-pulse { animation: creditsPulse 800ms ease-out; }
@keyframes creditsPulse { 0% { box-shadow: 0 0 0 0 rgba(55,124,255,0.7); } 100% { box-shadow: 0 0 0 10px rgba(55,124,255,0); } }
.results-section { margin-top: 30px; }
.results-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; }
input#searchInput { padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 1rem; flex-grow: 1; min-width: 200px; height: 40px; box-sizing: border-box; }
button#exportDataButton, button#copyJsonButton { padding: 0 20px; height: 40px; line-height: 40px; background-color: #198754; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 1rem; font-weight: 500; transition: background-color 0.2s ease; margin-left: 10px; }
button#exportDataButton:hover, button#copyJsonButton:hover { background-color: #157347; }
button#exportDataButton:disabled, button#copyJsonButton:disabled { background-color: #adb5bd; cursor: not-allowed; }
.table-container { max-height: 70vh; overflow: auto; border: 1px solid var(--border-color); border-radius: 8px; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th, td { border: 1px solid #e9ecef; padding: 10px 12px; text-align: left; vertical-align: top; word-break: break-word; font-size: 0.9rem; }
table th:nth-child(1), table td:nth-child(1) { width: 3%; }
table th:nth-child(2), table td:nth-child(2) { width: 8%; }
table th:nth-child(3), table td:nth-child(3) { width: 10%; }
table th:nth-child(4), table td:nth-child(4) { width: 4%; text-align: center; }
table th:nth-child(5), table td:nth-child(5) { width: 10%; }
table th:nth-child(6), table td:nth-child(6) { width: 12%; }
table th:nth-child(7), table td:nth-child(7) { width: 8%; }
table th:nth-child(8), table td:nth-child(8) { width: 15%; }
table th:nth-child(9), table td:nth-child(9) { width: 15%; }
table th:nth-child(10), table td:nth-child(10) { width: 10%; }
table th:nth-child(11), table td:nth-child(11) { width: 12%; }
table th:nth-child(12), table td:nth-child(12) { width: 15%; }
table th:nth-child(13), table td:nth-child(13) { width: 10%; }
th { background-color: #f0f0f0; position: sticky; top: 0; z-index: 10; font-weight: 600; color: #495057; }
tbody tr:nth-child(even) { background-color: var(--gray-light); }
tbody tr:hover { background-color: #e9ecef; }
.status-credits-cell { display: flex; align-items: center; gap: 5px; }
.status-indicator { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.credits-display { font-size: 0.8em; color: #6c757d; } 
.status-color-success { background-color: #198754; } 
.status-color-processing-timeout { background-color: #fd7e14; } 
.status-color-not-found-by-api, .status-color-not-found { background-color: #ffc107; } 
.status-color-api-error, .status-color-client-error, .status-color-server-error, .status-color-internal-server-error, .status-color-rate-limited { background-color: #dc3545; } 
.status-color-unknown { background-color: #6c757d; } 
.read-more-less, .show-full-history { background: none; border: none; color: var(--brand-blue); cursor: pointer; padding: 2px 0; font-size: 0.85em; margin-left: 5px; text-decoration: underline; }
.read-more-less:hover, .show-full-history:hover { color: #0056b3; }
.full-text, .full-history { display: none; }
.contacts-cell .email-entry, .contacts-cell .phone-entry { margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px dashed #eee; line-height: 1.4; }
.contacts-cell .email-entry:last-child, .contacts-cell .phone-entry:last-child { margin-bottom: 0; border-bottom: none; }
.status-tag { display: inline-block; padding: 2px 6px; font-size: 0.8em; border-radius: 4px; color: white; margin-left: 8px; vertical-align: middle; }
.email-status-deliverable { background-color: #198754; }
.email-status-undeliverable { background-color: #dc3545; }
.email-status-risky { background-color: #ffc107; color: #333; }
.email-status-unknown, .email-status-na { background-color: #6c757d; }
td.photo-cell img.profile-photo { max-width: 50px; max-height: 50px; border-radius: 50%; display: block; margin: 0 auto; }
.job-entry { padding-bottom: 5px; margin-bottom: 5px; border-bottom: 1px dotted #eee; }
.job-entry:last-child { border-bottom: none; margin-bottom: 0; }
.show-full-history { display: block; margin-top: 8px; font-size: 0.85em; background-color: #e9ecef; border: 1px solid var(--border-color); padding: 3px 8px; border-radius: 4px; cursor: pointer; }
.show-full-history:hover { background-color: #dee2e6; }
@media (max-width: 1800px) { .app-container { width: 98%; } th, td { font-size: 0.85rem; padding: 8px 10px; } .table-container { overflow-x: auto; } table { min-width: 1600px; } }
@media (max-width: 1400px) { table { min-width: 1300px; } }
@media (max-width: 768px) { .app-container { padding: 20px 15px; } .controls-container { flex-direction: column; align-items: stretch; } select#fieldsSelect, button#enrichButton { width: 100%; min-width: 0; } .results-controls { flex-direction: column; align-items: stretch; } input#searchInput, button#exportDataButton, button#copyJsonButton { width: 100%; box-sizing: border-box; margin-left: 0; margin-top: 10px; } th, td { padding: 6px 8px; font-size: 0.75em; } table { min-width: 900px; } .app-header { flex-direction: column; gap: 15px; } }
@media (max-width: 480px) { h1 { font-size: 1.5rem; margin-bottom: 15px; } h2 { font-size: 1.2rem; } button { font-size: 0.95rem; height: 40px; line-height: 40px; } select#fieldsSelect { height: 40px; font-size: 0.95rem; } textarea#urlsInput { min-height: 100px; font-size: 0.95rem; } table { min-width: 700px; } }
