.header {
  display: flex;
  align-items: center;
  gap: 16px;

  margin: 22px 16px;
  padding: 16px 22px;

  border-radius: 22px;

  background: rgba(232, 232, 232, 0.85);
  backdrop-filter: blur(14px);

  border: 1px solid rgba(250, 250, 250, 0.6);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  transition: all 0.3s ease;
}

/* Smooth elevation on focus */
.header:focus-within {
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Search icon */
.header i.fa-search {
  font-size: 17px;
  color: #98a8b8;
  transition: all 0.25s ease;
}

.header:focus-within i.fa-search {
  color: #2563eb;
}

/* Input */
#searchInput {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;

  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.2px;
width: 94%;
  color: #1e293b;
  caret-color: #2563eb;
}

#searchInput::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Clear button */
#clearSearch {
  font-size: 15px;
  color: #b0bcc8;
  cursor: pointer;

  padding: 8px;
  border-radius: 50%;

  transition: all 0.2s ease;
  display: none;
}

#clearSearch:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  transform: scale(1.05);
}

/* Account icon */


      .button:disabled {
      
        cursor: not-allowed;
      }

      html {
        scroll-behavior: smooth;
      }

      
      

      /* Full screen overlay for the guided tour */
        .nav-wrapper {
            position: fixed;
            bottom: calc(20px + var(--safe-bottom)); /* Dynamic safe-area positioning */
            left: 0;
            width: 100%;
            display: flex;
            justify-content: center;
            z-index: 1000;
            pointer-events: none; 
        }

        .glass-nav {
            pointer-events: auto; 
            background: var(--glass-bg);
            backdrop-filter: blur(25px) saturate(150%);
            -webkit-backdrop-filter: blur(25px) saturate(150%);
            border: 1px solid var(--glass-border);
            
            width: 90%;
            max-width: 420px;
            min-width: 300px;
            
            padding: 10px 12px;
            border-radius: 60px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 15px 35px rgba(0,0,0,0.5);
        }

        /* --- 4. NAV ITEMS & ANIMATION (Navbar Logic) --- */
        .nav-item {
            text-decoration: none;
            color: rgba(255, 255, 255, 0.6);
            display: flex;
            align-items: center;
            padding: 12px 16px;
            border-radius: 40px;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
            position: relative;
            overflow: hidden;
        }

        .nav-item i {
            font-size: 1.25rem;
            position: relative;
            z-index: 2;
        }


        .nav-text {
            font-weight: 600;
            font-size: 0.9rem;
            white-space: nowrap;
            max-width: 0;
            opacity: 0;
            margin-left: 0;
            transition: all 0.4s ease;
        }

        /* Active State */
        .nav-item.active {
            background-color: var(--active-color);
            color: #121212;
            padding-right: 22px;
            padding-left: 22px;
        }

        .nav-item.active .nav-text {
            max-width: 100px;
            opacity: 1;
            margin-left: 10px;
        }

   /* base theme setup */
:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --card-color: #f4f4f4;
  --sidebar-bg: white;
  --modal-bg: #fff;
  --button-hover: rgb(85, 85, 85); 
  --light-theme-fix: rgb(172, 172, 172);
  --footer-color: #bebebe;
  --footer-button: #fff;
--glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: blur(12px);
  --note-bg: rgb(255, 167, 3);
  --list-bg: #f89494;
             --safe-bottom: env(safe-area-inset-bottom, 20px); 
                  --glass-bg: rgba(28, 28, 28, 0.75);
            
            --active-color: #FDCF6F;
             --glass: rgba(255, 255, 255, 0.383);
            --glass-heavy: rgba(255, 255, 255, 0.4);
            --glass-border: rgba(255, 255, 255, 0.4);
            --accent: #6366f1;
            --text: #0f172a;
            --sub-text: #475569;
            --grad: linear-gradient(45deg, #eef2ff 0%, #fce7f3 100%);
}

/* dark theme */
[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #ffffff;
  --card-color: #1f1f1f;
    --sidebar-bg: black;
  --modal-bg: #000;
  --button-hover: rgb(114, 114, 114); 
    --light-theme-fix: rgb(54, 54, 54);
    --footer-color: #353535;
    --footer-button: #000;
      --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: blur(8px);
  --note-bg: rgb(255, 255, 94);
  --list-bg: rgb(142, 192, 233);
}


      body {
font-family: 'Poppins', sans-serif;
background: var(--bg-color);
        margin: 0;
        padding: 0;
     transition: background-color 0.6s ease, color 0.6s ease;
transition: 0.4s ease-in-out;
        display: flex;
        flex-direction: column;
        height: 100vh;
      }

      h1 {
        
        background-clip: text;
    color: var(--text-color);

        text-align: center;
        padding: 10px;
        margin: 0;
      }

      .custom-sort-wrapper {
  display: flex;
  justify-content: center;
  padding: 12px 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.filter-group {
  position: relative;
  display: flex;
  background-color: #f1f3f5;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  user-select: none;
}

.filter-item {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  cursor: pointer;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.filter-item.active {
  color: #1e293b;
}

.filter-item .icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  background: none;
}

.filter-item.active .icon {
  opacity: 1;
}

/* The magic sliding background */
.filter-segment-glow {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: 70px; /* Initial width, JS updates this */
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.filter-item:hover:not(.active) {
  color: #334155;
}

      h2 {
        text-align: center;
  color: var(--text-color);
        background-clip: text;
 
        
        align-items: center; 
        gap: 0.5em; 
        font-weight: bold;
      }

      * {
        -webkit-tap-highlight-color: transparent;
        outline: none;
      }

      /* Fade-in animation for modals */
      @keyframes fadeIn {
        from {
          opacity: 0;
          transform: translateY(-20px);
        }

        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* Fade-out animation for modals */
      @keyframes fadeOut {
        from {
          opacity: 1;
          transform: translateY(0);
        }

        to {
          opacity: 0;
          transform: translateY(-20px);
        }
      }

      /* Apply animation to modal content */
      .modal-content {
        animation: fadeIn 0.3s ease forwards;
        color: white;
      }

      .info-box {
    display: flex;
    align-items: flex-start;
background: var(--bg-color);
    color: var(--text-color);
    padding: 14px 16px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(60,64,67,0.15);
    max-width: 500px;
    margin-top: 20px;
    align-items: center;
    justify-content: center;
  }

  .info-icon {
    background-color: #1a73e8;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 16px;
    flex-shrink: 0;
  }


  .info-text {
    font-size: 15px;
  }

  #infoContainer {
    display: none;
  }

            .modal-content2 {
             animation: fadeIn 0.3s ease forwards;
       
        padding: 20px;
        border-radius: 15px;
       
   background: whitesmoke;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* soft shadow */
      display: flex;
      align-items: center;
      flex-direction: column;
      }

     .modal-content button {
width: 98%;
display: flex;
justify-content: space-between;
     }

      #deletePasswordModal {
        display: none;
      }

      /* Hide modal with fade-out animation */

      textarea {
        width: 95%;
        height: calc(100% - 40%);
        margin: 10px;
        padding: 10px;
        border: none;
        border-radius: 14px;
font-family: 'Poppins', sans-serif;
        font-size: 16px;
      }

      textarea:focus {
      border: 1px solid #005eb8;
      }


      .container {
        flex: 1;
        padding: 10px;
        overflow-y: auto;
       
      }

  

/* Active state: fill screen */

/* Full Screen Add Note Styles */
.add-note-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.add-note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: white;
  border-bottom: 1px solid #e8e8e8;
}

