:root {
    --main-bg-color: #1C1B34;
    --secondary-bg-color: #26264E;
    --primary-color: #D9D9E3;
    --highlight-color: #8AE5A1;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background-color: var(--main-bg-color);
    color: var(--primary-color);
}

.container {
    max-width: 400px;
    width: 90%;
    background-color: var(--secondary-bg-color);
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-content: flex-end;
    height: 100%;
}

.header h1 {
    color: #FFF;
    font-size: 24px;
    margin-bottom: 20px;
    font-family: 'Major Mono Display', monospace;
    padding-top: 20px;
}

.timer h2 {
    font-size: 48px;
    margin: 0;
    color: #D0D0F7;
}

.timer p {
    margin-top: 10px;
    font-size: 18px;
    color: #A0A0C3;
}

.stats {
    margin: 20px 0;
    background-color: #414166;
    padding: 15px;
    border-radius: 10px;
}

.stats div {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 16px;
}

.stats span {
    color: #D0D0F7;
}

.grind-button button {
    color: #FFF;
    border: none;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    background-color: var(--highlight-color); /* Default button color */
}

.track-grind {
    margin-top: auto;
    padding-top: 10px;
}

.track-grind input {
    width: calc(100% - 30px); /* Adjust for padding */
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
}

.track-grind button {
    width: 100%;
    background-color: #F55A44;
    color: #FFF;
    padding: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
}

.track-grind p {
    margin-top: 10px;
    color: #A0A0C3;
    font-size: 12px;
}

.log-output {
    width: 100%; /* Makes sure it takes the full width of the container */
    overflow-y: auto; /* Allows scrolling within the log area */
    max-height: 50vh; /* Adjust based on your preference */
}

.log-output ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.log-output li {
    background-color: #414166;
    padding: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    font-size: 14px;
    word-wrap: break-word; /* Ensures text wraps within the element */
}
