/**
 * Intake Database Styles
 * Land Direct USA - Internal System
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: #1a365d;
    color: white;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 5px;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-links a.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

/* Typography */
h1 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: #1a365d;
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #2d3748;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.text-muted {
    color: #718096;
}

.text-success {
    color: #38a169;
}

.text-error {
    color: #e53e3e;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #3182ce;
    color: white;
}

.btn-primary:hover {
    background: #2c5282;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

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

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card.stat-warning {
    border-left: 4px solid #ed8936;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
}

.stat-label {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Sections */
.section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

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

.table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.table tr:hover {
    background: #f7fafc;
}

.table-sm th,
.table-sm td {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.table-responsive {
    overflow-x: auto;
}

/* Pills */
.pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 3px;
}

.pill-gray { background: #e2e8f0; color: #4a5568; }
.pill-blue { background: #bee3f8; color: #2b6cb0; }
.pill-green { background: #c6f6d5; color: #276749; }
.pill-red { background: #fed7d7; color: #c53030; }
.pill-yellow { background: #fefcbf; color: #975a16; }

.status-pills,
.county-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

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

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert-warning {
    background: #fefcbf;
    color: #975a16;
    border: 1px solid #f6e05e;
}

.alert-success {
    background: #c6f6d5;
    color: #276749;
    border: 1px solid #9ae6b4;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

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

.login-header h1 {
    margin-bottom: 5px;
}

.login-header p {
    color: #718096;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #4a5568;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #3182ce;
}

/* Upload Zone */
.upload-zone {
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #3182ce;
    background: #ebf8ff;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.upload-content h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

/* Import Section */
.import-section {
    margin-bottom: 30px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
}

.info-card h4 {
    color: #2d3748;
    margin-bottom: 10px;
}

.info-card ul {
    list-style: none;
    color: #718096;
}

.info-card li {
    padding: 3px 0;
}

.info-card li::before {
    content: "•";
    color: #3182ce;
    margin-right: 8px;
}

/* File Info */
.file-info {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.file-stats {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.file-stats .stat {
    color: #718096;
}

.file-stats .stat strong {
    color: #2d3748;
    font-size: 1.2rem;
}

/* Field Tags */
.field-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.field-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: monospace;
}

.field-found {
    background: #c6f6d5;
    color: #276749;
}

.field-missing {
    background: #fed7d7;
    color: #c53030;
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Stats Inline */
.stats-inline {
    display: flex;
    gap: 30px;
}

.stats-inline span {
    color: #718096;
}

.stats-inline strong {
    color: #2d3748;
}

/* Progress Section */
.import-progress-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.import-progress-container h1 {
    margin-bottom: 10px;
}

.file-name {
    color: #718096;
    margin-bottom: 40px;
}

.progress-section {
    margin-bottom: 40px;
}

.progress-bar-container {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3182ce, #63b3ed);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-text {
    color: #718096;
}

.import-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-item .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.stat-item .stat-label {
    color: #718096;
    font-size: 0.85rem;
}

.import-complete,
.import-error {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #c6f6d5;
    color: #38a169;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 20px;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: #fed7d7;
    color: #e53e3e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 20px;
}

.import-complete h2 {
    color: #38a169;
}

.import-error h2 {
    color: #e53e3e;
}

.import-complete p,
.import-error p {
    color: #718096;
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    .import-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .file-stats {
        flex-direction: column;
        gap: 10px;
    }
}
