* {
    font-family: "Google Sans Mono", "JetBrains Mono", monospace;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Google Sans Mono", "JetBrains Mono", monospace;
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100vh;
    user-select: none;
    overflow: hidden;
}

/* Top section styles */
#top-section {
    padding: 10px;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #333;
    height: 70vh;
}

#nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.nav-button {
    padding: 8px 16px;
    font-size: 16px;
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
    cursor: pointer;
    min-width: 120px;
    text-align: center;
}

.nav-button:hover {
    background-color: #444;
}

#embedded-view {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Middle section styles */
#middle-section {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10vh;
    border-bottom: 1px solid #333;
}

#task-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#task-name {
    padding: 8px;
    font-size: 16px;
    background-color: #222;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
    width: 200px;
}

#task-type {
    padding: 8px;
    font-size: 16px;
    background-color: #222;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
}

.control-button {
    padding: 8px 16px;
    font-size: 16px;
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
    cursor: pointer;
    min-width: 80px;
    text-align: center;
}

.control-button:hover {
    background-color: #444;
}

#timer-container {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

#timer-display {
    font-size: 3rem;
    text-align: center;
}

#task-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

#task-info-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

#current-task-name {
    font-size: 1.2rem;
    font-weight: bold;
}

#current-task-type {
    font-size: 1rem;
}

/* Bottom section styles */
#bottom-section {
    padding: 20px;
    flex-grow: 1;
    position: relative;
    height: 20vh;
}

#timeline-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#timeline-hours {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.hour-marker {
    font-size: 12px;
    color: #888;
}

#timeline {
    height: 80%;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 5px;
    position: relative;
}

.timeline-task {
    position: absolute;
    height: 20px;
    border-radius: 3px;
    font-size: 12px;
    display: flex;
    align-items: center;
    padding: 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-task.study {
    background-color: #0066cc;
    color: white;
}

.timeline-task.relax {
    background-color: #cc3300;
    color: white;
}

.timeline-task.current {
    border: 2px solid #ffcc00;
}

#clear-button {
    position: absolute;
    bottom: 20px;
    right: 120px;
    padding: 8px 16px;
    font-size: 16px;
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
    cursor: pointer;
}

#clear-button:hover,
#clear-button:active {
    background-color: #cc0000;
}

#export-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    font-size: 16px;
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
    cursor: pointer;
}

#export-button:hover {
    background-color: #444;
}

.hidden {
    display: none !important;
}
