/* styles.css */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body {
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #333;
    background-color: #f4f4f4;
}

main {
    flex-grow: 1;
}

.container-height, #uploaded-files, #transcriptions {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 420px;
    border: 1px solid #dee2e6;
}

footer {
    height: 60px;
    background-color: #333; /* Example background color */
    color: white;
    text-align: center;
    padding: 10px 0;
}

.uploaded-file {
    background-color: #a5a5a5;
    color: #fff;
    font-weight: bold;
    min-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    margin-bottom: 3px;
    border: 1px solid #bdbcbc;
    border-radius: 1px;
}

#uploaded-files,
#transcriptions {
    margin-top: 15px;
    text-align: center;
    max-height: 210px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border: 1px solid #9f9f9f;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 10px;
}

.uploaded-file:nth-child(even) {
    background-color: #f0f0f0;
}

.uploaded-file:nth-child(odd) {
    background-color: #fdfcfc;
}

.uploaded-file span {
    margin-left: 10px;
    color: #333;
    width: 75%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.delete-icon,
.delete-transcription-icon {
    cursor: pointer;
    font-size: 18px;
    color: #ff6666;
}

.speaker-icon,
.download-icon {
    cursor: pointer;
    font-size: 18px;
    color: #add8e6; /* Light Blue */
}

.spinner {
    display: inline-block;
    margin-left: 10px; /* Add padding to the left */
    margin-right: 10px;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.speaker-icon:hover,
.download-icon:hover {
    color: var(--bs-info);
    cursor: pointer;
}

.delete-icon:hover,
.delete-transcription-icon:hover {
    color: var(--bs-danger);
    cursor: pointer;
}

.green-icon {
    color: #71a471;
    margin-right: 5px;
}

.dropzone {
    border: 2px dashed #a5a5a5;
    border-radius: 8px;
    background-color: #f9f9f9;
    padding: 20px;
    text-align: center;
    font-size: 22px;
}

.title {
    color: #353434;
    text-align: center;
    margin-bottom: 20px;
}

.dalle-form {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    color: #353434;
}

.form-input,
.form-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #a5a5a5;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #0056b3; /* Dark blue, similar to navbar */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.submit-btn:hover {
    background-color: #004085; /* Slightly darker blue on hover */
}

#image-result-container {
    margin-top: 20px;
    text-align: center; /* Center the image */
}
#image-result-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

#overlay {
    display: none; /* Hidden by default */
    position: fixed; /* Sit on top of the page content */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
    z-index: 2; /* Sit on top */
    cursor: wait; /* Change the cursor to the wait cursor */
}
.card-img-top {
    width: 100%;
    height: auto;
    border-radius: 0; /* Removes the border-radius if you prefer square images */
}

/* Optionally, add some hover effect */
.card a:hover {
    opacity: 0.8;
}
