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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Main Content Area - Two Section Layout */
.main-content {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    gap: 30px;
    min-height: 600px;
}

/* Tool Header */
.tool-header {
    text-align: left;
    margin-bottom: 30px;
}

.tool-header h1 {
    font-size: 26px;
    color: #003366;
    margin-bottom: -5px;
    font-weight: 600;
}

.tool-header p {
    color: #666;
    max-width: 600px;
    margin: 0;
}

/* Left Section - Upload Controls */
.left-section {
    flex: 0 0 65%;
    min-width: 400px;
}

/* For tablets and smaller laptops */
@media (max-width: 1024px) {
    .left-section {
        flex: 0 0 60%;
        min-width: 300px;
    }
}

/* For mobile screens */
@media (max-width: 768px) {
    .left-section {
        flex: 0 0 100%;
        min-width: auto;
        padding: 10px;
    }
}


/* Right Section - File List and Progress */
.right-section {
    flex: 0 0 30%;
    min-width: 300px;
    border-left: 2px solid #e9ecef;
    padding-left: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .right-section {
        border-left: none;
        border-top: 2px solid #e9ecef;
        padding-left: 0;
        padding-top: 20px;
    }
}

/* Sticky header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #003366;
    border-bottom: 1px solid #005fa3;
    width: 100%;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 20px;
}
.site-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Header */
.header h1 {
    font-size: 2rem;
    color: white;
    margin: 0;
    font-weight: bold;
    font-family: Arial, sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}



