*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Questrial', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    background-color: #284B63;
    border-radius: 8px;
    box-shadow: rgba(50, 50, 93, 0.25) 0 2px 5px -1px, rgba(0, 0, 0, 0.3) 0 1px 3px -1px;
    overflow: hidden;
}

.header {
    background-color: #f4f4f4;
    padding: 20px 40px;
    text-align: center;
}

.header h1 {
    font-size: 1.8em;
    margin-bottom: 10px;
    letter-spacing: 3px;
    color: #333;
}

.header p {
    color: #666;
    font-size: 1em;
}

.content {
    padding: 40px;
}

.upload-area {
    border: 2px dashed #3c6e71;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    background: #f4f4f4;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: #284b63;
    background: #e8e8e8;
}

.upload-area.dragover {
    border-color: #284b63;
    background: #e0e0e0;
    transform: scale(1.01);
}

.upload-icon {
    font-size: 3em;
    margin-bottom: 15px;
    color: #3c6e71;
}

.upload-text {
    font-size: 1.1em;
    color: #284b63;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-hint {
    color: #666;
    font-size: 0.9em;
}

#fileInput {
    display: none;
}

.file-info {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.file-info.show {
    display: block;
}

.file-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.file-info-item:last-child {
    margin-bottom: 0;
}

.file-info-label {
    font-weight: 600;
    color: #284b63;
}

.parameters {
    background: #f4f4f4;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.parameters h2 {
    color: #284b63;
    margin-bottom: 20px;
    font-size: 1.3em;
    letter-spacing: 2px;
}

.param-group {
    margin-bottom: 20px;
}

.param-group:last-child {
    margin-bottom: 0;
}

.param-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.param-hint {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: 'Questrial', Arial, sans-serif;
    transition: border-color 0.2s;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #3c6e71;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn {
    background-color: rgb(80, 130, 133);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 10px;
    font-family: 'Questrial', Arial, sans-serif;
}

.btn:hover {
    background-color: #3c6e71;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:disabled:hover {
    background-color: rgb(60, 110, 113);
}

.progress-container {
    display: none;
    margin-top: 20px;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
}

.progress-container.show {
    display: block;
}

.progress-bar-wrapper {
    background: #e0e0e0;
    border-radius: 4px;
    height: 24px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    background-color: #3c6e71;
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85em;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #333;
}

.progress-status {
    font-weight: 600;
    color: #284b63;
}

.error-message {
    background: #ffe6e6;
    border: 1px solid #ffcccc;
    color: #cc0000;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    background: #e6ffe6;
    border: 1px solid #ccffcc;
    color: #006600;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    display: none;
}

.success-message.show {
    display: block;
}

.download-buttons {
    display: none;
    gap: 10px;
    margin-top: 20px;
}

.download-buttons.show {
    display: flex;
}

.page-limit-warning {
    background: #fff9e6;
    border: 1px solid #ffd966;
    color: #8b6914;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.page-limit-warning.show {
    display: block;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.4em;
        letter-spacing: 2px;
    }

    .content {
        padding: 20px;
    }

    .upload-area {
        padding: 40px 15px;
    }

    .parameters {
        padding: 20px;
    }
}

.navbar {
    display: flex;
    justify-content: space-between; /* Space between left and right content */
    align-items: center;
    background-color: #284B63;
    color: white;
    padding: 10px 75px;
    position: relative;
}

.name {
    font-size: 1.6em;
    font-weight: bold;
    letter-spacing: 3px;
}

.job-title {
    margin-left: 25px;
    color: #F4F4F4;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.icon-links {
    display: flex;
    gap: 50px;
}

.icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    filter: invert(100%) brightness(1000%) contrast(50%);
}

.icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.tooltip {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
    color: white;
    padding: 5px;
    border-radius: 4px;
    font-size: 12px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}

.icon-wrapper {
    position: relative;
}

.icon-wrapper:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 1000px) {
    .navbar {
        padding: 10px 25px;
    }

    .job-title {
        display: block;
        margin-left: 0;
    }

    .icon-links {
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 8px 10px;
        gap: 8px;
    }
    .name {
        font-size: 0.8em;
        letter-spacing: 2px;
    }
    .job-title {
        font-size: 0.6em;
    }
    .icon-links {
        gap: 16px;
    }
    .icon {
        width: 25px;
        height: 25px;
    }
    .nav-links {
        gap: 8px;
    }
}
