/* 

.heading{
    text-align:center;
    font-size:50px;
    font-family: sans-serif;
    margin-top: 25px;
    font-weight:550;
}

body{
    background-color: beige;
}

.taskinput{
    padding:8px;
    width:15%;
    display:block;
    text-align:center;
    font-size:20px;
}

.addtask{
    display:block;
    margin-left:15px;
    font-size:18px;
    text-align:center;
    font-family:sans-serif;
    background-color: beige;
}

.form{
    display:flex;
    justify-content:center;
}

.todos{
    display:flex;
    flex-direction: column; 
    align-items: stretch; 
    width:25%;
    background-color: white;
    border:1px solid #ccc;
    margin: 30px auto 0; 
    padding: 10px; 
}


.todoelement{
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border-bottom: 1px solid #eee; 
}


.completedcircle{
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 1px solid black;
    margin-right: 7px; 
    flex-shrink: 0; 
    cursor: pointer; 
}


.circleboxcontainer{
    display: flex;
    align-items: center; 
    justify-content: flex-start; 
    width: 100%;
    text-align: left; 
}
.edit{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    
}
.hidden-deadline{
    visibility:hidden;
} */
/* FORM STYLES (unchanged) */

/* html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: beige; 
    overflow-x: hidden;
  }
body {
    background-color: beige;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
  }
  
  .heading {
    text-align: center;
    font-size: 50px;
    margin-top: 25px;
    font-weight: 550;
  }
  
  .form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
  }
  
  .taskinput {
    padding: 8px;
    width: 300px;
    font-size: 20px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: white;
  }
  
  .addtask {
    font-size: 18px;
    padding: 8px 16px;
    background-color: #f4d03f;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  

  .todos {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 50%;
    margin: 30px auto 0;
    margin-bottom: 0;
    padding-bottom: 0;
    
   
    border: none; 
    padding: 10px;
    border-radius: 0;

  }

  
  
  

  .circleboxcontainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white; 
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
  }

  .completedcircle {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid black;
    margin-right: 10px;
    flex-shrink: 0;
    cursor: pointer;
  }
  

  .todoelement {
    flex-grow: 1;
    text-align: left;
    padding-left: 10px;
    background-color:white ;
  }

  .edit {
    display: flex;
    gap: 10px;
    align-items: center;
    
  }
  
  .edit i {
    cursor: pointer;
    font-size: 18px;
    color: #555;
    transition: color 0.3s;
  }
  
  .edit i:hover {
    color: #000;
  }

  #hidden-deadline {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 1px;
    height: 1px;
    z-index: -1;
    border: none;
    pointer-events: auto; 
  } */

  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color:#f5f5f5;
    font-family: 'Segoe UI', sans-serif;
  }

  #calendarDrawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50vw;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 999;
    padding: 1rem;
    overflow-y: auto;
  }
  
  #calendarDrawer.open {
    right: 0;
  }
  
  #calendar {
    height: 600px;
    background-color: white;
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* border:2px solid blue; */
    overflow: auto;
    background-color: rgba(0,0,0,0.4);

  color:green;
  border:2px solid green;
  }


  .input-wrapper {
    position: relative;
    flex: 1 1 60%;
  }
  
  .input-wrapper .taskinput {
    width: 100%;
    padding-right: 40px; /* Room for mic icon */
  }
  
  .input-wrapper .mic-icon {
    position: absolute;
    right: 10px;
    top: 30%;
    transform: translateY(-50%);
    color: #777;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .input-wrapper .mic-icon:hover {
    color: red;
  }
  #modalTitle{
    /* text-align:left; */
    color:green;
  }
  .modal-content {
    background-color: white;
    
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  
  .close-modal {
    float: right;
    font-size: 24px;
    cursor: pointer;
  }
  
  
  .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .drawer-header button {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  
  .container {
    max-width: 600px;
    /* display:flex; */
    margin-left: 0 auto;
    padding: 40px 20px  ;
    background-color: white;
    margin-top:30px;
    
  }

  .sortable-ghost {
  opacity: 0.5;
  background: #dfe6e9;
}
  
  .heading {
    text-align: center;
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #222;
  }
  
  .form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .taskinput {
    flex: 1 1 60%;
    padding: 12px;
    font-size: 18px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: white;
  }
  
  .addtask {
    padding: 12px 20px;
    /* background-color: #f4d03f; */
    /* background: #2a7d50; */
    background: #0076ce;
    color:white;
    /* background: linear-gradient(90deg, rgba(42, 125, 80, 1) 12%, rgba(22, 196, 94, 1) 41%, rgba(22, 196, 94, 1) 78%); */
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .addtask:hover {
    /* background-color: #e1b806; */
  }
  
  .todos {
    margin-top: 30px;
    width:100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .circleboxcontainer {

    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border:2px solid #97DC21;
    /* flex-wrap: wrap; */
  }
  .due-text{
    font-size: 11px;
    width:58%;
    color: white;
    background-color: green;
    /* margin:2px 2px 2px 2px ; */
    margin-top:4px;
    padding:3px 2px 3px 2px;
    border-radius:10px;
    text-align: center;
  }

  .mic-icon {
    cursor: pointer;
    color: #555;
    margin-top: 10px;
    align-self: center;
    transition: color 0.3s;
  }
  
  .mic-icon.listening {
    color: red;
  }

  #voiceInputBtn.listening i {
    color: red;
    animation: pulse 1s infinite;
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
  }

  .due-text.overdue {
    background-color: red !important;
    padding:0 0 0 0  !important;
    color: white;
  }
  
  .due-text.warning {
    background-color: orange !important;
    color: black;
  }
  
  .due-text.on-time {
    background-color: green !important;
    color: white;
  }
  .completedcircle {
    /* width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #000;
    margin-right: 10px;
    cursor: pointer;
    flex-shrink: 0; 
    flex-grow: 0;   
    flex-basis: 20px; */
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid black;
    margin-right: 10px;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .completedcircle.completed {
    background-color: green;    /* Green background */
    border-color: green;
    color: white;
  }
  
  .completedcircle.completed::before {
    content: "✓";
    font-size: 13px;
    font-weight: bold;
  }

  .todoelement.completed {
    text-decoration: line-through;
    color: #7f8c8d; /* Soft gray */
  }
  
  .todoelement {
    flex-grow: 1;
    font-size: 16px;
    padding-left: 10px;
    color: #333;
  }
  
  .edit {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-right:3px;
  }
  
  .edit i {
    font-size: 18px;
    color: #444;
    cursor: pointer;
    transition: color 0.3s;
  }
  
  .edit i:hover {
    color: #000;
  }
  
  .hidden-deadline {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    z-index: -1;
  }
  /* #calendarIcon{
    width:15px;
    height:15px;
  } */

  /* Container Padding */
#calendar {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Header */
.fc .fc-button {
  background-color: #0076ce;
  border: none;
  padding: 6px 12px;
  font-weight: 600;
  color: #fff;
  border-radius: 6px;
  text-transform: capitalize;
}

.fc .fc-button:hover {
  background-color: #0076ce;
}

.fc .fc-button-primary:disabled {
  background-color: #0076ce;
  opacity: 0.6;
}

/* ✅ Header Title */
.fc-toolbar-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #222;
}

/* ✅ Calendar Grid */
.fc-daygrid-day-number {
  font-weight: 500;
  color: black;
}

.fc .fc-day-today {
  background: white !important;
  border: 1px solid #3ec45f;
}

/* ✅ Event Tag Styling */
.fc-event {
  background-color: lightgreen;
  border: none;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.fc-event-title {
  color: green;
}

/* ✅ Modal/Container Padding (if using a calendar modal) */
#calendar {
  padding: 10px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
   #calendarViewBtn{
    border-radius:15px;
    padding:10px 10px 10px 10px;
    background-color:#eeeeee;
    color:black;
    display: inline;
    vertical-align: middle ;
    margin-left:15px;
    font-size:17px;
    font-family:serif;
   }
  
  @media (max-width: 500px) {
    .form {
      flex-direction: column;
      align-items: stretch;
    }
  
    .taskinput,
    .addtask {
      width: 100%;
    }
  
    .circleboxcontainer {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
  
    .edit {
      align-self: flex-end;
      
    }
  }
  .progress-bar{

    width:100%;
    height:30px;
    border-radius:20px;
    background: white;

    /* background: linear-gradient(90deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(237, 221, 83, 1) 100%); */
    border:1px solid green;
   /*  */
   margin-bottom:30px;
    /* color:red; */
  }
  .inner-progress{
    width:0%;
    
    background: #97DC21;
/* background: linear-gradient(90deg,rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(0, 212, 255, 1) 100%); */
    border-radius:20px;
    height:30px;
    /* margin-left:5p */
    /* padding:5px 5px 5px 5px; */
    margin-bottom:20px;
    display:flex;
    align-items:center;


  }
  

  .progress-text{
    justify-content: center;
    font-family: sans-serif;
   
    color:white;
    align-self: center;
    padding:8px 8px 8px 10px;
    font-size: 12px;
  }

  .tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top:20px;
    width:100%;
    /* gap:10px; */
  }
  
  .tab-button {
    padding: 15px 30px;

    /* margin: 0 5px; */
    width:100%;
    /* border: 1px dotted gray; */
    border:none;
    background-color: #fdf6d8;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
  }

/* .tab-button.active {
  background-color: #fdf6d8;
  font-weight: 600;
  cursor: pointer;
  font-weight: bold;
  padding: 15px 30px;
    width:100%;
  border-bottom: 3px solid #d9b800;
}
.tab-button:hover{
  background-color: green;
} */

.tabs {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  /* max-width: 500px; */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  background-color: #eeeeee;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  border-right: 1px solid #ccc;
}

.tab:last-child {
  border-right: none;
}

.tab.active {
  /* background-color:#f4d03f ; */
  /* background-color: #ffe5b4; */
  background-color: #0076ce;
  color: white;
}


  .recurring-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
  }
  
  .switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
  }
  
  .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: 0.4s;
    border-radius: 22px;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
  }
  .error-text{
    display:none;
    color:red;
    font-weight:lighter;
    font-family: sans-serif;
    font-size: 13px;
    padding-top:5px;

  }
  input:checked + .slider {
    background-color: #4CAF50;
  }
  
  input:checked + .slider:before {
    transform: translateX(18px);
  }
  
  .recurring-label {
    font-size: 14px;
    font-family: sans-serif;
    color: #555;
  }
  
  .tab-button.active {
    background-color: #d1e7dd;
    color: #0f5132;
  }
  .export-buttons{
    text-align:center;
    margin-top:40px;
    display:flex;
    justify-content:center;
    gap:8px;

  }
  .export-csv{
    padding-top:15px;
     padding:10px 10px 10px 12px;
     background-color: green;
     color:white;
     text-align:center;
     font-family: sans-serif;
     font-size:15px;
  }
  .export-pdf{
    padding:10px 10px 10px 12px;
     background-color: red;
     color:white;
     text-align:center;
     font-family: sans-serif;
     font-size:15px;

  }