.add-list-header {
    display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: white;
  border-bottom: 1px solid #e8e8e8;
}

.header-left {
  display: none;
  align-items: center;
}

.header-tabs {
  display: flex;
  gap: 8px;
}

.header-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition: all 0.2s;
  width: 40px;
  height: 40px;
}

.header-btn:hover {
  background: #f5f5f5;
}

.tab-btn-header {
 display: none;
}

.tab-btn-header:hover {
 display: none;
}

.tab-btn-header.active {
 display: none;
}

.toolbar-secondary {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: white;
  border-bottom: 1px solid #f0f0f0;
  gap: 8px;
  overflow-x: auto;
  flex-direction: row-reverse;
}



.tool-btn {
  background: rgba(0, 0, 0, 0.05); 
            border: 1px solid transparent;
            padding: 10px 16px; 
            border-radius: 14px; 
            font-weight: 600;
            color: #0f172a; 
            display: flex; 
            align-items: center; 
            gap: 8px;
            font-size: 14px;
            backdrop-filter: blur(10px);
            border: 1px solid white;
}

.tool-btn:hover {
  background: #f5f5f5;
  border-color: #667eea;
}

.tool-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
}

.note-editor {
  flex: 1;
  display: flex;

  background: white;

}

.note-input-wrapper {
  flex: 1;
  padding: 24px 20px;
}

.note-title-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  background: transparent;
  font-family: inherit;
}

.note-title-input::placeholder {
  color: #ccc;
}

.note-content-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  resize: none;
  min-height: 80%;
  background: transparent;
  font-family: inherit;
}

.note-content-input::placeholder {
  color: #bbb;
}

.bottom-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: white;
  border-top: 1px solid #e8e8e8;
}

.bottom-left {
  display: flex;
  gap: 16px;
  align-items: center;
}

.bottom-right {
  display: flex;
  align-items: center;
}

.action-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background: #f5f5f5;
  transform: scale(1.1);
}

.action-btn:active {
  transform: scale(0.95);
}

.save-btn-bottom {
  background: rgba(0, 0, 0, 0.05); 
            border: 1px solid transparent;
            padding: 10px 16px; 
            border-radius: 14px; 
            font-weight: 600;
            color: #926cfa; 
            display: flex; 
            align-items: center; 
            gap: 8px;
            font-size: 14px;
            backdrop-filter: blur(10px);
            border: 1px solid white;
}

#ubtn {
  flex-wrap: nowrap;

}

.save-btn-bottom:hover {
  transform: translateY(-1px);
border: #00c3ff solid 1px;
}

.save-btn-bottom:active {
  transform: translateY(0);
}

#list-input {
  display: flex;
}
/* Checklist specific styles */


.list-item-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}

.list-item-input:focus {
  border-color: #667eea;
  background: white;
}

.add-item-btn {
  border: 1px solid #667eea79;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 99%;
}

.add-item-btn:hover {
background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
transition: all 0.2s;
}

.add-item-btn:active {
  transform: scale(0.95);
}



