@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

      :root {
        --primary: #6366f1;
        --primary-dark: #4f46e5;
        --secondary: #10b981;
        --dark: #1e293b;
        --light: #f8fafc;
        --gray: #94a3b8;
        --danger: #ef4444;
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: "Poppins", sans-serif;
      }

      body {
        background-color: var(--light);
        color: var(--dark);
        overflow-x: hidden;
      }

      /* Custom scrollbar */
      ::-webkit-scrollbar {
        width: 8px;
      }

      ::-webkit-scrollbar-track {
        background: #f1f1f1;
      }

      ::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
      }

      ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
      }

      /* Loading screen */
      .loading-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #1e293b, #0f172a);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        color: white;
      }

      .loading-logo {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 2rem;
        background: linear-gradient(to right, #6366f1, #10b981);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: pulse 2s infinite;
      }

      @keyframes pulse {
        0% {
          transform: scale(1);
        }
        50% {
          transform: scale(1.05);
        }
        100% {
          transform: scale(1);
        }
      }

      .loading-progress {
        font-size: 1.5rem;
        margin-bottom: 1rem;
      }

      .loading-message {
        font-size: 1rem;
        margin-bottom: 2rem;
        color: var(--gray);
        text-align: center;
        max-width: 80%;
      }

      .loading-footer {
        position: absolute;
        bottom: 2rem;
        font-size: 0.8rem;
        color: var(--gray);
      }

      /* Focus mode overlay */
      .focus-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 9998;
        display: none;
        justify-content: center;
        align-items: center;
        color: white;
        flex-direction: column;
      }

      .focus-overlay h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
      }

      /* Music player */
      .music-player {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 1rem;
        padding: 1.5rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        width: 100%;
        max-width: 400px;
        margin-top: 2rem;
      }

      .song-info {
        display: flex;
        align-items: center;
        margin-bottom: 1.5rem;
      }

      .song-cover {
        width: 60px;
        height: 60px;
        border-radius: 10px;
        object-fit: cover;
        margin-right: 1rem;
      }

      .song-details {
        flex: 1;
      }

      .song-title {
        font-weight: 600;
        margin-bottom: 0.2rem;
      }

      .song-artist {
        font-size: 0.8rem;
        color: var(--gray);
      }

      .progress-container {
        width: 100%;
        height: 6px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
        margin: 1rem 0;
        cursor: pointer;
      }

      .progress-bar {
        height: 100%;
        background: linear-gradient(to right, var(--primary), var(--secondary));
        border-radius: 3px;
        width: 0%;
        position: relative;
      }

      .progress-bar::after {
        content: "";
        position: absolute;
        right: -5px;
        top: 50%;
        transform: translateY(-50%);
        width: 10px;
        height: 10px;
        background: white;
        border-radius: 50%;
        opacity: 0;
        transition: opacity 0.2s;
      }

      .progress-container:hover .progress-bar::after {
        opacity: 1;
      }

      .time-info {
        display: flex;
        justify-content: space-between;
        font-size: 0.8rem;
        color: var(--gray);
        margin-bottom: 1.5rem;
      }

      .controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .control-btn {
        background: none;
        border: none;
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 50%;
        transition: all 0.2s;
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .control-btn:hover {
        background: rgba(255, 255, 255, 0.1);
      }

      .play-btn {
        background: var(--primary);
        width: 50px;
        height: 50px;
      }

      .play-btn:hover {
        background: var(--primary-dark);
      }

      .volume-container {
        display: flex;
        align-items: center;
        margin-top: 1rem;
      }

      .volume-icon {
        margin-right: 0.5rem;
        font-size: 1rem;
      }

      .volume-slider {
        flex: 1;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
        cursor: pointer;
      }

      .volume-progress {
        height: 100%;
        background: white;
        border-radius: 2px;
        width: 100%;
      }

      /* Timer */
      .timer-container {
        font-size: 5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        text-align: center;
        background: linear-gradient(to right, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }

      /* Task input */
      .task-input-container {
        background: white;
        border-radius: 1rem;
        padding: 2rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 600px;
        margin: 2rem auto;
      }

      .input-group {
        margin-bottom: 1.5rem;
      }

      .input-label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
      }

      .input-field {
        width: 100%;
        padding: 0.8rem 1rem;
        border: 2px solid #e2e8f0;
        border-radius: 0.5rem;
        font-size: 1rem;
        transition: all 0.2s;
      }

      .input-field:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
      }

      .time-inputs {
        display: flex;
        gap: 1rem;
      }

      .time-input {
        flex: 1;
      }

      /* Buttons */
      .btn {
        padding: 0.8rem 1.5rem;
        border-radius: 0.5rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        border: none;
        font-size: 1rem;
      }

      .btn-primary {
        background: var(--primary);
        color: white;
      }

      .btn-primary:hover {
        background: var(--primary-dark);
      }

      .btn-secondary {
        background: var(--secondary);
        color: white;
      }

      .btn-secondary:hover {
        background: #0d9c6d;
      }

      .btn-danger {
        background: var(--danger);
        color: white;
      }

      .btn-danger:hover {
        background: #dc2626;
      }

      /* Results dashboard */
      .results-container {
        background: white;
        border-radius: 1rem;
        padding: 2rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 800px;
        margin: 2rem auto;
        display: none;
      }

      .results-header {
        text-align: center;
        margin-bottom: 2rem;
      }

      .results-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
      }

      .results-subtitle {
        color: var(--gray);
      }

      .metrics-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-bottom: 2rem;
      }

      .metric-card {
        background: #f8fafc;
        border-radius: 0.5rem;
        padding: 1.5rem;
        text-align: center;
      }

      .metric-value {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        color: var(--primary);
      }

      .metric-label {
        color: var(--gray);
        font-size: 0.9rem;
      }

      .feedback-container {
        background: #f8fafc;
        border-radius: 0.5rem;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
      }

      .feedback-title {
        font-weight: 600;
        margin-bottom: 1rem;
      }

      .feedback-text {
        line-height: 1.6;
      }

      /* Focus mode */
      .focus-mode {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #1e293b, #0f172a);
        z-index: 9997;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: white;
      }

      .focus-task {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
        max-width: 80%;
      }

      .focus-controls {
        margin-top: 2rem;
        display: flex;
        gap: 1rem;
      }

      /* Animations */
      .fade-in {
        animation: fadeIn 0.5s ease-in-out;
      }

      @keyframes fadeIn {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }

      .slide-up {
        animation: slideUp 0.5s ease-out;
      }

      @keyframes slideUp {
        from {
          transform: translateY(20px);
          opacity: 0;
        }
        to {
          transform: translateY(0);
          opacity: 1;
        }
      }

      /* Responsive */
      @media (max-width: 768px) {
        .timer-container {
          font-size: 3rem;
        }

        .metrics-container {
          grid-template-columns: 1fr;
        }

        .time-inputs {
          flex-direction: column;
          gap: 0;
        }
      }