@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

@keyframes sparkle-spin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2);}
}

.polaroid-container {
    background: white;
    border: 1px solid #cfcfcfc6;
    border-radius: 6px;
    padding: 10px; /* Space around image */
    padding-bottom: 40px; /* Extra space for the quote */
    margin: 16px;
    width: fit-content;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display:inline-block;
    text-align: center;
}


.polaroid {
    height: 32vh;
    width: 72vh;
    background: white;
    border: 1px solid #cfcfcfc6;
    border-radius: 6px;
    padding: 10px 10px 40px 10px;
    margin: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    object-position: center;
    object-fit: cover;
}

.quote-text {
    margin-top: 10px;
    font-family: 'Poppins', sans-serif; /* Give it a handwritten feel */
    font-size: 1.15rem;
    color: #333;
    max-width: 38vh;
}

.top-section {
    background: var(--white);
    border-radius: 24px;
    padding: 24px;
    margin: 30px 0 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
}

.section-title .sparkle {
    margin-top: 18px;
    font-size: 0.8em;
    animation: sparkle-spin 2s ease-in-out infinite;
}
        :root {
          --primary-blue: #bbd7f8;
          --soft-blue: #e4f6fc;
          --warm-brown: #63778d;
          --light-brown: #a4b6bc;
          --blue: #3780d4;
          --blue-light: #a6def4;
          --white: #ffffff;
          --text-dark: #232b3e;
          --text-light: #41576d;
          --shadow-soft: 0 2px 10px rgba(212, 175, 55, 0.1);
          --shadow-hover: 0 4px 15px rgba(212, 175, 55, 0.15);
        }

        * {
          margin: 0;
          padding: 0;
          box-sizing: border-box;
        }

        body {
          font-family: "Poppins", sans-serif;
          background: var(--white);
          min-height: 100vh;
          color: var(--text-dark);
          position: relative;
          overflow-x: hidden;
        }

        /* blue Corner Decorations */
        .corner-decoration {
          position: fixed;
          width: 40px;
          height: 40px;
          background: linear-gradient(45deg, var(--blue), var(--blue-light));
          z-index: -1;
          opacity: 0.15;
        }

        .corner-top-left {
          top: 0;
          left: 0;
          border-radius: 0 0 100% 0;
        }

        .corner-top-right {
          top: 0;
          right: 0;
          border-radius: 0 0 0 100%;
        }

        .corner-bottom-left {
          bottom: 0;
          left: 0;
          border-radius: 0 100% 0 0;
        }

        .corner-bottom-right {
          bottom: 0;
          right: 0;
          border-radius: 100% 0 0 0;
        }

        /* Theme Selector */
        .theme-selector {
          position: fixed;
          top: 20px;
          left: 20px;
          display: flex;
          gap: 8px;
          z-index: 1000;
        }

        .theme-btn {
          width: 28px;
          height: 28px;
          border: 1px solid var(--blue);
          border-radius: 50%;
          cursor: pointer;
          transition: all 0.3s ease;
          position: relative;
          background: var(--white);
        }

        .theme-btn::before {
          content: "";
          position: absolute;
          top: 50%;
          left: 50%;
          width: 12px;
          height: 12px;
          border-radius: 50%;
          transform: translate(-50%, -50%);
          transition: all 0.3s ease;
        }

        .theme-btn[data-theme="blue"]::before {
          background: var(--primary-blue);
        }

        .theme-btn[data-theme="brown"]::before {
          background: var(--warm-brown);
        }

        .theme-btn[data-theme="blue"]::before {
          background: var(--blue);
        }

        .theme-btn:hover,
        .theme-btn.active {
          transform: scale(1.1);
          box-shadow: var(--shadow-soft);
        }

        /* Container */
        .container {
          max-width: 1000px;
          margin: 0 auto;
          padding: 40px 20px;
          position: relative;
          z-index: 1;
        }

        /* Header */
        .header {
          text-align: center;
          margin-bottom: 50px;
        }

        .title {
          font-size: 2.2rem;
          font-weight: 700;
          color: var(--text-dark);
          margin-bottom: 8px;
          position: relative;
        }

        .title::before {
          content: "𓇼";
          color: var(--primary-blue);
          margin-right: 10px;
          font-size: 0.8em;
        }

        .title::after {
          content: "𓇼";
          color: var(--primary-blue);
          margin-left: 10px;
          font-size: 0.8em;
        }

        .subtitle {
          font-size: 1rem;
          color: var(--text-light);
          font-weight: 500;
        }

        /* Main Grid Layout */
        .main-grid {
          display: grid;
          grid-template-columns: 1fr 1fr;
          gap: 50px;
          margin-bottom: 40px;
        }

        /* Timer Section */
        .timer-section {
          display: flex;
          flex-direction: column;
          align-items: center;
          text-align: center;
        }

        /* Circular Timer */
        .timer-circle {
          position: relative;
          width: 280px;
          height: 280px;
          margin-bottom: 30px;
        }

        .timer-svg {
          width: 100%;
          height: 100%;
          transform: rotate(-90deg);
        }

        .timer-bg {
          fill: none;
          stroke: var(--soft-blue);
          stroke-width: 6;
        }

        .timer-progress {
          fill: none;
          stroke: var(--blue);
          stroke-width: 6;
          stroke-linecap: round;
          stroke-dasharray: 785;
          stroke-dashoffset: 785;
          transition: stroke-dashoffset 1s ease;
        }

