/* The White Header Box 
.main-header {
    display: grid;
    grid-template-columns: auto 1fr; /* Left: Logo size | Right: Remaining space 
    grid-template-rows: auto auto;   /* Top: Upload | Bottom: Menu 
    gap: 10px 20px;
    background: #ffffff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Area 1: Logo spans both rows on the left 
.logo-area {
    grid-row: 1 / span 2;
    grid-column: 1;
}

#defaultLogo {
    height: 60px;
    display: block;
}

/* Area 2: Upload controls in the top right 
.upload-area {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align contents to the right 
}

.upload-area label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.upload-area input {
    font-size: 11px;
}

/* Area 3: The Menu in the bottom right */
.x-emi-container {
    grid-row: 2;
    grid-column: 2;
    display: flex;
    justify-content: flex-end; /* Push buttons to the right */
    gap: 8px;
    align-self: end; /* Ensure it stays at the very bottom */
}

/* Fancy Buttons Style */
.feature-button {
    text-decoration: none;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 10px;
    font-weight: 300;
    color: #555;
    background: #f8f9fa;
    padding: 2px 5px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.feature-button:hover, .feature-button.active {
    background: #28a745; /* Brand Green */
    color: #ffffff;
    border-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.15);
}

/* Mobile Fix: Stack everything on small screens */
@media (max-width: 768px) {
    .main-header {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    .upload-area, .x-emi-container {
        align-items: center;
        justify-content: center;
        width: 100%;
    }
	.upload-area input, .upload-area label {
    font-size: 6px;
}
}