/* static/css/file_converter.css */

.converter-tool-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 2rem;
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-left: 5px solid #c0392b; /* Dark Red Accent */
    max-width: 700px; 
}

.tool-title-page { 
    color: #e0e0e0;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #aaaaaa;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="file"],
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #333333;
    background-color: #2a2a2a;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}

.form-group input[type="file"] {
    padding: 0.5rem; /* Slightly less padding for file input */
}

.form-group input[type="file"]::-webkit-file-upload-button {
    background-color: #c0392b;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 1rem;
    transition: background-color 0.3s ease;
}
.form-group input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #e74c3c;
}
/* For Firefox */
.form-group input[type="file"]::file-selector-button {
    background-color: #c0392b;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 1rem;
    transition: background-color 0.3s ease;
}
.form-group input[type="file"]::file-selector-button:hover {
    background-color: #e74c3c;
}


.form-group select:focus,
.form-group input[type="file"]:focus-within { /* focus-within for file input parent */
    outline: none;
    border-color: #c0392b; 
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.5);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 0.85rem;
    background-color: #c0392b; 
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}
.submit-btn:hover {
    background-color: #e74c3c; 
}

.messages { 
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}
.messages li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    text-align: center;
    word-break: break-word; 
    overflow-wrap: break-word; 
}
.messages li.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71; 
    border: 1px solid #2ecc71;
}
.messages li.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c; 
    border: 1px solid #e74c3c;
}

.download-link-container {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #2a2a2a;
    border-radius: 4px;
    width: 100%;
}
.download-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #DAA520; 
    color: #0d0d0d;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    max-width: 100%; 
    word-break: break-all; 
    overflow-wrap: break-word; 
    white-space: normal; 
    line-height: 1.3; 
}
.download-link:hover {
    background-color: #f0c040; 
}

main.site-main.container { 
    display: flex;
    flex-direction: column;
    align-items: center;
}