.grid2-con {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    flex-wrap: wrap;
}

        .timer-content {
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          text-align: center;
        }

        .time {
          font-size: 3.5rem;
          font-weight: 700;
          margin-bottom: 8px;
          font-variant-numeric: tabular-nums;
          color: var(--text-dark);
        }

        .session-info {
          font-size: 1.1rem;
          font-weight: 600;
          color: var(--text-light);
        }

        .timer-circle.active .timer-progress {
          stroke: var(--primary-blue);
        }

        .timer-circle.break-mode .timer-progress {
          stroke: var(--warm-brown);
        }

        .controls {
          display: flex;
          gap: 12px;
          justify-content: center;
          flex-wrap: wrap;
        }

        /* Clean Buttons */
        .btn {
          padding: 8px 20px;
          border: 1px solid var(--blue);
          border-radius: 15px;
          font-size: 0.9rem;
          font-weight: 500;
          cursor: pointer;
          transition: all 0.3s ease;
          font-family: inherit;
          background: var(--white);
          color: var(--text-dark);
          min-width: 80px;
        }

        .btn:hover {
          background: var(--blue-light);
          transform: translateY(-1px);
        }

        .btn.active {
          background: var(--blue);
          color: var(--white);
        }

        /* Stats Section */
        .stats-section {
          display: flex;
          flex-direction: column;
          justify-content: center;
        }

        .section-title {
          font-size: 1.3rem;
          font-weight: 700;
          color: var(--text-dark);
          margin-bottom: 25px;
          text-align: center;
          position: relative;
        }

        .section-title::before {
          content: "♫";
          color: var(--blue);
          margin-right: 8px;
          font-size: 0.8em;
        }

        .stats {
          display: grid;
          grid-template-columns: 1fr;
          gap: 20px;
        }

        .stat-card {
          background: var(--white);
          border: 1px solid var(--soft-blue);
          padding: 25px;
          border-radius: 16px;
          transition: all 0.3s ease;
          cursor: pointer;
          text-align: center;
          position: relative;
        }

        .stat-card::before {
          content: "";
          position: absolute;
          top: 8px;
          left: 50%;
          transform: translateX(-50%);
          width: 20px;
          height: 2px;
          background: var(--blue);
          border-radius: 2px;
        }

        .stat-card:hover {
          transform: translateY(-3px);
          box-shadow: var(--shadow-soft);
          border-color: var(--blue);
        }

        .stat-icon {
          font-size: 1.2rem;
          margin-bottom: 8px;
          color: var(--blue);
          font-weight: 700;
        }

        .stat-number {
          font-size: 2rem;
          font-weight: 700;
          color: var(--blue);
          margin-bottom: 4px;
        }

        .stat-label {
          font-size: 0.9rem;
          color: var(--text-light);
          font-weight: 600;
          text-transform: uppercase;
          letter-spacing: 0.5px;
        }

        /* Tasks Section */
        .tasks-section {
          background: var(--white);
          border: 1px solid var(--soft-blue);
          border-radius: 20px;
          padding: 30px;
          box-shadow: var(--shadow-soft);
          position: relative;
          margin-top: 16px;
        }

        .tasks-section::before {
          content: "";
          position: absolute;
          top: 12px;
          left: 50%;
          transform: translateX(-50%);
          width: 30px;
          height: 2px;
          background: var(--blue);
          border-radius: 2px;
        }

        .task-input-container {
          display: flex;
          gap: 12px;
          margin-bottom: 20px;
        }

        .task-input {
          flex: 1;
          padding: 10px 16px;
          border: 1px solid var(--soft-blue);
          border-radius: 15px;
          font-size: 0.95rem;
          font-family: inherit;
          outline: none;
          transition: all 0.3s ease;
          background: var(--white);
          color: var(--text-dark);
        }

        .task-input::placeholder {
          color: var(--text-light);
        }

        .task-input:focus {
          border-color: var(--blue);
          box-shadow: 0 0 0 2px rgba(55, 139, 212, 0.2);
        }

        .add-btn {
          min-width: 70px;
          padding: 10px 16px;
        }

        .task-list {
          max-height: 250px;
          overflow-y: auto;
        }

        .task-list::-webkit-scrollbar {
          width: 4px;
        }

        .task-list::-webkit-scrollbar-track {
          background: var(--soft-blue);
          border-radius: 10px;
        }

        .task-list::-webkit-scrollbar-thumb {
          background: var(--blue);
          border-radius: 10px;
        }

        .task-item {
          background: var(--white);
          border: 1px solid var(--soft-blue);
          padding: 16px;
          border-radius: 12px;
          margin-bottom: 8px;
          display: flex;
          align-items: center;
          justify-content: space-between;
          transition: all 0.3s ease;
          position: relative;
        }

        .task-item::before {
          content: "꩜";
          position: absolute;
          left: 8px;
          top: 50%;
          transform: translateY(-50%);
          color: var(--blue);
          font-size: 0.8rem;
        }

        .task-item:hover {
          transform: translateX(4px);
          box-shadow: var(--shadow-soft);
          border-color: var(--blue);
        }

        .task-item.completed {
          opacity: 0.7;
          text-decoration: line-through;
        }

        .task-item.completed::before {
          content: "✓";
          color: var(--primary-blue);
        }

        .task-text {
          flex: 1;
          font-weight: 500;
          color: var(--text-dark);
          font-size: 0.95rem;
          margin-left: 20px;
        }

        .task-actions {
          display: flex;
          gap: 8px;
        }

        .task-btn {
          width: 28px;
          height: 28px;
          border: 1px solid var(--blue);
          border-radius: 50%;
          cursor: pointer;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 0.8rem;
          font-weight: 600;
          transition: all 0.3s ease;
          background: var(--white);
          color: var(--text-dark);
        }

        .task-btn:hover {
          transform: scale(1.1);
          background: var(--blue);
          color: var(--white);
        }

        /* Menghilangkan efek coretan (line-through) khusus untuk mood */