/* Modal Overlay */
.modal-welcome {
  display: flex;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal Content Container */
.modal-content-welcome {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: auto;
  padding: 0;
  border-radius: 20px;
  width: 50%;
  height: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
  overflow: hidden;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modal Header */
.modal-header-welcome {
  padding: 30px 30px 20px;
  text-align: center;
  color: white;
  position: relative;
}

.version-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.modal-header-welcome h2 {
  margin: 10px 0 5px;
  font-size: 32px;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-header-welcome h3 {
  margin: 5px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
}

/* Modal Body */
.modal-body {
  background: white;
  padding: 30px;
  border-radius: 20px 20px 0 0;
  margin-top: 20px;
}

.update-type {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.update-type-1 {
  background: red;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.update-type i {
  font-size: 18px;
}

/* What's New Section */
.whats-new {
  margin-top: 20px;
}

.whats-new h4 {
  color: #333;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
}

.whats-new ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.whats-new li {
  padding: 12px 15px;
  margin-bottom: 10px;
  background: #f8f9fa;
  border-radius: 10px;
  color: #333;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.whats-new li:hover {
  background: #e9ecef;
  border-left-color: #667eea;
  transform: translateX(5px);
}

.whats-new li i {
  color: #667eea;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* Continue Button */
.continue-btn {
  width: 100%;
  padding: 15px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
}

.continue-btn:active {
  transform: translateY(0);
}

.continue-btn i {
  transition: transform 0.3s ease;
}

.continue-btn:hover i {
  transform: translateX(5px);
}

.continue-btn-close {
  width: 100%;
  padding: 15px 30px;
  background: linear-gradient(135deg, #ef5959 0%, #ff9292 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.continue-btn-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 102, 102, 0.6);
}

.continue-btn-close:active {
  transform: translateY(0);
}

.continue-btn-close i {
  transition: transform 0.3s ease;
}

.continue-btn-close:hover i {
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 600px) {
  .modal-content-welcome {
    width: 95%;
    margin: 20px auto;
  }

  .modal-header-welcome h2 {
    font-size: 26px;
  }

  .modal-header h3 {
    font-size: 14px;
  }

  .modal-body {
    padding: 20px;
  }

  .continue-btn {
    width: 100%;
    
  }
}
     

    .noNotesMessage {
    /* 1. Sizing and Spacing */
    padding: 30px 60px; /* Generous padding for a 'big' look */
    max-width: 80%; /* Ensures it doesn't get too wide on large screens */
    text-align: center; /* Centers the text within the element */

    /* 2. Typography */
    font-size: 2.5em; /* Significantly larger font size */
    font-weight: 800; /* Extra bold text */
    color: #858585; /* Darker text for better contrast */
    line-height: 1.2;

    /* 3. Visual Style */
    background-color: #ffffff; /* Crisp white background */
  
   
    transition: transform 0.3s ease-in-out; /* Smooth transition for hover effect */
}

           #noListsMessage {
         padding: 30px 60px; /* Generous padding for a 'big' look */
    max-width: 80%; /* Ensures it doesn't get too wide on large screens */
    text-align: center; /* Centers the text within the element */

    /* 2. Typography */
    font-size: 2.5em; /* Significantly larger font size */
    font-weight: 800; /* Extra bold text */
    color: #858585; /* Darker text for better contrast */
    line-height: 1.2;

    /* 3. Visual Style */
    background-color: #ffffff; /* Crisp white background */
  
   
    transition: transform 0.3s ease-in-out; /* Smooth transition for hover effect */
      }

#items-no {
    padding: 30px 60px; /* Generous padding for a 'big' look */
    max-width: 80%; /* Ensures it doesn't get too wide on large screens */
    text-align: center; /* Centers the text within the element */

    /* 2. Typography */
    font-size: 20px; /* Significantly larger font size */
    font-weight: 800; /* Extra bold text */
    color: #858585; /* Darker text for better contrast */
    line-height: 1.2;

    /* 3. Visual Style */
    background-color: #ffffff; /* Crisp white background */
  
   
    transition: transform 0.3s ease-in-out; /* Smooth transition for hover effect */
}
    

      /* General modal styling */
      .modal {
        display: flex;
        /* Use flexbox for centering */
        position: fixed;
        top: 50%;
 
        color: var(--text-color);
      left: 0;
        top: 0;
        width: 100%;
        /* Full width */
        height: 100%;
        /* Full height */
        background-color: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
        z-index: 100000;
      }

      .modal-content {
      color: #000;
        padding: 20px;
        width: 300px;
    background: rgba(255, 255, 255, 0.664); /* semi-transparent */
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2); /* subtle border */
  backdrop-filter: blur(10px); /* blur the background behind the element */
 
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* soft shadow */
        top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
      }

      /* Hidden class to hide elements */
      .modal.hidden {
        display: none;
        
      }

      /* Modal Button Styles */
.modal-button {
 
     color: #000;
  background: white;
 
  border: 1px solid var(--text-color);
  border-radius: 50%;
  width: 56px;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.modal-btn {
  background: transparent;
color: black;
   
   
    height: 45px; /* Increased height */
  text-align: center;
    align-items: center; /* Center icon vertically */
    justify-content: center; /* Center icon horizontally */
    font-size: 18px; /* Icon size */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s, transform 0.2s; /* Smooth transition */
}

.modal-bn {
  background: transparent;
  color: var(--text-color);
  width: 50px;           /* Fixed width for circle */
  height: 50px;          /* Fixed height for circle */
  display: flex;
  border-radius: 50%;    /* Makes it a perfect circle */
  text-align: center;
  align-items: center;   /* Center icon vertically */
  justify-content: center; /* Center icon horizontally */
  font-size: 30px;       /* Icon size */
  cursor: pointer;       /* Pointer cursor on hover */
  transition: background-color 0.3s, transform 0.2s; /* Smooth transition */
  margin-left: 70%;
}

#btnAnimation {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  height: 180%;
  transform: translate(-50%, -50%);
  pointer-events: none; /* so animation doesn't block clicks */
}

.modal-bn:hover {
  background: transparent;
  color: red;
}

.modal-btn-close {
 background:  linear-gradient(135deg, #fe8989, #ff4343);
     color: #000;
   border: 2px solid black;
   display: flex;
  align-items: center;
  justify-content: center;
height: 4%;  
  text-align: center;
    align-items: center; /* Center icon vertically */
    justify-content: center; /* Center icon horizontally */
    font-size: 18px; /* Icon size */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s, transform 0.2s; /* Smooth transition */
}

.modal-btn:hover {
  transform: scale(1.05); /* Slightly enlarge on hover */
  background: linear-gradient(135deg, #89f7fe, #66a6ff);
}


.modal-btn-close:hover {
  transform: scale(1.05); /* Slightly enlarge on hover */
}
/* Modal Button Hover Effect */
.modal-button:hover {
    background: var(--light-theme-fix); /* Light gray background on hover */
    transform: scale(1.05); /* Slightly enlarge on hover */
}

      /* Styling for password input fields */
      input[type="password"] {
        width: 100%;
        /* Full width */
        padding: 10px;
        /* Padding inside the input */
        margin: 10px 0;
        /* Margin above and below */
        border: 1px solid #ccc;
        /* Light gray border */
        border-radius: 4px;
        /* Rounded corners */
      }

      /* Button styling */
button {
        padding: 10px 15px;
        /* Padding for buttons */
        margin: 5px 0;
        /* Margin around buttons */
        cursor: pointer;
        /* Pointer cursor on hover */
        border: none;
        /* No border */
    color: var(--bg-color);
        /* Teal */
     background: var(--text-color);
     
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
        /* Orange background */
font-weight: bolder;
        /* White text */
        border-radius: 20px;
        /* Rounded corners */
        text-align: center;
        /* Smooth transition for hover effect */
      }

     button:hover {
    background: var(--button-hover); 
    }

    #syncStatus {
      color: var(--text-color);
    }

    h4 {
      color: var(--text-color);
    }

      .input-field {
        width: 95%;
        /* Full width */
        padding: 12px;
        /* Padding inside the input */
        margin: 10px 0;
        /* Margin above and below */
        border: 1px solid #ccc;
        /* Light gray border */
        border-radius: 4px;
        /* Rounded corners */
        transition: border-color 0.3s, box-shadow 0.3s;
        /* Smooth transition for focus effects */
      }

      .input-field:focus {
        border-color: #ffa500;
        /* Change border color on focus */
        box-shadow: 0 0 5px rgba(255, 165, 0, 0.5);
        /* Add a subtle shadow effect */
        outline: none;
        /* Remove default outline */
      }

      .close-button {
         background: linear-gradient(135deg, #f89494, #d80000);
        /* Red background for close button */
      }

      .close-button:hover {
        background: #aa1b1b;
        /* Darker red on hover */
      }

      input {
       font-size: large;
        /* Space below each input */
        padding: 12px;
        /* Increased padding for better touch targets */
        font-size: 16px;
        /* Consistent font size */
        border: 1px solid #ddd;
        /* Light gray border */
        border-radius: 5px;
        /* Rounded corners */
        transition: border-color 0.3s, box-shadow 0.3s;
        /* Smooth transition for focus effects */
      }

      input:focus {
border-bottom: 2px solid  #007AFF;
      }
      

      input[type="password"] {
    font-family: 'Poppins', sans-serif;
        /* Ensure consistent font for password input */
      }

     
      .checklist-item {
  background: rgba(255, 255, 255, 0.1); /* translucent white */
  backdrop-filter: blur(8px); /* glass blur effect */
  -webkit-backdrop-filter: blur(8px); /* Safari support */
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2); /* subtle white border */
  border-radius: 12px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: var(--text-color);
}

.checklist-item input[type="text"] {
  background: transparent; border: none; outline: none; flex-grow: 1; font-size: 16px; color: var(--text);
  width: 99%;
}

.checklist-item:hover {
 
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-color);
}

.checklist-item input[type="checkbox"] {
width: 22px; height: 22px; border-radius: 6px;
            border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center;
}

h3 {
   color: var(--text-color);
}

      .checklist-item button {
        margin-left: auto;
        /* Push the button to the right */
       background: linear-gradient(135deg, #f89494, #d80000);
        /* Darker orange for the button */
          color: var(--text-color);
        /* Pointer cursor on hover */
       display: flex;
        /* Smooth transition for hover effect */
      }

      .checklist-item button:hover {
        background: #ce4027;
        /* Lighter orange on hover */
          color: var(--text-color);
      }

      .scan-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 20px 0;
      }

#sidebar-divider {
  width: 98%;
}

/* Spin animation */


 @keyframes default-spin {
      0% {
        transform: rotate(0deg);
      }
      100% {
        transform: rotate(360deg);
      }
    }

      .container {
        flex: 1;
        padding: 10px;
        overflow-y: auto;
     
      }

   



 

    .form {
      flex: 1;
      display: flex;
      flex-direction: column;
      margin-top: 1rem;
    }



    .tab-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      height: 40px;
      justify-content: center;
      background: var(--card-color);
     color: var(--text-color-un);
      padding: 5px;
      border-radius: 6px;
      margin-right: 6%;
      display: none;
    }

    .tab-btn {
      font-size: 0.875rem;
      font-weight: 500;
      padding: 6px 12px;
      border-radius: 4px;
     background: var(--card-color);
      border: none;
      cursor: pointer;
      transition: 0.2s;
color: var(--text-color-un);
         color: grey;
    }

    .tab-btn.data-active {
      background: var(--bg-color);
      color: var(--text-color);
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
       
    }

.tab-btn:not(.date-active):hover {
 background-color: transparent;
}

   
   .tab-btn.data-active:hover {
    background-color: var(--bg-color);
   }
   .tab-btn:hover {
    background-color: var(--light-theme-fix);
   }

    .section {
      margin-top: 1.5rem;
    }

    p {
         color: var(--text-color);
    }

    .form-group textarea {
      min-height: 200px;
      resize: vertical;
    }



    



/* 1. Footer Bar Container (Required for Centering and Safety) */
.footer-bar-container {
    /* Ensures the bar stays centered and off the very bottom edge */
   position: fixed;
   margin-top: 1%;
    /* Ensures it scales correctly on all mobile widths */
    max-width: 600px; 
    width: calc(100% - 40px); /* 20px margin on left and right */
    
    z-index: 1000;
}

/* 2. The Footer Bar itself */
.footer-bar {
    display: flex;
    /* Removed min-width: fit-content; */
    width: 100%; /* Fill the container width */
    
    height: 36px;
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 40px; /* Highly rounded ends */

    /* Key for responsiveness: evenly space the items */
    justify-content: space-evenly; 
    align-items: center;
    
    /* Use padding to keep content clean, reduced side padding since we use space-evenly */
    padding: 0 8px; 
    
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 1px solid var(--text-color);
    
    /* Smooth, deliberate transition */
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
}

/* 3. Button/Item Responsiveness & Touch Targets */
.footer-bar button {
    /* Key: Make the icons flexible to fill the available space */
   color: #000;
    
    /* Ensure a minimum touch area for mobile */
    min-width: 44px; 
    height: 100%;
    max-height: 35px;
    
    /* Style cleanup */
   background: white;
    
    /* Smooth tap feedback */
    transition: transform 0.15s ease-out, color 0.15s ease-out;
}

/* 4. Professional Tap Feedback */


/* 5. Highlight the Primary Action (Save) */
.footer-bar .save-btn {
    /* Give the save button a distinct look if desired */
    color:  #007AFF;
    font-weight: bold; 
}





    @keyframes slide-in {
      from { transform: translateX(100%); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }

      /* Base Container */

      /* Header */
     

      .list-date {
          display: block;
  font-size: 15px;
  color: grey;
  margin-top: 4px;
  margin-bottom: 10px;
      }

      .list h4 {
  margin: 0;
 
  font: bolder;
  font-size: large;
}

.list:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);

}



.list .delete-btn {
  margin-top: 10px;
}

      /* Style for Undo and Redo Buttons */
      #undoButton,
      #redoButton {
          transition: all 0.3s ease;
         
        /* Smooth transition for hover effects */
      }

      /* Hover effect for undo and redo buttons */


      /* Disabled state (gray color) for undo and redo buttons */
      #undoButton:disabled,
      #redoButton:disabled {
        color: #757575;
       cursor: not-allowed;
       
        /* Shows not-allowed cursor */
      }

      #addNoteSection {
        /* White background */
        padding: 20px;
        /* Padding around the content */
        border-radius: 8px;
        /* Rounded corners */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        /* Shadow for depth */
