/* General Body and Font Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f4f8;
    /* Light gray background */
    color: #333;
    justify-content: center;
    align-items: flex-start;
    /* Align to top to avoid pushing content off screen on smaller devices */
    min-height: 100vh;
    /* Minimum full height */
    margin: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Container */
.container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    margin-top: 50px;
    /* Space from the top */
    margin-bottom: 50px;
    /* Space from the bottom */
}

/* Headings */
h1 {
    color: #009999;
    /* Siemens blue-green */
    margin-bottom: 10px;
    font-size: 2.5em;
    font-weight: 700;
}

.tagline {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Drop Area for File Upload */
.drop-area {
    border: 3px dashed #b0e0e6;
    /* Lighter Siemens blue-green */
    border-radius: 10px;
    padding: 50px 20px;
    text-align: center;
    background-color: #faffff;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 30px;
}

.drop-area:hover,
.drop-area.highlight {
    border-color: #009999;
    background-color: #e6f7f7;
    /* Lighter hover background */
}

.drop-area p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 20px;
}

/* Upload Button (linked to input) */
.upload-button {
    display: inline-block;
    background-color: #009999;
    /* Siemens blue-green */
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 153, 153, 0.3);
    border: none;
    /* Remove default button border */
}

.upload-button:hover {
    background-color: #007a7a;
    /* Darker Siemens blue-green on hover */
    transform: translateY(-2px);
}

.upload-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 153, 153, 0.4);
}


/* Status Area */
.status-area {
    background-color: #e6f7f7;
    /* Light background for status */
    border: 1px solid #b0e0e6;
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
    text-align: left;
    transition: opacity 0.3s ease, height 0.3s ease;
    overflow: hidden;
    /* Hide overflow when animating height */
}

.status-area.hidden {
    opacity: 0;
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: none;
    margin-top: 0;
}

.file-name {
    font-weight: 600;
    color: #009999;
    margin-bottom: 15px;
    font-size: 1.1em;
    word-wrap: break-word;
    /* Ensure long file names wrap */
}

.progress-bar {
    width: 100%;
    background-color: #ddd;
    border-radius: 5px;
    height: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: #009999;
    /* Siemens blue-green */
    border-radius: 5px;
    transition: width 0.3s ease;
}

.status-message {
    font-size: 1em;
    color: #444;
    margin-bottom: 20px;
}

.status-message.error {
    color: #d9534f;
    /* Red for errors */
    font-weight: 600;
}

.status-message.success {
    color: #5cb85c;
    /* Green for success */
    font-weight: 600;
}

.recovery-summary {
    background-color: #f0fbfb;
    border: 1px solid #c9eded;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.recovery-summary p {
    margin: 5px 0;
    color: #555;
}

.recovery-summary strong {
    color: #007a7a;
}

/* Download Button (within status area) */
.download-button {
    background-color: #009999;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 153, 153, 0.3);
    width: auto;
    border: none;
    display: inline-block;
    /* Ensure it behaves like a block for full width but can be centered */
}

.download-button:hover:not(:disabled) {
    background-color: #007a7a;
    transform: translateY(-2px);
}

.download-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

/* Limitations Section */
.limitations {
    background-color: #fff3e0;
    /* Light orange-yellow for warnings */
    border: 1px solid #ffcc80;
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
    text-align: left;
}

.limitations h2 {
    color: #e69900;
    /* Darker orange-yellow */
    font-size: 1.5em;
    margin-bottom: 15px;
}

.limitations ul {
    list-style-type: disc;
    padding-left: 25px;
    color: #666;
    line-height: 1.6;
}

.limitations li {
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 25px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    h1 {
        font-size: 2em;
    }

    .drop-area {
        padding: 40px 15px;
    }

    .drop-area p {
        font-size: 1em;
    }

    .upload-button,
    .download-button {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    .status-area {
        padding: 20px;
    }

    .limitations {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    .tagline {
        font-size: 0.9em;
    }

    .drop-area {
        padding: 30px 10px;
    }
}