* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: url('image.png') no-repeat 45% center fixed;
    background-size: cover;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

  
.logo {
    position: fixed;
    top: 40px;
    left: 40px;
    max-width: 150px;
    z-index: 1000;
    display: block;
    margin-bottom: 30px;
}

.container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    padding: 20px;
    margin-top: 100px;
    height: calc(100vh - 120px);
    border-radius: 25px;
    margin: 120px 20px 20px 20px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(3px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.left-panel {
    flex: 3;
}

.right-panel {
    flex: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    height: 60px;
}

h2{
    color: white;
    font-size: 2.5rem;
    font-family: 'DynaPuff';
    font-weight: 200;
    margin-left: 10px;
    color :#176887;
}

.right-panel .header {
    justify-content: center;
}

.right-panel h2 {
    font-size: 1.7rem;
    text-align: center;
    margin: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#add-task-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'DynaPuff';
    font-size: 1.4rem;
    color: #176887;
}

#add-task-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 5px;
    overflow-y: auto;
    padding-right: 10px;
    flex: 1;
    min-height: 0;
}

#archived-tasks {
    padding-top: 0;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #628892;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    width: calc(100% - 5px);
    min-width: 0;
}

#archived-tasks .task-item {
    background: #60935e;
    padding: 8px 12px;
    transform: scale(0.95);
    margin-left: auto;
    margin-right: auto;
}

.task-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    min-width: 28px;
    position: relative;
    background-color: #d2ad40;
}

.checkmark-path {
    fill: none;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transform-origin: 50% 50%;
    animation: draw-check 0.8s ease-in-out forwards;
    position: absolute;
    width: 40px;
    height: 36px;
    left: -5px;
    top: -8px;
}

@keyframes draw-check {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.task-text {
    color: white;
    flex-grow: 1;
    font-family: 'Chewy', cursive;
    font-size: 1.3rem;
    margin: 0 10px;
    font-weight: 300;
    letter-spacing: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delete-task {
    color: white;
    cursor: pointer;
    opacity: 0.7;
    font-size: 1.1rem;
    padding: 4px;
    transition: opacity 0.2s;
}

.delete-task:hover {
    opacity: 1;
}

#add-task-input {
    width: 100%;
    padding: 12px 15px;
    background: #628892;
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Chewy', cursive;
    font-size: 1.2rem;
    margin-top: 10px;
    margin-bottom: 20px;
    display: none;
    font-weight: 300;
    letter-spacing: 2px;
}

#add-task-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#add-task-input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.3);
}

.completed .task-text {
    text-decoration: line-through;
    opacity: 0.7;
}

.timer-circle {
    position: fixed;
    top: 45px;
    right: 45px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(3px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 998;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timer-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.timer-circle i {
    font-size: 2rem;
    color: #eff8fb;
    transition: transform 0.3s ease;
}

.timer-circle:hover i {
    transform: scale(1.1);
}

.curved-text {
    position: absolute;
    width: 120px;
    height: 120px;
    top: -22px;
    left: -29px;
    animation: none;
    pointer-events: none;
}

.curved-text span {
    position: absolute;
    left: 50%;
    font-size: 0.7rem;
    font-family: 'Finger Paint';
    color: white;
    transform-origin: 0 60px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0;
}

.pomo-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 997;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 20px 20px;
}

.pomo-panel {
    width: 100%;
    height: 100%;
    margin: 0;
    position: relative;
    margin: 45px 20px 20px 20px;
}

.pomo-divider {
    position: absolute;
    left: 50%;
    top: 10%;
    height: 80%;
    width: 2px;
    background: rgba(23, 104, 135, 0.4);
    box-shadow: 0 0 8px rgba(23, 104, 135, 0.2);
}

.hidden {
    display: none;
}

/* For Firefox */
.task-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

.task-list::-webkit-scrollbar {
    width: 8px;
}

.task-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.task-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.task-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.music-player {
    position: absolute;
    left: 40px;
    top: 33px;
    width: calc(50% - 80px);
    height: 530px;
    border: 7px solid #5088a0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cover-art {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
    background: #176887;
}

.cover-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 65%;
}

.cover-text {
    position: absolute;
    bottom: 20px;
    left: 40px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.cover-text h1 {
    font-family: 'DynaPuff';
    font-size: 2rem;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.cover-text p {
    font-family: 'Chewy';
    font-size: 1.2rem;
    opacity: 0.95;
    letter-spacing: 1px;
}

.cover-art::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.player-controls {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.top-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
}

.heart-btn {
    color: #176887;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.heart-btn:hover {
    transform: scale(1.1);
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: transparent;
}
.play-btn i {
    color: #176887;
    font-size: 3rem;
}
.play-btn:hover {
    transform: scale(1.1);
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 6px;
    margin-top: 35px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.progress {
    width: 30%;
    height: 100%;
    background: #176887;
    border-radius: 3px;
    transition: width 0.1s linear;
    box-shadow: 0 0 4px rgba(23, 104, 135, 0.5);
}

.time {
    color: #176887;
    font-family: 'DynaPuff';
    font-size: 1.1rem;
    text-align: right;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.playback-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

.control-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #176887;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.control-btn:hover {
    transform: scale(1.1);
}

.tracks-section {
    position: absolute;
    right: 40px;
    top: 20px;
    width: calc(50% - 80px);
    height: 550px;
    padding: 20px;
}

.tracks-heading {
    color: #176887;
    font-size: 2rem;
    margin-bottom: 30px;
    font-family: 'DynaPuff';
    letter-spacing: 2px;
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: rgba(23, 104, 135, 0.1);
    border-radius: 8px;
}

.track-item:hover {
    transform: scale(1.02);
    background: rgba(23, 104, 135, 0.15);
}

.track-item.active-track {
    background: rgba(23, 104, 135, 0.2);
    border-radius: 8px;
    padding: 15px 10px;
}

.track-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
}

.track-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-info {
    flex-grow: 1;
}

.track-info h3 {
    color: #176887;
    font-family: 'DynaPuff';
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.track-info p {
    color: #176887;
    font-family: 'Chewy';
    font-size: 0.9rem;
    opacity: 0.8;
}

.track-duration {
    color: #176887;
    font-family: 'DynaPuff';
    font-size: 1rem;
    margin-left: 20px;
}

.track-divider {
    height: 1px;
    background: rgba(23, 104, 135, 0.2);
    margin: 5px 0;
    width: 100%;
}