height: 100%;
width: 100%;
        /* Space above the section */
      }
/* Sidebar Base */
/* Sidebar base */



#sidebar {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 24%; /* Increased width for better spacing */
    background: var(--bg-color); /* semi-transparent */
  
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* soft shadow */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 0; /* Increased padding for better spacing */
  box-shadow: 4px 0 12px rgba(0,0,0,0.3); /* Enhanced shadow for depth */
color: white;
  z-index: 1000;
  overflow: hidden;
  transition: transform 0.4s ease-in-out, 
              opacity 0.25s cubic-bezier(0.33, 1, 0.68, 1);
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
overflow-y: auto;
font-family: 'Poppins', sans-serif;
}
#show-anim {
  display: block;
transition: transform 0.4s ease-in-out, background-color 0.3s ease-in-out;
}

#sidebar-toggle {
  color: var(--text-color);
}

/* When hidden */
#hide-anim {
transition: transform 0.3s ease-in;
}

/* Slide In Animation */
@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slide Out Animation */
@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}


/* Animation states */
#sidebar.hide-anim {
opacity: 0;
transform: translateX(-100%);
pointer-events: none;
}

#sidebar.show-anim {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar buttons */
.sidebar-button {
display: flex;
align-items: center;
  background: none; /* semi-transparent */
  border-radius: 15px;
  border: none;
  color: var(--text-color);
padding: 12px 20px;
font-size: 16px;
font-weight: lighter;
width: 100%;
cursor: pointer;
transition: background-color 0.3s ease, color 0.3s ease;
user-select: none;
overflow: hidden;
position: relative;
font-weight: bold;
}