.header p {
    color: rgba(255,255,255,0.95);
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.zip-highlight {
    color: #FFD700;
}

/* Upload Area */
.upload-area {
    background: white;
    border: 3px dashed #003366;
    border-radius: 15px;
    padding: 20px 24px; /* reduced by 20% */
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 24px; /* reduced by 20% */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.upload-area:hover {
    border-color: #5a67d8;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-3px);
}

.upload-area.dragover {
    border-color: #764ba2;
    background: linear-gradient(135deg, #e6fffa 0%, #f0fff4 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.4);
}

.upload-icon {
    width: 80px; /* reduced by 20% */
    height: 80px; /* reduced by 20% */
    font-size: 2.4rem; /* reduced by 20% */
    background: linear-gradient(135deg, #003366 0%, #764ba2 100%);
    border-radius: 50%;
    margin: 0 auto 20px; /* reduced by 20% */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.upload-text {
    font-size: 1.04rem; /* reduced by 20% */
    margin-bottom: 16px; /* reduced by 20% */
    color: #555;
}

.upload-text strong {
    color: #2c3e50;
    font-weight: bold;
}

/* Buttons */
.select-button {
    background: linear-gradient(135deg, #003366 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.select-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.file-input {
    display: none;
}

.info {
    color: #666;
    font-size: 0.95rem;
    margin-top: 20px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* File List */
.file-list {
    /* background: white; */
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
    border: 1px solid #ddd;
}

.file-list h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: normal;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.file-layout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

#files-container {
    flex: 3 1 300px;
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
}

.file-summary {
    flex: 1 1 250px;
    margin: 0;
    padding: 4px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    color: #666;
    border: 3px solid #eee;
}

.file-item {
    display: flow;
    align-items: center;
    justify-content: space-between;
    padding: 4px 15px;
    border: 3px solid #eee;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.file-item:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.file-name {
    flex: 1;
    margin-left: 10px;
    font-weight: bold;
    color: #666;
}

.file-size {
    color: #666;
    font-size: 0.9rem;
    font-weight: bold;
}



.create-zip-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: normal;
    font-family: Arial, sans-serif;
}

.create-zip-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.create-zip-btn:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Progress Section */
.progress {
    background: white;
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
    text-align: center;
    border: 1px solid #ddd;
}

.progress h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: normal;
}

.progress-bar {
    background: #eee;
    border-radius: 4px;
    height: 24px;
    margin: 25px 0;
    overflow: hidden;
    position: relative;
    border: 1px solid #ddd;
}

.progress-fill {
    background: linear-gradient(90deg, #007acc, #005fa3);
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

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

/* Download Section */
.download-section {
    background: white;
    border-radius: 8px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
    border: 1px solid #ddd;
}

.download-section h3 {
    color: #28a745;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: normal;
}

.download-section p {
    color: #666;
    margin-bottom: 0px;
    font-size: 1.1rem;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: normal;
    font-family: Arial, sans-serif;
}

.download-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Messages */
.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
    font-weight: normal;
}

.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
    font-weight: normal;
}

/* Article Section */
.content-article {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    line-height: 1.7;
    color: #333;
}

.content-article h2 {
    color: #003366;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 3px solid #0074D9;
    padding-bottom: 15px;
}

.content-article h3 {
    color: #003366;
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.content-article p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    text-align: justify;
}

.dimension-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.dimension-inputs .option-item {
    flex: 1;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-options {
    padding-left: 35px;
    margin-top: 10px;
    display: block;
    width: 100%;
}

.options-section input[type="number"] {
    height: 40px;
    padding: 0 10px;
    box-sizing: border-box;
    flex: 1; /* Make input fill available space */
}

/* Custom Radio and Checkbox Styles */


.radio-label {
    cursor: pointer;
    padding: 8px 0;
    display: block;
}

.checkbox-label {
    position: relative;
    cursor: pointer;
    display: inline-block;
    line-height: 1.5;
    padding-left: 0;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 5px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transform: scale(1.2);
    transform-origin: left;
}


/* Percentage Input */
.percentage-input-container {
    width: 100%;
}

.percentage-slider-container {
    width: 100%;
    margin-bottom: 10px;
}

.percentage-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    margin: 15px 0;
}

.percentage-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4a90e2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.percentage-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4a90e2;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.percentage-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 200px;
}

.percentage-input-container input[type="number"] {
    width: 100%;
    padding: 8px 30px 8px 10px;
    box-sizing: border-box;
    -moz-appearance: textfield;
    appearance: textfield;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 40px;
}

.percentage-input-container input[type="number"]::-webkit-outer-spin-button,
.percentage-input-container input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.percentage-symbol {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    font-size: 14px;
    background: #f8f9fa;
    padding: 0 5px;
    border-radius: 3px;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #ddd;
    padding: 12px 0; /* reduced by 50% from 25px 0 */
    margin-top: 60px;
    text-align: center;
    color: #666;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
    width: 100%;
    z-index: 999;
}

/* Features Section */
.features {
    background: white;
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 50px; /* increased margin for separation */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.features h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: normal;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.feature-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feature-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .upload-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn,
    .select-button {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .header {
        height: 29px;
        padding: 0;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .file-name {
        margin-left: 0;
    }
}

.right-sidebar {
    width: 250px;
    background: #f8f9fa;
    border-left: 1px solid #ddd;
    padding: 30px 20px;
    box-sizing: border-box;
    box-shadow: -2px 0 8px rgba(0,0,0,0.04);
    min-height: 600px;
}
.right-sidebar h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #003366;
}
.right-sidebar ul {
    list-style: disc inside;
    padding-left: 0;
    color: #333;
}
.right-sidebar li {
    margin-bottom: 12px;
    font-size: 1rem;
}
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        text-align: left;
    }
    .right-sidebar {
        width: 100%;
        min-height: unset;
        border-left: none;
        border-top: 1px solid #ddd;
        box-shadow: none;
        margin-top: 30px;
    }
}

.download-history-section {
    max-width: 1000px;
    margin: 60px auto 0 auto; /* increased top margin for more space from features */
    padding: 0 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e9f0fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 1.5px solid #e0e7ef;
}
.download-history {
    background: transparent;
    border: none;
    border-radius: 10px;
    box-shadow: none;
    padding: 28px 30px 18px 30px;
    margin-top: 0px;
}
.download-history h3 {
    margin-top: 0;
    color: #003366;
    font-size: 1.3rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.download-history-list,
#download-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.download-history-list li,
#download-history-list li {
    margin-bottom: 14px;
    font-size: 1rem;
    /* background: #fff; */
    border-radius: 8px;
    /* padding: 14px 20px; */
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e0e7ef;
}
.download-history-list li:hover,
#download-history-list li:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transform: translateY(-2px) scale(1.02);
}
.download-history-list a,
#download-history-list a {
    color: #0074D9;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.download-history-list a::before,
#download-history-list a::before {
    content: "\1F4C1 "; /* folder icon */
    font-size: 1.1rem;
    vertical-align: middle;
}
.download-history-list a:hover,
#download-history-list a:hover {
    text-decoration: underline;
    color: #005fa3;
}

