/* =================================================================
   BigRig DQfiling - Complete Stylesheet (styles.css)
   ================================================================ */

/* Base Resets & Font Smoothing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #020617; /* slate-950 */
    color: #f1f5f9; /* slate-100 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Locks content to the top of the viewport */
    align-items: center;        /* Centers your max-w app container nicely */
    -webkit-font-smoothing: antialiased;
}

/* Header Styles */
.app-header {
    background-color: #0f172a; /* slate-900 */
    border-bottom: 1px solid #1e293b; /* slate-800 */
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
    border-radius: 1rem; /* Matches your modal and card radius */
    margin: 1rem;        /* Adds a clean margin around the rounded header */
    overflow: hidden;
}

.header-container {
    max-width: 28rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-badge {
    background-color: #f59e0b; /* amber-500 */
    color: #020617;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.brand-title {
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.025em;
    color: #f1f5f9;
}

.brand-highlight {
    color: #f59e0b;
}

.audit-badge {
    font-size: 0.75rem;
    background-color: #1e293b;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    color: #fbbf24;
    font-weight: 500;
    border: 1px solid #334155;
}

/* Main Container */
.main-container {
    max-width: 28rem;
    margin: 0 auto;
    padding: 1rem;
    width: 100%;
    flex-grow: 1;
    padding-bottom: 6rem;
}

/* Progress Card */
.progress-card {
    background: linear-gradient(to bottom right, #0f172a, rgba(15, 23, 42, 0.8));
    border: 1px solid #1e293b;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: .8rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-counter {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fbbf24;
    background-color: rgba(245, 158, 11, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.meter-track {
    width: 100%;
    background-color: #1e293b;
    border-radius: 9999px;
    height: 0.625rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.meter-fill {
    background: linear-gradient(to right, #d97706, #fbbf24);
    height: 0.625rem;
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.progress-desc {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Pods List & Cards */
.pods-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Export Button */
.export-container {
    margin-top: 1.5rem;
}

.export-btn {
    width: 100%;
    background-color: #f59e0b;
    color: #020617;
    font-weight: 700;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.1);
}

.export-btn:hover {
    background-color: #fbbf24;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(4px);
    z-index: 50;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay.hidden {
    display: none;
}

.modal-card {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    width: 100%;
    max-width: 32rem;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-title-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f1f5f9;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: #f1f5f9;
}

.close-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.modal-desc-text {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-dropzone {
    border: 2px dashed #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    background-color: rgba(2, 6, 23, 0.5);
    transition: border-color 0.2s;
}

.upload-dropzone:hover {
    border-color: rgba(245, 158, 11, 0.5);
}

.hidden-file-input {
    display: none;
}

.dropzone-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #f59e0b;
    margin-bottom: 0.5rem;
}

.dropzone-text-primary {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
}

.dropzone-text-secondary {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.file-name-text {
    font-size: 0.75rem;
    color: #fbbf24;
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
}

.file-name-text.hidden {
    display: none;
}

.modal-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.modal-btn-cancel, .modal-btn-save {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-btn-cancel {
    background-color: #1e293b;
    color: #cbd5e1;
}

.modal-btn-cancel:hover {
    background-color: #334155;
}

.modal-btn-save {
    background-color: #f59e0b;
    color: #020617;
    font-weight: 700;
}

.modal-btn-save:hover {
    background-color: #fbbf24;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.75rem;
    color: #475569;
    border-top: 1px solid #0f172a;
}

/* =================================================================
   BigRig DQfiling - Pod Component Classes (Append to bottom)
   ================================================================ */

.pods-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pod-card {
    border: 1px solid #1e293b;
    background-color: rgba(15, 23, 42, 0.6);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pod-card:hover {
    border-color: #f59e0b;
    background-color: #1e293b;
    transform: translateY(-1px);
}

.pod-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pod-number {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: #1e293b;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.pod-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
}

.pod-desc {
    font-size: 0.75rem;
    color: #94a3b8;
}

.pod-status-wrapper {
    text-align: right;
}

.pod-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    border: 1px solid;
}

.pod-badge.missing {
    background-color: rgba(244, 63, 94, 0.1);
    color: #fb7185;
    border-color: rgba(244, 63, 94, 0.2);
}

.pod-badge.ready {
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

/* =================================================================
   BigRig DQfiling - Window 2 Modal & Two-Option Grid CSS
   ================================================================ */

   /* =================================================================
   BigRig DQfiling - Window 2 Button Styling Fix
   ================================================================ */

.upload-options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.upload-option-card {
    background-color: rgba(2, 6, 23, 0.6);
    border: 2px dashed #334155;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
    width: 100%;
    color: #f1f5f9;
    font-family: inherit;
}

.upload-option-card:hover {
    border-color: #f59e0b;
    background-color: rgba(15, 23, 42, 0.9);
}

.option-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.option-content {
    display: flex;
    flex-direction: column;
}

.option-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f1f5f9;
}

.option-desc {
    font-size: 0.7rem;
    color: #94a3b8;
}

/* Force native file inputs to remain completely hidden inside option cards */
.upload-option-card input[type="file"] {
    display: none !important;
}

/* =================================================================
   BigRig DQfiling - Bulletproof Centered Modal Overlay
   ================================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay.hidden {
    display: none !important;
}

/* =================================================================
   BigRig DQfiling - Modal 1.3 Employment History Form Styles
   ================================================================ */

.modal-card-wide {
    max-width: 600px;
    width: 90%;
}

.compliance-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
}

.form-group input,
.form-group textarea {
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #f8fafc;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3b82f6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-btn-submit {
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-btn-submit:hover {
    background-color: #2563eb;
}

/* =================================================================
   BigRig DQfiling - Compliance Progress Meter Styles
   ================================================================ */

.compliance-progress-container {
    width: 100%;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    overflow: hidden;
    height: 1.25rem;
    margin: 1rem 0;
}

.compliance-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.75rem 0 0 0.75rem;
}

/* =================================================================
   BigRig DQfiling - Members Login Button Styles
   ================================================================ */
.login-trigger-container {
    margin-bottom: .8rem;
    width: 100%;
}

.members-login-btn {
    width: 100%;
    background-color: #0f172a;
    color: #f59e0b;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.members-login-btn:hover {
    border-color: #f59e0b;
    background-color: #1e293b;
}