.sidebar-button:hover {
  background: rgb(0, 162, 255);
  border-radius: 12px;
 }

.sidebar-button i {
font-size: 20px;
margin-right: 15px;
flex-shrink: 0;
transition: transform 0.3s ease;
}

.sidebar-button .label {
white-space: nowrap;
opacity: 1;
transition: opacity 0.3s ease, transform 0.3s ease;
}

    header {
      padding: 20px 16px 10px;
      font-size: 24px;
      font-weight: bold;
      color: #b20000;
    }

    .container {
      padding: 0 16px 16px;
    }

    .card {
      background: white;
      padding: 16px;
      border-radius: 16px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.05);
      margin-bottom: 12px;
      display: flex;
      align-items: flex-start;
      gap: 12px;
      cursor: pointer;
      transition: background 0.2s;
      color: var(--text-color);
    }

    .card:hover {
      background-color: var(--light-theme-fix);
    }

    #restoreOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(240, 240, 240, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: #333;
  display: none;
}

.section-card {
       background: var(--card-color);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: 20px;
  margin: 20px auto;
  max-width: 500px;

}

.list-progress {
  margin-top: 5px;
  width: 98%;
}

#list-bar {
  width: 100%;
  height: 12px; /* Slightly taller for better visibility */
  background: linear-gradient(135deg, #48eff8, #00c3ff);
  border-radius: 12px; /* Fully rounded corners */
  overflow: hidden; /* Clip the inner bar’s corners */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); /* subtle glow */
  position: relative;
justify-content: space-around;
}

/* For modern browsers */
progress {
  width: 100%;
  height: 12px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 12px;
  background: #e0e0e0; /* light grey background */
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
}

/* WebKit browsers (Chrome, Safari) */
progress::-webkit-progress-bar {
  background: grey;
  border-radius: 12px;
}

progress::-webkit-progress-value {
  background: linear-gradient(135deg, #48eff8, #00c3ff);
  border-radius: 12px;
  transition: width 0.3s ease;
  box-shadow: 0 2px 8px rgba(72, 239, 248, 0.7);
}

/* Firefox */
progress::-moz-progress-bar {
  background: grey;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(72, 239, 248, 0.7);
  transition: width 0.3s ease;
}

/* Optional: Add a subtle animated glow */


/* Apply glow to progress value */
progress::-webkit-progress-value {
  animation: glow 3s ease-in-out infinite;
}
progress::-moz-progress-bar {
  animation: glow 3s ease-in-out infinite;
}


.sync-time-text {
font-family: 'Poppins', sans-serif;
  background: rgba(255, 255, 255, 0.1); /* semi-transparent */
  border-radius: 15px;
  border: 1px solid var(--text-color); /* subtle border */
  backdrop-filter: blur(10px); /* blur the background behind the element */
  -webkit-backdrop-filter: blur(10px); /* for Safari */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* soft shadow */
max-width: fit-content;
color: var(--text-color);
 
  padding: 10px 15px;
  border-radius: 12px;
  
  align-items: center;
font-weight: bolder;
  transition: background-color 0.3s ease;
}




.settings-button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin: 10px 0;
  border: 2px solid black;
  color: rgb(0, 0, 0);
  font-size: 1rem;
border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: left;
  background: white;
}

.settings-button:hover {
  background: white;
   display: block;
  width: 100%;
  padding: 12px 16px;
  margin: 10px 0;
  border: 2px solid black;
  color: rgb(255, 0, 0);
  font-size: 1rem;
border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: left;
}

.settings-input {
  width: 100%;
  padding: 10px 12px;
  margin: 8px 0 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
}

.toggle-container {
  display: flex;
  align-items: left;
  margin-top: 20px;
  padding: 12px 16px;
  background-color: var(--bg-color);
  border-radius: 10px;
  color: var(--text-color);
}

.toggle-label {
  font-weight: 500;
  color: var(--text-color);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 26px;
  transition: 0.4s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #0078d7;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--text-color);
  border-top: 5px solid #0078D7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


    .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  justify-content: space-around;
  flex-wrap: wrap;
  align-content: flex-end;
  flex-direction: column;
}

.icon i {
  color: white;
  font-size: 22px;
}

.highlight {
    background-color: rgb(255, 30, 0);
    font-weight: bold;
}

.brand-l {
  display: flex;
  align-items: center;

  font-weight: bolder;
  padding: 10px;
  font-size: 25px; /* responsive font size */
min-width: 240px;
}

.brand {
  height: 100px; /* adjust as needed */
  width: max-content;

}

