/* Base styles and variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --success-color: #2ecc71;
    --background-color: #ecf0f1;
    --text-color: #2c3e50;
    --border-color: #bdc3c7;
    --readonly-bg: #f5f6fa;
    --gradient-start: #2c5282;
    --gradient-end: #1a365d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 1.25rem 0;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-container h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Form Card Styles - Matching Reports Style */
.main-form-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.main-form-card h1 {
    background: var(--gradient-start);
    color: white;
    margin: 0;
    padding: 1.5rem 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-section {
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-section h3 {
    color: var(--gradient-start);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.costs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Cards */
.info-card, .category-card, .cost-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: var(--gradient-start);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
    outline: none;
}

/* Labels */
label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gradient-start);
    font-weight: 500;
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

/* Readonly Fields */
.readonly-field {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    color: var(--gradient-start);
    font-weight: 500;
}

/* Submit Button */
#submit-btn {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 2rem auto;
    display: block;
    min-width: 200px;
    font-size: 1rem;
}

#submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Recent Entries Table */
.table-section {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
}

.table-header {
    background: var(--gradient-start);
    color: white;
    padding: 1.5rem 2rem;
}

.table-header h2 {
    margin: 0;
    color: white;
    font-size: 1.25rem;
}

.table-container {
    padding: 1.5rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
}

th {
    background: #f1f5f9;
    color: var(--gradient-start);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

/* Language Toggle */
.language-toggle {
    position: absolute;
    top: 1.25rem;
    right: calc(50% - 700px + 2rem); /* Aligned with container */
}

.lang-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Mobile Responsiveness */
@media screen and (max-width: 1440px) {
    .language-toggle {
        right: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .grid-2, .info-grid, .categories-grid, .costs-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .language-toggle {
        position: static;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .lang-btn {
        margin: 0 auto;
    }
    
    .form-section {
        padding: 1.5rem 1rem;
    }
}
/* Additional styles to fix specific issues */

/* Hidden Input Fix */
.hidden {
    display: none !important;
}

/* Recent Entries Card Styling - Matching Reports */
.card.mt-4 {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card.mt-4 h2 {
    background: var(--gradient-start);
    color: white;
    margin: 0;
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Table Container Styling */
.table-container {
    padding: 1.5rem 2rem;
    overflow-x: auto;
    background: white;
}

/* Table Styling - Matching Reports */
table {
    width: 100%;
    min-width: 800px;
    border-collapse: separate;
    border-spacing: 0;
}

table thead th {
    background: #f1f5f9;
    color: var(--gradient-start);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

/* Cost and Number Columns */
table td:nth-child(4),
table td:nth-child(5),
table td:nth-child(6) {
    font-family: monospace;
    color: var(--gradient-start);
    font-weight: 500;
}

/* Categories Column */
table td:last-child {
    color: var(--gradient-start);
    font-weight: 500;
}

/* Table Row Hover Effect */
table tbody tr:hover {
    background: #f8fafc;
    transition: background-color 0.2s ease;
}

/* Form Section Refinements */
.form-section {
    background: white;
}

/* Info Cards Refinements */
.info-card, .category-card, .cost-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-card label, 
.category-card h4, 
.cost-card label {
    color: var(--gradient-start);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

/* Cost Values in Tables */
.cost-value {
    font-family: monospace;
    color: var(--gradient-start);
    font-weight: 500;
}

/* Empty Table State */
table tbody:empty::after {
    content: 'No entries yet';
    display: block;
    text-align: center;
    padding: 2rem;
    color: #a0aec0;
    font-style: italic;
}

/* Mobile Refinements */
@media screen and (max-width: 768px) {
    .table-container {
        padding: 1rem;
        margin: 0 -1rem;
    }

    .info-card, .category-card, .cost-card {
        padding: 1.25rem;
    }

    table td, table th {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}
/* Main navigation container */
.navbar {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 1.25rem 0;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

/* Title styling */
.nav-container h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Right side navigation items container */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Navigation links */
.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.25);
}

/* Language toggle button - matching screenshot */
.lang-btn {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}
/* Add these styles to your style.css */
.table-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.export-btn {
    background: rgba(9, 2, 32, 0.2);
    color: white;
    border: 1px solid rgba(14, 2, 30, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: rgba(7, 1, 17, 0.3);
    transform: translateY(-1px);
}

.export-icon {
    font-size: 1.2rem;
}

@media screen and (max-width: 768px) {
    .table-header .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}