/* static/css/downloader.css */

.tool-container { /* Main container for the downloader form */
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 600px;
    margin-top: 2rem; /* Space from header */
    margin-bottom: 2rem; /* Space before footer */
    border-left: 5px solid #c0392b; /* Dark Red Accent */
}

.tool-container h2 { /* Title like "YouTube Downloader" */
    color: #e0e0e0;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    margin-bottom: 1.5rem;
}

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

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

.form-group input[type="url"],
.form-group input[type="text"],
.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="url"]:focus,
.form-group input[type="text"]:focus,
.form-group select:focus {
    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.75rem;
    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;
    word-break: break-word; 
    overflow-wrap: break-word; 
}

.submit-btn:hover {
    background-color: #e74c3c;
}

.messages { /* For flashed messages */
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.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;
}

.download-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #DAA520; 
    color: #0d0d0d;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 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; 
}

/* Ensure the main content area on this page uses flex to center the tool container */
/* This assumes .site-main is the direct parent in the HTML structure for this page's content */
/* If .site-main is already flex in global.css, this might just need align-items */
main.site-main.container { /* More specific selector for this page */
    display: flex;
    flex-direction: column;
    align-items: center;
}
