* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Google Sans', Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
  }
  
  body {
    background-color: #202124;
    color: #e8eaed;
    min-height: 100vh;
    overflow-x: hidden;
    touch-action: pan-y;
  }
  
  .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    transition: transform 0.3s ease;
  }
  
  .container.sidebar-open {
    transform: translateX(250px);
  }
  
  header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: space-between;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 500;
    color: #e8eaed;
    text-decoration: none;
  }
  
  .circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #f8a8ff, #8ab4f8);
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background-color: #303134;
    z-index: 100;
    transition: left 0.3s ease;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  }
  
  .sidebar.open {
    left: 0;
  }
  
  .sidebar-header {
    padding: 0 20px 10px;
    font-size: 20px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .add-tab-button {
    background: none;
    border: none;
    color: #8ab4f8;
    cursor: pointer;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 16px;
    background-color: rgba(138, 180, 248, 0.2);
    margin-top: 10px;
    display: block;
    width: calc(100% - 40px);
    margin-left: 20px;
    text-align: center;
  }
  
  .add-tab-button:hover {
    background-color: rgba(138, 180, 248, 0.3);
  }
  
  .sidebar-divider {
    height: 1px;
    background-color: #5f6368;
    margin: 10px 0;
  }
  
  .sidebar-content {
    padding: 10px 20px;
    overflow-y: auto;
    max-height: calc(100vh - 120px);
  }
  
  .time-category {
    margin-bottom: 20px;
  }
  
  .category-title {
    font-size: 16px;
    color: #8ab4f8;
    margin-bottom: 10px;
  }
  
  .tab-list {
    list-style: none;
  }
  
  .tab-item {
    padding: 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .tab-item:hover {
    background-color: #4a4e53;
  }
  
  .tab-item.active {
    color: #8ab4f8;
    font-weight: 500;
  }
  
  .tab-actions {
    display: flex;
    gap: 8px;
  }
  
  .tab-rename,
  .tab-delete {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
  }
  
  .tab-rename:hover,
  .tab-delete:hover {
    background-color: #5f6368;
  }
  
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
  
  .notes-container {
    background: #303134;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }
  
  .tab-header {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #5f6368;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }
  
  .tab-header:hover {
    color: #8ab4f8;
  }
  
  .notes-output {
    min-height: 200px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 12px;
    background-color: #3c4043;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .notes-output img {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
  }
  
  .input-area {
    display: flex;
    align-items: center;
    border: 1px solid #5f6368;
    border-radius: 24px;
    padding: 12px 16px;
    background: #3c4043;
  }
  
  .note-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 0 8px;
    background: transparent;
    color: #e8eaed;
  }
  
  .button-group {
    display: flex;
    gap: 8px;
  }
  
  .action-button {
    background-color: #8ab4f8;
    color: #202124;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .action-button:hover {
    background-color: #aecbfa;
  }
  
  .image-button {
    position: relative;
    overflow: hidden;
  }
  
  .image-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
  }
  
  .controls {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
  }
  
  .clear-button, .undo-button {
    background-color: #3c4043;
    border: 1px solid #5f6368;
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #ef7d7d;
  }
  
  .clear-button:hover, .undo-button:hover {
    background-color: #4a4e53;
  }

  .empty-state {
    text-align: center;
    color: #9aa0a6;
    font-size: 14px;
    padding: 10px 0;
  }

  .welcome-message {
    text-align: center;
    color: #9aa0a6;
    font-size: 16px;
    padding: 40px 0;
  }

  /* Mini Sidebar Styles */
  .mini-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 100vh;
    background-color: #303134;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    transition: all 0.3s ease;
  }

  .mini-sidebar.hidden {
    display: none;
  }

  .mini-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #f8a8ff, #8ab4f8);
    margin-bottom: 20px;
  }

  .mini-menu-button {
    background: none;
    border: none;
    color: #e8eaed;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
  }

  /* Modal Styles */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .modal.active {
    opacity: 1;
    pointer-events: auto;
  }

  .modal-content {
    background-color: #303134;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .modal-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #e8eaed;
  }

  .modal-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #5f6368;
    background-color: #3c4043;
    color: #e8eaed;
    font-size: 16px;
  }

  .modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }

  .modal-button {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
  }

  .modal-cancel {
    background-color: #3c4043;
    color: #e8eaed;
    border: 1px solid #5f6368;
  }

  .modal-confirm {
    background-color: #8ab4f8;
    color: #202124;
  }

  .toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #303134;
    color: #e8eaed;
    padding: 12px 24px;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .toast.visible {
    opacity: 1;
  }

  .toast-button {
    background: none;
    border: none;
    color: #8ab4f8;
    cursor: pointer;
    font-weight: bold;
    margin-left: 8px;
  }

  /* Mobile Top Bar */
  .mobile-top-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #303134;
    padding: 12px 15px;
    z-index: 98;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    align-items: center;
    justify-content: space-between;
  }

  .mobile-menu-button, .mobile-add-button {
    background: none;
    border: none;
    color: #e8eaed;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
  }

  .mobile-note-title {
    font-size: 16px;
    font-weight: 500;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }

  @media (max-width: 768px) {
    .container {
      padding: 15px;
      margin-top: 60px; /* Make space for fixed top bar */
    }
    
    .notes-container {
      padding: 15px;
    }
    
    .notes-output {
      padding: 15px;
      max-height: 50vh;
    }

    .mobile-top-bar {
      display: flex;
    }

    .mini-sidebar {
      display: none;
    }

    .logo .circle {
      display: none;
    }

    .logo span {
      display: none;
    }

    .tab-header {
      display: none;
    }

    /* Hide the sidebar completely when closed on mobile */
    .sidebar:not(.open) {
      display: none;
    }

    /* Adjust container transform for mobile */
    .container.sidebar-open {
      transform: none;
    }
  }

  @media (min-width: 769px) {
    .mobile-top-bar {
      display: none !important;
    }
  }