/* Grundlegende Zurücksetzung */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #EC6807;   /* Primärfarbe des Unternehmens */
    --secondary-color: #333;    /* Sekundärfarbe des Unternehmens */
    --light-gray: #f5f5f5;
    --medium-gray: #ddd;
    --dark-gray: #666;
    --white: #fff;
    --success-color: #27ae60;
    --warning-color: #f39c12;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    display: inline;
    cursor: pointer;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--light-gray);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--medium-gray);
    position: relative;
}

.logo {
    max-width: 180px;
    margin: 0 auto 15px;
    display: block;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

header p {
    color: var(--secondary-color);
}

section, .upload-section, .settings-section, .action-section, .results-section {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--secondary-color);
}

input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-size: 1rem;
}

input[type="number"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(236, 104, 7, 0.2);
}

.file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

#fileLabel {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    margin-bottom: 10px;
    width: 200px;
    transition: background-color 0.3s;
}

#fileLabel:hover {
    background-color: #d45700; /* Dunklere Variante der Primärfarbe */
}

#fileName {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
    color: var(--dark-gray);
}

button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
}

button:hover {
    background-color: #d45700; /* Dunklere Variante der Primärfarbe */
}

button:disabled {
    background-color: var(--medium-gray);
    cursor: not-allowed;
    color: var(--dark-gray);
}

.download-container {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.download-container h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.download-container h4 {
    color: var(--secondary-color);
    margin: 15px 0 10px;
    font-size: 1rem;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.primary-button:hover {
    background-color: #d45700;
}

.secondary-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.secondary-button:hover {
    background-color: #222;
}

.file-list-container {
    max-height: 300px;
    overflow-y: auto;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.download-hint {
    font-size: 0.9rem;
    color: #666;
    background-color: #fff9e6;
    padding: 10px;
    border-left: 4px solid #f39c12;
    border-radius: 4px;
    margin: 15px 0;
}

.individual-file-link {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px;
    margin-bottom: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.individual-file-link:hover {
    background-color: #ebebeb;
    color: #d45700;
    text-decoration: underline;
    transform: translateX(5px);
}

.individual-file-link .file-size {
    color: #666;
    font-size: 0.8rem;
    float: right;
    margin-top: 2px;
}

.results-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.progress-section {
    margin-top: 20px;
}

.progress-container {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

#progressText {
    text-align: center;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.split-method-selection {
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.split-method-selection h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-option label {
    display: inline;
    cursor: pointer;
    margin-bottom: 0;
}

/* Animation für den Wechsel zwischen den Einstellungen */
#budgetSettings, #countSettings {
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Tab-Navigation Styling */
.tab-section {
    margin-bottom: 20px;
}

.tab-header {
    display: flex;
    border-bottom: 2px solid var(--medium-gray);
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background-color: #f5f5f5;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-weight: 500;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: #ebebeb;
}

.tab-button.active {
    background-color: white;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Merge-Bereich Styling */
.merge-section {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.merge-description {
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.drop-zone {
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    background-color: #fff9f5;
    transition: all 0.3s ease;
}

.drop-zone:hover, .drop-zone.drag-over {
    background-color: #ffeee1;
    border-color: #d45700;
}

.drop-icon {
    margin-bottom: 15px;
}

.drop-text p {
    color: var(--secondary-color);
    font-size: 1rem;
}

.uploaded-files {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.uploaded-files h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.uploaded-files ul {
    list-style: none;
    margin-bottom: 15px;
}

.uploaded-files li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: white;
    border-radius: 4px;
    margin-bottom: 8px;
    border: 1px solid #eee;
}

.uploaded-files .file-info {
    display: flex;
    align-items: center;
}

.uploaded-files .file-icon {
    margin-right: 10px;
    color: var(--primary-color);
}

.uploaded-files .file-name {
    font-size: 0.9rem;
}

.uploaded-files .file-size {
    color: var(--dark-gray);
    font-size: 0.8rem;
    margin-left: 10px;
}

.uploaded-files .file-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px 8px;
    transition: all 0.2s ease;
    width: auto;
}

.uploaded-files .file-remove:hover {
    color: #c0392b;
    background-color: #fce4e4;
    border-radius: 4px;
}

.merge-settings {
    margin-bottom: 20px;
}

.merge-results-section {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in-out;
}