.brand-t {
  white-space: nowrap; /* prevent line-break */
color: transparent;
width: 40px;
height: 40px;
}

    .icon.wifi { background-color: #007bff; }
    .icon.device { background-color: #00bcd4; }
    .icon.ai { background-color: #3f51b5; }
    .icon.modes { background-color: #673ab7; }
    .icon.sound { background-color: #9c27b0; }
    .icon.notif { background-color: #ff5722; }
    .icon.display { background-color: #4caf50; }
    .icon.privacy { background-color: #ffc107; }

    .text-box {
      flex-grow: 1;
    }

    .title {
      font-size: 30px;
      font-weight: bolder;
      margin-bottom: 4px;
      background: none;
      border: none;
      width: 100%;
      height: 20px;
      
    }

    textarea {
      border: none;
    }





    .title:focus {
    /* 3. Focus state: Change the line color and make it thicker */
    border-bottom: 2px solid  #007AFF; /* Your Primary Blue */
}
/* Hover effect */


.sidebar-button:hover i {
transform: scale(1.3);
}

/* Sidebar top and bottom spacing */
.sidebar-top, .sidebar-bottom {
display: flex;
flex-direction: column;
gap: 8px;
padding: 0 10px;
}

/* Responsive - collapsible sidebar */
@media (max-width: 680px) {
#sidebar {
min-width: 250px;
transform: translateX(-100%);
position: fixed;
top: 0; left: 0;
}
}









      #undoButton i,
      #redoButton i {
        margin-right: 5px;
      }

      .scan-status-text {
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
  color: #4CAF50;
  font-weight: bold;
}

.stats-row {
  display: flex;
  justify-content: space-around;
  margin: 15px 0;
}

.stat-box {
  background: var(--card-color);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  flex: 1;
  margin: 0 5px;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  color: var(--text-color);
}

.stat-box span {
  display: block;
  font-size: 28px;
  margin-top: 5px;
}

.stat-box.green {
  border-left: 5px solid #4CAF50;
}

.stat-box.red {
  border-left: 5px solid #0059ff;
}

.alert-msg {
  background: #ffe5e5;
  color: #d32f2f;
  padding: 10px;
  border-radius: 8px;
  margin-top: 8px;
}

.success-msg {
  background: var(--card-color);
  color: #2e7d32;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-right: 10px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0; left: 0;
  right: 0; bottom: 0;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px; width: 26px;
  left: 4px; bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #66bb6a;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

  

      i {
        margin-right: 8px;
        /* Space between icon and text */
        text-align: center;
      }

      .scan-circle {
   width: 80px;
      height: 80px;
      display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'monospace'; /* Better for numbers */
  font-weight: bold;
      
      border-radius: 50%;
   
     background-color: rgb(97, 201, 0);
      }


.scan-circle.active-pulse {
  animation: pulse 2s infinite;
  display: flex;
   width: 80px;
      height: 80px;
      border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-family: 'monospace'; /* Better for numbers */
  font-weight: bold;
}

#startScanButton {
  display: block;
  margin: 20px auto;
  padding: 14px 30px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  background: #007AFF;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.5);
  transition: all 0.3s ease;
}

#startScanButton:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

#startScanButton:active {
  transform: scale(0.98);
}

#startScanButton.scanning {
  background: linear-gradient(90deg, #ff5722, #ff9800);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.severity {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  margin-left: 8px;
  text-transform: uppercase;
}
.severity.high { background-color: red; color: white; }
.severity.medium { background-color: orange; color: white; }

.protect-btn {
  background-color: #454647;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 12px;
  width: 99%;
}
.protect-btn:hover {
  background-color: #0056b3;
}



  @keyframes default-spin {
      0% {
        transform: rotate(0deg);
      }
      100% {
        transform: rotate(360deg);
      }
    }

.counters p {
  font-weight: bold;
  text-align: center;
  margin: 5px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 12px 16px;
  background-color: var(--card-color);
  border-radius: 10px;
}


      /* General styles for the container */
    /* Container */
    .spinner-container {
      display: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      margin-bottom: 20px; /* Space from the bottom */
      background-color: var(--light-theme-fix);
      color: white;
font-family: 'Poppins', sans-serif;
      margin: 0;
      padding: 0;
      height: 100%;
      width: 100%;

     
      justify-content: center;
      align-items: flex-end; /* Align to bottom */
      position: fixed;
    }

    /* Default spinning loader animation */
    @keyframes default-spin {
      0% {
        transform: rotate(0deg);
      }
      100% {
        transform: rotate(360deg);
      }
    }

    .default-loader {
      width: 40px;
      height: 40px;
      border: 10px solid transparent;
      border-top-color: white;
      border-radius: 50%;
      animation: default-spin 1s linear infinite;
    }

    /* Windows 11-like cursor effect */
    @keyframes windows-cursor {
      0% {
        transform: scale(0.8);
      }
      50% {
        transform: scale(1.3);
      }
      100% {
        transform: scale(0.8);
      }
    }

    /* Cursor for simulation */
    .cursor {
     width: 40px;
      height: 40px;
      border: 5px solid transparent;
      border-top-color: white;
      border-radius: 50%;
      animation: default-spin 1s linear infinite;
    }

     @keyframes default-spin {
      0% {
        transform: rotate(0deg);
      }
      100% {
        transform: rotate(360deg);
      }
    }

    /* Windows 11 Logo */
    .logo {
     width: 100px; /* Adjust the width for better sizing */
      height: 100px; /* Adjust the height for better sizing */
      background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/8/87/Windows_logo_-_2021.svg/800px-Windows_logo_-_2021.svg.png');
      background-size: contain;
      background-repeat: no-repeat;
      margin-top: 20px; /* Space below logo */
    }

    /* Text below cursor */
    .message {
      font-size: 1.1rem;
      color: white;
      margin-top: 20px;
      text-align: center;
    }

.nav-button:hover {
  color: #000;
}





      #addItemButton {
       background: transparent; border: none; outline: none; width: 100%;
            color: black; font-size: 28px; font-weight: 700; margin-bottom: 10px;
      }

      #checklistContainer {
        list-style: none;
        padding: 0;
        margin: 0;
      }

      #checklistContainer li {
        padding: 10px;
        border-bottom: 1px solid #ccc;
      }

      #checklistContainer li:last-child {
        border-bottom: none;
      }

      .modal-content h2 {
        margin: 0 0 20px;
        color: #000;
      }

      .modal-content input {
        width: 95%;
        padding: 10px;
        margin-bottom: 20px;
        border-radius: 5px;
      }

 .title2 {
  color: #000;
  font-size: 16px;
  font-weight: bold;
 }

  



 


.top-bar {
  width: 90%;
 
  display: flex;          /* enables flex layout */
  flex-direction: row;    /* default, horizontal alignment */
  align-items: center;    /* vertical centering */
  justify-content: space-between;
  background-color: var(--card-color); /* keep style */
  padding: 0.5rem 1rem; /* vertical + horizontal padding */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* subtle elevation */
  border-radius: 9px; /* small rounding for the bar edges */
  margin-bottom: 1rem;
}

.profile-header input {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: none;
  margin-bottom: 10px;
  text-align: center;
}



.profile-msg {
  margin-top: 10px;
  font-size: 14px;
  color:  var(--text-color);
}




/* Focus glow effect */
.top-bar input:focus {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
           
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(
      90deg,
   #00ffff,
  #00ff99,
  #00ccff,
  #3333ff,
  #8a2be2,
  #ff00ff,
    #ff70f3

      
    );
}

/* Keyframes for moving gradient border */
@keyframes borderMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.account-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #fbbc04; /* default accent color */
  color: white;
  font-weight: bold;
  font-size: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.account-icon:hover {
  transform: scale(1.1);
  background-color: #e6ac00;
}

.top-bar button {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #5f6368; /* Google Keep icon color */
  cursor: pointer;
  margin-left: 0.5rem;
  transition: color 0.2s ease;
}

.top-bar button:hover {
  color: #202124; /* darker on hover */
}



.top-bar input::placeholder {
  color: #aaa;
  justify-content: center;
  align-items: center;
}


    .note {
  

  border-radius: 20px;
  padding: 20px 25px;
  margin: 16px auto;
        background: var(--note-bg);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease;
 width: calc(100% - 32px);
color: var(--text-color);
  
}





  .list {
 border-radius: 20px;
  padding: 20px 25px;
  margin: 16px auto;
        background: var(--list-bg);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
 width: calc(100% - 32px);
color: var(--text-color);

}








.note:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.note h4 {
  margin: 0;
  font-size: 20px;
  font-weight: bolder;
  
}

.note-date {
  display: block;
  font-size: 15px;
  color: grey;
  margin-top: 4px;
  margin-bottom: 10px;
}

.delete-btn {
   background: linear-gradient(135deg, #f89494, #d80000);
  color: var(--text-color);
  border: none;
  font-weight: bolder;
  font-size: 14px;
  
  cursor: pointer;
 
}

.delete-btn:hover {
  background: #971212;
}

.note .icon {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 18px;
  color: #4a90e2;
}

.note .pin-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 18px;
  color: #f39c12;
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 22px;
}

.lock-icon {
  font-size: 50px;
  color: #555;
  margin-left: 10px;
}

.menu {
  font-size: 20px;
  color: #555;
  background-color: transparent;
  border: none;

  margin-left: 10px;
}

.menu:hover {
  background-color: transparent;
}

.menu-wrapper {
  position: relative;
  display: inline-block;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  font-size: 16px;
  margin-left: 10px;
}

.dropdown-menu {
  position: absolute;
  top: 24px;
  right: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 6px 0;
  min-width: 120px;
}

.dropdown-btn {
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.dropdown-btn:hover {
  background-color: #f0f0f0;
}

.hidden {
  display: none;
}


/* Mobile-friendly iziToast styling 
.mobile-friendly-toast {
  border-radius: 8px !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15) !important;
  font-size: 14px !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .iziToast {
    max-width: calc(100vw - 30px) !important;
    min-width: 280px !important;
    margin: 10px !important;
  }
  
  .mobile-friendly-toast {
    font-size: 13px !important;
    padding: 12px 16px !important;
  }
  
  .iziToast-progressbar {
    height: 3px !important;
  }
}

@media (max-width: 360px) {
  .iziToast {
    max-width: calc(100vw - 100px) !important;
}
 
  .iziToast-progressbar {
    height: 3px !important;
  }
}
  

      .backup-import {
        display: flex;
        flex-direction: column;
        gap: 10px;
        /* Space between buttons and input */
      }

      .action-button {
        background-color: #007bff;
        /* Blue background for action buttons */
        color: white;
        border: none;
        padding: 10px;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
      }

      #settingsSection.container {
  padding: 20px;
 

background: #E2DFD2;
  font-family: 'Poppins', sans-serif;
}