.mood-item {
    text-decoration: none !important;
    opacity: 1 !important;
}

/* Warna border kiri berbeda untuk tiap mood agar Na tahu statusnya berubah */
.mood-status-0 { border-left: 5px solid #ccc; }
.mood-status-1 { border-left: 5px solid #ffeb3b; }
.mood-status-2 { border-left: 5px solid #ff5722; }
.mood-status-3 { border-left: 5px solid #90a4ae; }
.mood-status-4 { border-left: 5px solid #f06292; }
.mood-status-5 { border-left: 5px solid #3780d4; }

        .complete-btn {
          border-color: var(--primary-blue);
        }

        .complete-btn:hover {
          background: var(--primary-blue);
        }

        .delete-btn {
          border-color: var(--warm-brown);
        }

        .delete-btn:hover {
          background: var(--warm-brown);
        }

        /* Footer */
        .footer {
          margin-top: 40px;
          text-align: center;
        }

        .made-by {
          font-size: 0.95rem;
          color: var(--text-light);
          font-weight: 500;
        }

        .creator {
          color: var(--blue);
          font-weight: 700;
          font-size: 1.1em;
        }

        /* Notification */
        .notification {
          position: fixed;
          top: 30px;
          right: 30px;
          background: var(--white);
          border: 1px solid var(--blue);
          color: var(--text-dark);
          padding: 12px 20px;
          border-radius: 12px;
          box-shadow: var(--shadow-soft);
          transform: translateX(400px);
          transition: transform 0.4s ease;
          z-index: 1000;
          font-weight: 500;
          max-width: 280px;
          font-size: 0.9rem;
        }

        .notification.show {
          transform: translateX(0);
        }

        /* Popup Modal */
        .popup-overlay {
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: rgba(0, 0, 0, 0.5);
          display: flex;
          align-items: center;
          justify-content: center;
          z-index: 2000;
          opacity: 0;
          visibility: hidden;
          transition: all 0.3s ease;
        }

        .popup-overlay.show {
          opacity: 1;
          visibility: visible;
        }

        .popup {
          background: var(--white);
          border: 2px solid var(--blue);
          border-radius: 20px;
          padding: 30px;
          max-width: 400px;
          width: 90%;
          text-align: center;
          box-shadow: var(--shadow-hover);
          transform: scale(0.8);
          transition: transform 0.3s ease;
        }

        .popup-overlay.show .popup {
          transform: scale(1);
        }

        .popup h3 {
          color: var(--blue);
          font-size: 1.5rem;
          margin-bottom: 15px;
          font-weight: 700;
        }

        .popup p {
          color: var(--text-dark);
          font-size: 1rem;
          line-height: 1.6;
          margin-bottom: 20px;
        }

        .popup-close {
          background: var(--blue);
          color: var(--white);
          border: none;
          padding: 8px 16px;
          border-radius: 15px;
          font-weight: 600;
          cursor: pointer;
          transition: all 0.3s ease;
          font-size: 0.9rem;
        }

        .popup-close:hover {
          background: var(--warm-brown);
          transform: translateY(-1px);
        }

        /* Theme variations */
        body.theme-grey {
          --primary-blue: #a4b6bc;
          --soft-blue: #e9edef;
          --warm-blue: #374f5d;
          --blue: #63808d;
        }

        body.theme-blue {
          --primary-blue: #f4e4a6;
          --soft-blue: #fffde7;
          --warm-brown: #007fbf;
          --blue: #379ad4;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
          .polaroid {
            height: 22vh;
            width: 32vh;
            border-radius: 10px;
            padding: 5px 5px 20px 5px;
            margin: 12px;
          }

          .polaroid-container {
    border-radius: 10px;
    padding: 6px; /* Space around image */
    padding-bottom: 10px; /* Extra space for the quote */
    margin: 2px;
}

    #shark-rawr { width: 55px; bottom: 80px; right: 10px; }

.quote-text {
    margin-top: 4px;
    font-family: 'Poppins', sans-serif; /* Give it a handwritten feel */
    font-size: 0.9rem;
    color: #333;
    max-width: 30vh;
}

.top-section {
    background: var(--white);
    border-radius: 24px;
    padding: 6px;
    margin: 8px 0 8px;
    box-shadow: var(--shadow-soft);
}

.grid2-con {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 4px;
    flex-wrap: wrap;
}

          .container {
            padding: 20px 15px;
          }

          .main-grid {
            grid-template-columns: 1fr;
            gap: 30px;
          }

          .timer-circle {
            width: 240px;
            height: 240px;
          }

          .time {
            font-size: 2.8rem;
          }

          .controls {
            flex-direction: column;
            align-items: center;
            gap: 10px;
          }

          .btn {
            width: 100%;
            max-width: 180px;
          }

          .theme-selector {
            position: relative;
            top: auto;
            left: auto;
            justify-content: center;
            margin-bottom: 20px;
          }

          .notification {
            top: 20px;
            right: 15px;
            left: 15px;
            transform: translateY(-100px);
            max-width: none;
          }

          .notification.show {
            transform: translateY(0);
          }

          .task-input-container {
            flex-direction: column;
            gap: 10px;
          }

          .corner-decoration {
            width: 30px;
            height: 30px;
          }
        }

        @media (max-width: 480px) {
          .polaroid {
            height: 18vh;
            width: 28vh;
            border-radius: 10px;
            padding: 5px 5px 20px 5px;
            margin: 12px;
          }

          .polaroid-container {
    border-radius: 10px;
    padding: 6px; /* Space around image */
    padding-bottom: 10px; /* Extra space for the quote */
    margin: 2px;
}

.quote-text {
    margin-top: 4px;
    font-family: 'Poppins', sans-serif; /* Give it a handwritten feel */
    font-size: 0.9rem;
    color: #333;
    max-width: 30vh;
}

.top-section {
    background: var(--white);
    border-radius: 24px;
    padding: 6px;
    margin: 8px 0 8px;
    box-shadow: var(--shadow-soft);
}

.grid2-con {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 4px;
    flex-wrap: wrap;
}

    #shark-rawr { width: 55px; bottom: 80px; right: 10px; }

          .timer-circle {
            width: 200px;
            height: 200px;
          }

          .time {
            font-size: 2.5rem;
          }

          .title {
            font-size: 1.8rem;
          }

          .tasks-section {
            padding: 20px;
          }
        }

        #shark-rawr {
    position: fixed;
    bottom: 85px;
    right: 30px;
    width: 90px;
    height: auto;
    z-index: 50;
    animation: shark-rawr 3s ease-in-out infinite;
    cursor: pointer;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s;
}

#shark-rawr:hover {
    transform: scale(1.15) rotate(8deg);
}

.lofi-card {
    margin-top: 25px;
    padding: 15px;
    background: var(--white);
    border: 1px solid var(--soft-pink);
    border-radius: 16px;
    /* Ganti display flex ini atau ubah arahnya */
    display: flex;
    flex-direction: column; /* Ini akan memaksa konten menumpuk ke bawah */
    align-items: center;    /* Agar konten rata tengah */
    gap: 15px;              /* Memberi jarak antara teks dan tombol */
    width: 100%;
    max-width: 280px;
    box-shadow: 0 8px 30px rgba(148, 165, 183, 0.194);
}

.lofi-info {
    display: flex;
    flex-direction: column; /* Agar icon dan teks juga menumpuk */
    align-items: center;
    text-align: center;
    gap: 5px;
}

.track-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
}

.status {
    font-size: 0.7rem;
    color: var(--text-light);
    margin: 0;
}

.music-btn {
    min-width: 60px !important;
    padding: 5px 12px !important;
    font-size: 0.8rem !important;
}

.music-btn.playing {
    background: var(--gold) !important;
    color: rgb(71, 71, 71) !important;
}

.toast[data-theme="blue"] {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: var(--blue);
    color: rgb(255, 255, 255);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 101;
    box-shadow: 0 8px 30px rgba(20, 137, 255, 0.4);
}

.toast[data-theme="grey"] {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: var(--light-brown);
    color: rgb(255, 255, 255);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 101;
    box-shadow: 0 8px 30px rgba(88, 102, 117, 0.4);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.highlight {
    background: linear-gradient(180deg, #637b9f 50%, #5a7bac 50%);
    color: white;
    padding: 0 6px;
    border-radius: 4px;
}