/* Two-column layout for upload and history */
.upload-row {
    display: block; /* stack vertically */
}
.upload-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.history-col {
    display: block;
    margin-top: 24px; /* space below upload section */
}

@media (max-width: 900px) {
    .upload-row {
        display: block;
    }
    .history-col {
        order: initial;
        margin-top: 24px;
    }
    .upload-col {
        order: initial;
    }
}


/* ===== Header & Logo ===== */
.header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Logo stays on left */
    gap: 18px;
    padding: 10px 20px;
}



/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .header-container {
        gap: 10px;
        padding: 8px 15px;
    }
    .site-logo {
        height: 60px;
        width: 60px;
    }
    .header-container h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        gap: 8px;
    }
    .site-logo {
        height: 50px;
        width: 50px;
    }
    .header-container h1 {
        font-size: 1.2rem;
    }
}



/* ===== Breadcrumbs ===== */
.breadcrumbs {
    font-size: 14px;
    margin-bottom: 15px;
}
.breadcrumbs a {
    text-decoration: none;
    color: #0073e6;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span {
    color: #555;
}

<<<<<<< HEAD
/* ===== Image Compressor Options ===== */
.options-section#compression-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    margin-bottom: 10px;
}

.option-item:hover {
    border-color: #007bff;
}

.option-item.active {
    border-color: #007bff;
    background-color: #e6f2ff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
    margin: 10px 0;
}

.option-item input[type="radio"] {
    display: inline-block;
    width: auto;
    height: auto;
    opacity: 1;
    position: static;
    transform: scale(1.5);
}

.option-item label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    position: relative;
    cursor: pointer;
    flex: 1;
}

#resizing-options .option-item > label {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}



.option-item label strong {
    color: #333;
}

.option-item label span {
    color: #666;
    font-size: 0.9em;
}

.option-item .badge {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #007bff;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.quality-slider-option .slider-container {
    display: none;
    margin-top: 15px;
    padding-left: 35px; /* Align with label text */
}

.option-item.active .slider-container {
    display: block;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    color: #555;
}

.slider-container input[type="range"] {
    flex-grow: 1;
}

.slider-container input[type="number"] {
    width: 60px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
}

/* Max file size option */
.max-size-option .input-group {
    display: none;
    margin-top: 10px;
    padding-left: 35px; /* Align with label text */
    align-items: center;
    gap: 10px;
}

.option-item.active .input-group {
    display: flex;
}

.max-size-option .input-group input[type="number"] {
    width: 80px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
}

.max-size-option .input-group select {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    background-color: white;
}

/* ===== Main Navigation ===== */

.main-nav {
    margin-left: auto; /* Pushes nav to the right */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* Hide on smaller screens for now */
        /* A mobile-friendly menu (e.g., hamburger) would be a good next step */
    }
}

/* ===== Dropdown Menu ===== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
}

.dropbtn .fa-angle-down {
    margin-left: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #004a99;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 6px;
    margin-top: 5px;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 15px;
}

.dropdown-content a:hover {
    background-color: #005fa3;
}

.dropdown-content a:first-child:hover {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.dropdown-content a:last-child:hover {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

=======
>>>>>>> origin/main
