/* Base Styling & Compact Spacing */
body {
    background-color: #f4f7f6; 
    color: #333;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header styling */
header {
    background-color: #ffffff;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #167a80; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.header-logo { height: 50px; width: auto; }
.header-brand h1 { font-size: 22px; margin: 0; color: #406d4d; }

footer {
    border-top: 2px solid #167a80;
    margin-top: 40px; background-color: #ffffff;
    padding: 15px; text-align: center;
}
nav { margin-top: 15px; }
nav a { margin: 0 10px; color: #167a80; text-decoration: none; font-weight: bold; font-size: 14px; }
nav a:hover { text-decoration: underline; }

/* Main Layout */
.container {
    max-width: 850px; 
    margin: 30px auto; 
    padding: 0 15px;
}

/* Distinct Box Panels */
.box-panel {
    background-color: #ffffff;
    border: 2px solid #167a80;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 30px;
    text-decoration: none;
}
/* Drag & Drop Upload Area - FIXED SIZE */
.upload-area {
    border: 2px dashed #2f9649;
    border-radius: 4px;
    min-height: 160px; 
    padding: 20px;
    text-align: center;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
.upload-area.dragover { background-color: #f0f7ff; border-color: #2f9649; }

.upload-icon { width: 36px; height: 36px; fill: #2f9649; margin-bottom: 5px; }
.upload-text { font-size: 16px; color: #333; margin-bottom: 15px; line-height: 1.4; }
.upload-text span { color: #2f9649; }
.btn-select {
    background-color: #2f9649; color: white; padding: 8px 20px;
    border-radius: 4px; border: none; font-size: 14px; font-weight: bold; cursor: pointer;
}
.btn-select:hover { background-color: #2f9649; }
input[type="file"] { display: none; }

/* Preview Image Styling */
#previewImage {
    display: none;
    max-width: 100%;
    max-height: 150px; 
    object-fit: contain;
    border-radius: 4px;
}
#multiFileText {
    display: none;
    font-size: 12px;
    color: #167a80;
    font-weight: bold;
    margin-top: 5px;
}

/* Settings Area */
#settingsArea {
    display: none; margin-top: 20px; padding-top: 15px;
    border-top: 1px dashed #ccc; animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.settings-section-title {
    font-size: 15px; color: #167a80; border-bottom: 1px solid #eee;
    padding-bottom: 3px; margin-bottom: 10px; margin-top: 15px;
}

/* Compact Form Grid */
.settings-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px; margin-bottom: 15px;
}
.form-group { display: flex; flex-direction: column; }
label { font-weight: bold; margin-bottom: 3px; font-size: 12px; line-height: 1.2; }
input:not([type="file"]):not([type="range"]), select {
    padding: 6px 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px;
}

/* Submit Action */
.btn-process {
    background-color: #167a80; color: white; font-size: 15px;
    padding: 10px 20px; cursor: pointer; border: none; border-radius: 4px;
    font-weight: bold; width: 100%; margin-top: 10px; transition: background 0.2s;
}
.btn-process:hover { background-color: #0b4e53; }

/* Page Navigation Logic */
.page-content { display: none; }
.page-content.active { display: block; }

/* Output Gallery */
.gallery {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px; margin-top: 20px; padding-top: 20px; border-top: 1px dashed #ccc;
}
.card {
    border: 1px solid #ddd; padding: 12px; text-align: center;
    border-radius: 4px; background: #fafafa; font-size: 13px; line-height: 1.4;
}
.card img {
    max-width: 100%; height: auto; max-height: 150px; object-fit: contain;
    border: 1px solid #eee; margin-top: 10px; margin-bottom: 10px; background: #fff;
}
.card p { margin: 4px 0; }
.card .highlight { font-weight: bold; color: #167a80; }
.card .btn-download {
    background-color: #007bff; color: white; border: none; padding: 6px 12px;
    border-radius: 3px; cursor: pointer; width: 100%; font-size: 13px; font-weight: bold;
}
.card .btn-download:hover { background-color: #2f9649; }

/* Typography & SEO Content Styling */
h2 { color: #0b4e53; font-size: 24px; margin-bottom: 15px; margin-top: 0; }
h3 { color: #167a80; font-size: 18px; margin-top: 25px; margin-bottom: 10px; }
p { margin-bottom: 15px; font-size: 15px; }
ul { margin-bottom: 20px; padding-left: 20px; }
li { margin-bottom: 8px; font-size: 15px; }

.seo-content {
    color: #444;
}