/* Updated DeltaBid CSS with Navy Blue & Gray Theme -Delta bid */
:root {
    --primary-color: #0A2C5D; /* Navy blue from logo */
    --primary-light: #1A3F73;
    --primary-dark: #061E40;
    --secondary-color: #565656; /* Medium gray */
    --light-gray: #f2f2f2;
    --medium-gray: #d9d9d9;
    --dark-gray: #444444;
    --accent-color: #3D85C6; /* Blue accent for highlights */
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #F44336;
    --text-color: #333333;
    --white: #FFFFFF;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
}

.logo-icon {
    font-size: 28px;
    margin-right: 5px;
    color: var(--primary-color);
}

.logo-text {
    font-weight: 700;
}

.logo-delta {
    color: var(--primary-color);
}

.logo-bid {
    color: var(--primary-color);
}

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

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero .description {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: var(--medium-gray);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* "Coming Soon" Feature Styling */
.feature-coming-soon {
    background-color: rgba(10, 44, 93, 0.04);
    border: 1px solid rgba(10, 44, 93, 0.1);
}

.feature-coming-soon .feature-icon {
    opacity: 0.8;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(10, 44, 93, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--secondary-color);
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.benefits h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.benefits-list {
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    margin-bottom: 30px;
}

.benefit-check {
    flex: 0 0 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-weight: bold;
}

.benefit-text {
    flex: 1;
}

.benefit-text h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.benefit-text p {
    color: var(--secondary-color);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    opacity: 0.7;
    line-height: 1.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Upload Page Styles */
.upload-page {
    background-color: var(--light-gray);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.upload-container {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 800px;
    padding: 40px;
}

.upload-header {
    text-align: center;
    margin-bottom: 40px;
}

.upload-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.upload-header p {
    color: var(--secondary-color);
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.requirements {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.requirements h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.requirements ul {
    padding-left: 20px;
    color: var(--secondary-color);
}

.requirements li {
    margin-bottom: 5px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.file-upload-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.file-upload {
    position: relative;
    border: 2px dashed var(--medium-gray);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: var(--primary-color);
    background-color: rgba(10, 44, 93, 0.03);
}

.file-upload input[type="file"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.file-upload-text {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.file-upload-hint {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.file-name {
    margin-top: 10px;
    word-break: break-all;
    color: var(--primary-color);
    font-weight: 500;
}

.file-upload.has-file {
    border-color: var(--primary-color);
    background-color: rgba(10, 44, 93, 0.05);
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: var(--primary-light);
}

.submit-button:disabled {
    background-color: var(--medium-gray);
    cursor: not-allowed;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: var(--secondary-color);
    text-decoration: none;
}

.back-link a:hover {
    color: var(--primary-color);
}

/* Results Page Styles */
.results-page {
    background-color: var(--light-gray);
}

.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.summary-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.summary-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.summary-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.summary-card .value {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.summary-card .label {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.positive {
    color: var(--success-color);
}

.negative {
    color: var(--danger-color);
}

.missing-alert {
    background-color: #FFF3E0;
    border: 1px solid #FFB74D;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
}

.missing-alert h3 {
    color: #E65100;
    margin-bottom: 15px;
}

.missing-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.missing-list h4 {
    margin-bottom: 10px;
    color: #E65100;
}

.missing-list ul {
    padding-left: 20px;
}

.missing-list li {
    margin-bottom: 5px;
}

.comparison-section {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 40px;
}

.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--medium-gray);
}

tr:hover {
    background-color: var(--light-gray);
}

.higher {
    color: var(--success-color);
    font-weight: 500;
}

.lower {
    color: var(--danger-color);
    font-weight: 500;
}

.missing {
    color: var(--secondary-color);
    font-style: italic;
}

.difference-positive {
    color: var(--success-color);
    font-weight: 500;
}

.difference-negative {
    color: var(--danger-color);
    font-weight: 500;
}

.actions-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-light);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--light-gray);
}

.raw-data-section {
    margin-bottom: 40px;
}

.collapsible {
    background-color: var(--light-gray);
    color: var(--primary-color);
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.collapsible:hover, .collapsible.active {
    background-color: var(--medium-gray);
}

.collapsible:after {
    content: '\002B';
    color: var(--primary-color);
    font-weight: bold;
    float: right;
}

.collapsible.active:after {
    content: "\2212";
}

.content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background-color: var(--white);
    border-radius: 0 0 4px 4px;
    display: none;
}

.content pre {
    padding: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
    font-size: 0.9rem;
    background-color: #f8f8f8;
    border-radius: 4px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .features h2, .benefits h2, .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .feature-card, .benefit-item {
        margin-bottom: 20px;
    }
    
    .upload-container {
        padding: 30px 20px;
    }
    
    .file-upload-group {
        grid-template-columns: 1fr;
    }
    
    .actions-section {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Print Styles */
@media print {
    header, .actions-section, .raw-data-section, .back-link {
        display: none;
    }
    
    body {
        background-color: white;
        font-size: 12pt;
    }
    
    .results-container {
        padding: 0;
    }
    
    .summary-section, .missing-alert, .comparison-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .summary-card, .missing-alert, .comparison-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}