/* Settings Tabs Container */


/* Tab Button Style */

      .setting-category {
  margin-top: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.setting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.setting-header:hover {
  color: #000;
}

.toggle-icon {
  font-size: 18px;
  color: #4a90e2;
  transition: transform 0.3s ease;
}

.setting-category.open .toggle-icon {
  transform: rotate(90deg);
}

.checkbox-label {
  display: flex;
  align-items: center;
  margin-top: 12px;
  font-size: 14px;
  color: #444;
}

.checkbox-label input {
  margin-right: 10px;
}

.file-input {
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  background-color: #fff;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.file-input:focus {
  border-color: #4a90e2;
  outline: none;
}

.hidden {
  display: none;
}

.setting-category div {
  padding: 10px;
  border: 1px dashed #ccc;
  border-radius: 6px;
  background-color: #fff;
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  transition: background-color 0.2s ease;
}

.setting-category div:hover {
  background-color: #f1f1f1;
}


  .ai-feature {

.ai-answer {
  background-color: #e7f3fe;
  border-left: 4px solid #2196F3;
  padding: 16px;
  margin: 16px 0;
}

.ai-answer h4 {
  margin-top: 0;
  color: #1E88E5;
}



/* AI searching animation */
@keyframes ai-searching-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.ai-searching {
  animation: ai-searching-animation 2s linear infinite;
  background-size: 200% 200%;
  background-image: linear-gradient(to right, #ff00cc, #3333ff, #ff00cc);

}

    margin-bottom: 0.8rem;
  }


   #itemText {
    text-align: center;
    font-size: 15px;
   
   }

/* Add this new rule for the AI Fixer button */
/* Container button */




  

  label {
    cursor: pointer;
    user-select: none;
    font-weight: bolder;
    color: var(--text-color);
  }

  input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
  }


  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* For screen readers */
  .visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
  }




             

        /* FIX: Icon Rotation/Animation */
        .fab-icon {
            margin-left: 11px;
            position: relative;
            z-index: 1;
            transition: transform 0.3s ease;
        }
        .fab-container.open .fab-icon {
            transform: rotate(135deg); 
        
        }
        


        /* ============================================== */
        /* 2. EXPANDING FAB CONTAINER & OPTIONS (FIXED)   */
        /* ============================================== */
        .fab-container {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 1000;
            
            /* FIX: Forces vertical stacking of children (options container and main fab) */
            display: flex;
            flex-direction: column-reverse; 
            align-items: center;
            
            /* FIX: Gap between options container and main button */
            gap: 12px; 
        }

        .fab-options {
            opacity: 0;
            pointer-events: none; 
            transition: opacity 0.3s ease;
            
            /* FIX: Forces options themselves to stack vertically */
            display: flex;
            flex-direction: column-reverse; 
            align-items: flex-end; /* Aligns options neatly to the right */
            bottom: 20%;
            position: fixed;
            /* FIX: Gap between individual option buttons */
            gap: 12px; 
            
            /* Ensure it is initially hidden/positioned */
            transform: translateY(10px); 
        }

       /* .option-button {
            width: auto; 
            height: 40px;
            padding: 0 16px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 20px; 
            background-color: white; 
            color: #2c2c2e; 
            border: none;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
            cursor: pointer;

            
            transition: all 0.3s ease;
            
            display: flex;
            align-items: center;
            justify-content: center;
        }  */

        .option-button:hover {
            background-color: #f0f0f0; 
        }


        /* --- OPEN STATE CSS (FIXED) --- */
        .fab-container.open .fab-options {
            opacity: 1;
            pointer-events: auto;
            /* FIX: Move the options container up */
            transform: translateY(0); 
        }

        /* FIX: Staggered animation */
        .fab-container.open .list-option { transition-delay: 0.05s; }
        .fab-container.open .note-option { transition-delay: 0.1s; }

        @keyframes pulse {
            0% {
                box-shadow: 
                    0 6px 16px rgba(9, 255, 0, 0.25),
                    0 0 0 10px rgba(9, 225, 0, 0.1),
                    0 0 0 20px rgba(9, 225, 0, 0.05);
            }
            50% {
                box-shadow: 
                   
                    0 0 0 12px rgba(9, 255, 0, 0.15),
                    0 0 0 24px rgba(9, 255, 0, 0.07);
            }
            100% {
                box-shadow: 
           

                    0 0 0 10px rgba(9, 255, 0, 0.1),
                    0 0 0 20px rgba(9, 255, 0, 0.05);
            }
        }

