@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@100;200;300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');
@import url('https://fonts.cdnfonts.com/css/aurulent-sans-mono');

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
    padding-bottom: 2em;
    background-color: #EFEEE6;
}

#app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #f4f4f4;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    position: relative;
}

.sidebar.hidden {
    transform: translateX(-250px);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.toggle-sidebar {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    right: -30px;
    top: 20px;
    background-color: #f4f4f4;
    padding: 5px;
    border-radius: 0 5px 5px 0;
}

#results-list {
    list-style-type: none;
    padding: 0;
}

#results-list li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

#results-list li:hover {
    background-color: #e0e0e0;
}

main {
    flex-grow: 1;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.upload-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.upload-button:hover {
    background-color: #2980b9;
}

.results-container-empty {
    text-align: center;
    margin-top: 50px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#drop-area {
    border: 2px dashed #3498db;
    border-radius: 20px;
    width: 100%;
    margin: 20px 0;
    padding: 20px;
    text-align: center;
}

#drop-area.highlight {
    background-color: #e8f4fc;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.process-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.process-button:hover {
    background-color: #2980b9;
}

.context-menu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 0;
    z-index: 1000;
}

.context-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.context-menu ul li {
    padding: 8px 12px;
    cursor: pointer;
}

.context-menu ul li:hover {
    background-color: #f0f0f0;
}

.spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.spinner-circle {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

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

/* Styles from styles-results.css */

.grid-container {
    margin: 0 auto;
    display: grid;
    align-items: baseline;
    grid-template-columns: 70px repeat(2, minmax(20rem, 1fr));
    gap: 32px;
    max-width: 1500px;
}

.header-row {
    display: contents;
    margin: 0;
    margin-top: 0px;
}

h2 {
    color: #333;
    font-weight: 500;
    width: 90%;
    margin-top: 0;
    margin-bottom: 0;
}

.grid-row {
    font-size: 1.2em;
    display: contents;
    font-weight: 400;
    transition: color 0.3s ease;
}

.grid-row.past {
    color: #d22d2d;
}

.grid-row.current {
    color: #111;
}

.grid-row.future {
    color: #7C616C;
}

.grid-row span {
    cursor: pointer;
}

.grid-row:hover span {
    color: #111;
}

.timestamp {
    color: #4D4C4C;
    font-weight: 300;
    line-height: 1.6;
    display: inline-block;
    font-family: 'Aurulent Sans Mono', monospace;
    font-size: 0.9rem;
    text-align: right;
}

.transcription, .translation {
    overflow-wrap: break-word;
    font-size: 1.1rem;
}

.audio-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
}

.audio-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.control-button {
    background: none;
    border: none;
    font-size: 24px;
    margin: 0 15px;
    cursor: pointer;
    color: #B3B3B3;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.2s ease;
}

.control-button:hover {
    color: #F6F5F2;
}

.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 800px;
    margin: 0 auto;
}

.progress-bar {
    flex-grow: 1;
    height: 4px;
    background-color: #4d4d4d;
    position: relative;
    cursor: pointer;
    margin: 0 10px;
    border-radius: 2px;
}

.progress-filled {
    height: 100%;
    background-color: #fff;
    width: 0;
    transition: width 0.1s linear;
    border-radius: 2px;
    position: relative;
}

.progress-bar:hover .progress-filled {
    background-color: #1db954;
}

.progress-head {
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    /* left: 100%; */
    display: none;
}

.progress-bar:hover .progress-head {
    cursor: pointer;
    display: block;
}

.time-display {
    font-size: 12px;
    color: #fff;
    font-family: 'Aurulent Sans Mono', monospace;
    min-width: 30px;
    text-align: center;
}
