/* Common Variables */
:root {
    --primary-green: #2e7d32;
    --light-green: #4caf50;
    --hover-green: #1b5e20;
    --cream: #fff8e1;
    --light-cream: #fffdf7;
    --border-cream: #ffe0b2;
}

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

html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--cream);
    margin: 0;
}

/* Main Content Wrapper */
main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Navigation Panel */
.nav-panel {
    background-color: var(--primary-green);
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-list a:hover {
    background-color: var(--hover-green);
}

/* Scrolling Banner */
.banner-container {
    background-color: var(--light-green);
    color: white;
    padding: 1rem;
    overflow: hidden;
    position: relative;
}

.banner-text {
    animation: scroll-left 20s linear infinite;
    white-space: nowrap;
    font-size: 1.2rem;
    font-weight: bold;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Operations Grid */
.operations-container {
    flex: 1 0 auto;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem 2rem 2rem;
    width: 100%;
}

.operations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.operation-tile {
    background-color: var(--light-cream);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 2px solid var(--border-cream);
    text-decoration: none;
    display: block;
}

.operation-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--light-green);
}

.operation-tile h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.operation-tile p {
    color: #666;
    font-size: 0.9rem;
}

.operation-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

/* Excel Processor Page Styles */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--light-cream);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-green);
    font-size: 2.2rem;
}

.upload-section {
    margin-bottom: 2rem;
    padding: 2rem;
    border: 2px dashed var(--light-green);
    border-radius: 12px;
    text-align: center;
    background-color: var(--cream);
    transition: all 0.3s ease;
}

.upload-section:hover {
    border-color: var(--primary-green);
    background-color: var(--light-cream);
}

.file-info {
    margin-top: 1rem;
    color: var(--primary-green);
    font-size: 0.9rem;
}

.stats-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--cream);
    border-radius: 12px;
    border: 1px solid var(--border-cream);
}

.stats-box {
    text-align: center;
}

.stats-box h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.filter-section {
    display: none;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--cream);
    border-radius: 12px;
    border: 1px solid var(--border-cream);
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: bold;
    color: var(--primary-green);
}

select {
    padding: 0.75rem;
    border: 1px solid var(--light-green);
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
    background-color: var(--light-cream);
    color: var(--primary-green);
    cursor: pointer;
    transition: all 0.3s ease;
}

select:hover {
    border-color: var(--primary-green);
}

select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background-color: var(--hover-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.preview-section {
    margin-top: 2rem;
}

.preview-section h2 {
    margin-bottom: 1rem;
    color: var(--primary-green);
    font-size: 1.8rem;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-cream);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: var(--light-cream);
}

th, td {
    padding: 1rem;
    border: 1px solid var(--border-cream);
    text-align: left;
}

th {
    background-color: var(--primary-green);
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: var(--cream);
}

tr:hover {
    background-color: var(--border-cream);
}

/* Footer Styles */
.footer {
    margin-top: auto;
    background-color: var(--primary-green);
    color: white;
    text-align: center;
    padding: 1rem;
    width: 100%;
}

.footer p {
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }

    .operations-grid {
        grid-template-columns: 1fr;
    }

    .filter-section {
        flex-direction: column;
    }

    select {
        width: 100%;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}