#bar-btn {
  
    padding: 10px 15px;
        /* Padding for buttons */
        margin: 5px 0;

    font-size: 20px;
    font-weight: bold;
    

}










#combinedContainer {
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
  overflow-x: hidden;
  }

  #combinedContainer h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
     color: var(--text-color);
    text-align: center;
  }

  #notesContainer,
  #listsContainerContent {
    margin-bottom: 12px;
   
  gap: 1rem;
  }



  .sch:hover {
    background: transparent;
    color : #383838;
  }

.sort-container {
  padding: 0 16px;
  margin-top: 10px;

   position: relative;
   border-radius: 30px;
    padding: 10px; /* Padding */
    display: flex;
    justify-content: space-between;
    align-items: center;


}

.dialog-container {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 75%;
  max-width: 500px;
  background: #f9f9f9;
  border-left: 1px solid #ccc;
  padding: 20px;
  z-index: 1000;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.dialog-header h2 {
  font-size: 20px;
  margin-bottom: 5px;
}

.dialog-header p {
  font-size: 14px;
  color: #666;
}

.dialog-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dialog-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
}

.tab-switch {
  display: flex;
  border-radius: 6px;
  background: #eee;
  margin-bottom: 15px;
}

.tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
}

.tab.active {
  background: white;
  font-weight: bold;
}





.cancel-btn {
  background: #eee;
}


.hidden {
  display: none;
}


.sort-container select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: var(--card-color);
  color: var(--text-color);
  font-size: 14px;
font-family: 'Poppins', sans-serif;
  outline: none;
  appearance: none; /* Remove default arrow styling (for custom styling later) */

  /* Optional: Add subtle inner shadow for depth */
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* On focus: soft highlight */
.sort-container select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

/* Remove invalid layout properties for select */
.sort-container select {
  display: block; /* NOT flex — select is a form control */
  width: 100%;    /* Keep this if you want full width */
}

        .toggle-container {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .2s;
            border-radius: 24px;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .2s;
            border-radius: 50%;
        }
        
        input:checked + .slider {
            background-color: #4CAF50;
        }
        
        input:checked + .slider:before {
            transform: translateX(26px);
        }
        
        .toggle-label {
        font-family: 'Poppins', sans-serif;
            font-size: 14px;
        }

        

.summarize-btn {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 600;
    font-size: 0.95rem;
    width: auto; /* size based on content */
    padding: 0.6em 1.5em;
    background:  linear-gradient(135deg, #89f7fe, #66a6ff);
    color: var(--text-color, white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

/* Hover effect: scale + glow */
.summarize-btn:hover,
.summarize-btn:focus {
    background: linear-gradient(90deg, #4299e1 0%, #008ecc 100%);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

/* Subtle sparkle-like overlay */
.summarize-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.summarize-btn:hover::before,
.summarize-btn:focus::before {
    opacity: 1;
}

/* Optional icon spacing */
.summarize-btn i {
    display: inline-flex;
    align-items: center;
}

 
.update-modal {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(96, 165, 250, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(30, 64, 175, 0.2) 0%, transparent 70%),
    linear-gradient(180deg, #0a0e27 0%, #1a1f3a 100%);
  background-size: 200% 200%;
  animation: gradientShift 20s ease infinite;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.update-modal.active {
  display: flex;
}

.update-container {
  text-align: center;
  color: white;
}

.shield-icon {
  font-size: 80px;
  margin-bottom: 40px;
  animation: shieldPulse 2s ease-in-out infinite;
}

@keyframes shieldPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.update-container h1 {
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.status-text {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 50px;
  min-height: 24px;
  transition: opacity 0.3s;
}

.progress-container {
  width: 350px;
  height: 6px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  margin: 0 auto 20px;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 10px;
  width: 0%;
  transition: width 0.3s linear;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.percentage {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 10px;
  color: #60a5fa;
}

.step-info {
  font-size: 12px;
  opacity: 0.7;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
