/* styles.css */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #121212;
    color: #ffffff;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    font-weight: 600;
}

#task-input, #task-list, #progress-container {
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

input[type="text"], input[type="number"] {
    width: calc(50% - 12px);
    padding: 10px;
    margin-right: 4px;
    margin-bottom: 10px;
    background-color: #1e1e1e;
    border: none;
    color: #ffffff;
}

input::placeholder {
    color: #888888;
}

.btn {
    padding: 10px 20px;
    background-color: #0a84ff;
    border: none;
    color: #ffffff;
    cursor: pointer;
    margin-right: 5px;
    margin-bottom: 10px;
    font-size: 16px;
}

.btn:hover {
    background-color: #0066cc;
}

.start-btn {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
}

.task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1e1e1e;
    padding: 10px;
    margin-bottom: 10px;
}

.task span {
    flex-grow: 1;
}

.task button {
    background-color: transparent;
    border: none;
    color: #0a84ff;
    cursor: pointer;
    margin-left: 10px;
}

#progress-bar {
    width: 100%;
    background-color: #1e1e1e;
    height: 60px;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    margin-top: 30px;
}

.progress-segment {
    position: absolute;
    height: 100%;
    top: 0;
    background-color: #1e1e1e; /* Färg för tomrummet */
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.progress-inner {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    background-color: inherit; /* Färg sätts i JavaScript */
    transition: width 1s linear;
}

.progress-segment span {
    position: relative;
    z-index: 2;
    font-size: 18px;
    font-weight: 500;
}

.progress-segment button {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: #ffffff;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    bottom: 5px;
    right: 5px;
}

.completed .progress-inner {
    background-color: transparent;
}

#end-time {
    text-align: center;
    margin-top: 20px;
    font-size: 20px;
    font-weight: 500;
}
