/* ================================
   Task Item Layout & Text
================================= */
.task-content {
    display: inline-block;
    width: calc(100% - 150px);
    vertical-align: top;
    min-width: 0;
    margin-right: 10px;
    margin-left: 30px;
}

/* Selection checkbox */
.selection-checkbox {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#listIn li:hover .selection-checkbox {
    opacity: 1;
}

/* Always show checkbox when checked */
.selection-checkbox.checked {
    opacity: 1 !important;
}

/* Show checkbox when item is selected */
#listIn li.selected .selection-checkbox {
    opacity: 1;
}

/* Visual indicator for selected items */
#listIn li.selected {
    background-color: rgba(0, 123, 255, 0.1);
    border-left: 3px solid #007bff;
}

.selection-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #007bff;
}

.task-text {
    display: inline-block;
    margin: 0;
    margin-right: 10px;
    overflow-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #333;
}

.due-date-display {
    display: inline-block;
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-left: 10px;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
    vertical-align: middle;
}


/* ================================
   Calendar Icon
================================= */
.calendar-icon {
    display: inline-block;
    width: 30px;
    height: 25px;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    color: #007bff;
    line-height: 25px;
    margin-right: 10px;
    vertical-align: middle;
}

.calendar-icon:hover {
    color: #0056b3;
}

.calendar-icon i {
    font-size: 14px;
}


/* ================================
   Date Picker Modal
================================= */
#date-picker-modal {
    width: 350px;
    height: 200px;
    background-color: white;
    position: absolute;
    margin: auto;
    top: 25%;
    z-index: 1000;
    left: 0;
    right: 0;
    display: none;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    border: 2px solid #007bff;
    padding: 20px;
    border-radius: 8px;
}

#date-picker-modal h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

#date-picker-modal input[type="date"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.date-picker-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.date-picker-buttons button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

#set-date-btn {
    background-color: #28a745;
    color: white;
}

#set-date-btn:hover {
    background-color: #218838;
}

#remove-date-btn {
    background-color: #dc3545;
    color: white;
}

#remove-date-btn:hover {
    background-color: #c82333;
}

#cancel-date-btn {
    background-color: #6c757d;
    color: white;
}

#cancel-date-btn:hover {
    background-color: #5a6268;
}



#listIn li {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgba(128, 128, 128, 0.7);
    padding-bottom: 5px;
    width: 90%;
    height: auto;
    min-height: 30px;
    line-height: 30px;
    font-size: 19px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}


/* Button container for right alignment - only calendar and completion */
.task-buttons {
    display: inline-block;
    width: 140px;
    text-align: right;
    vertical-align: top;
    white-space: nowrap;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Adjust existing elements */
.bi-app, .bi-check2 {
    cursor: pointer;
    font-size: 18px;
    color: #666;
    width: 30px;
    text-align: center;
    line-height: 25px;
    height: 25px;
    display: inline-block;
    margin-left: 0;
    vertical-align: middle;
    border: none;
    background: none;
    opacity: 1; /* Always visible */
}

.bi-check2 {
    color: #28a745;
}


.remove {
    display: inline-block;
    width: 50px;
    height: 25px;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    color: #dc3545;
    line-height: 25px;
    font-family: 'Courier New', monospace;
    margin-left: 5px;
    vertical-align: middle;
}

.remove:hover {
    color: #c82333;
}

.edit {
    display: inline-block;
    width: 50px;
    height: 25px;
    font-size: 12px;
    line-height: 25px;
    text-align: center;
    cursor: pointer;
    color: #007bff;
    font-family: 'Courier New', monospace;
    margin-left: 5px;
    vertical-align: middle;
}

.edit:hover {
    color: #0056b3;
}


       
    
*{
box-sizing: border-box;
}
body,html {
    width: 100%;
    max-height: 100%;
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

/* Blurred background image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/new.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    filter: blur(1px);
    z-index: -2;
}

/* Add overlay for better contrast */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}
.container-sm{
    max-width: 90%;
}
#input-box{
    width: 100%;
    height: 50px;
    margin-top: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
#input{
    width: 90%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    font-family: 'Courier New', monospace;
}
#input:focus{
    outline: none;
    border-color: pink;
    box-shadow: none;

}
#addOn .bi {
    margin-top:1px;
    font-size: 18.5px;
    display: block;
    color: #f16e85;


}
.container {
    margin:auto;
    width:500px;


}
#nav{
    width:100%;
    height: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Filter buttons container */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin: 0 auto;
}

/* Top action buttons */
.top-actions {
    display: flex;
    gap: 10px;
}

.top-action-btn {
    padding: 8px;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.2s;
    display: none; /* Hidden by default */
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-action-btn:hover:not(:disabled) {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.top-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#top-edit-btn {
    color: #007bff;
}

#top-remove-btn {
    color: #dc3545;
}
.btn{
    display: inline-block;
    margin-left: 10px;
    text-decoration: none;
    width:90px;
    box-shadow: 1px 2px 3px #000 ;
    background-color: white;
    margin-bottom: 5px;
    color: #f5667e;


}
.btn:hover{
    background: radial-gradient(rgb(250, 250, 250) 20%, rgb(238, 233, 233) 80%);
    /*box-shadow: 1px 1px 2px #f1eded inset;*/
        /*background: linear-gradient(-45deg,rgb(248, 248, 243), rgb(236, 234, 234));*/
}
.btn:focus{
    background: radial-gradient(rgb(250, 250, 250) 20%, rgb(238, 233, 233) 80%);
    box-shadow: 1px 1px 3px #000 inset;
    color:gray;

}

/* Active state for filter buttons */
.btn.active{
    background: radial-gradient(rgb(250, 250, 250) 20%, rgb(238, 233, 233) 80%);
    box-shadow: 1px 1px 3px #000 inset;
    color: gray;
    transform: translateY(1px);
}


#list{
    margin-top: 20px;
    height: 400px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    background: transparent;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar styling */
#list::-webkit-scrollbar {
    width: 8px;
}

#list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Firefox scrollbar */
#list {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}
#list #listIn{
    height:100%;
    list-style: none;
    padding-top: 0;
    margin-top: 0;
    padding-left: 0;
}
#listIn li {
    border-bottom: none;
    padding: 0;
    width: 100%;
    min-height: 25px;
    line-height: 25px;
    font-size: 16px;
    margin-bottom: 0;
    margin-left: 0;
    padding-left: 0;
    position: relative;
    font-family: 'Courier New', monospace;
    color: #333;
    display: block;
    cursor: pointer;
}

#listIn li:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

#listIn li.selected {
    background-color: rgba(0, 123, 255, 0.2);
}
p{
    display: inline-block;
}

.bi-app{
    float:right;
    cursor: pointer;
    font-size: 22px;
    display: block;

}
.bi-check2{
    float:right;
    cursor: pointer;
    font-size: 24px;
    color:green;
}
.remove{
/*border:1px solid blue;*/
    width:10%;
    display: inline-block;
    height:100%;
    float:right;
    font-size: 80%;
    text-align: center;
    cursor: pointer;
    color: red;
}
.remove:hover{
    color:purple;
}
.edit{
    width:10%;
    display: inline-block;
    height:100%;
    font-size: 80%;
    float:right;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    color: blue;
    /*border:1px solid red;*/
    margin-left: 5px;
}
.edit:hover{
    color:purple;
}
.state:hover{
    color:gray;
}
#blur{
    width:100%;
    max-height:100%;
    position: absolute;
    background-color: gray;
    opacity: 0.3;
    display: none;
}
#edit{
        width:400px;
        height :200px;
        background-color: white;
        position:absolute;
        margin:auto;
        top:30%;
        z-index: 1000;
        left:0;
        right:0;
        display:none;
        box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
        border:2px solid pink;
        padding-left:2px;
}
        #edit #h_edit{
            margin-left: 3%;
        }
#edit label{
    display: block;
    font-size: 22px;
    margin-left:5%;
    margin-bottom: 10px;
}
#edit input{
    display: block;
    width:80%;
    height:35px;
    line-height: 35px;
     margin-left:5%;
    font-size: 18px;

    padding-left: 3px;
    margin-bottom: 15px;
}
#close{
    margin-right: 10px;
    /*padding :6px 10px 6px 10px;*/
    /*border-radius: 5px;*/
    margin-top: 20px;
    float:right;
    border:none;
    cursor: pointer;
    font-size: 22px;
    /*box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);*/
    /*background-color: #e52a3c;*/
}
#edit_btn{
     margin-left: 5%;
    padding :5px 15px 5px 15px;
    border-radius: 5px;
    /*margin-top: 15px;*/
    border:none;
    cursor: pointer;
    background-color: #a1a2a0;
}
#main-page{
    width:100%;
    height:100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Paper-like container */
.paper-container {
    background-color: #fefefe;
    background-image: 
        linear-gradient(to bottom, transparent 0%, transparent 24px, #e0e0e0 25px, #e0e0e0 26px, transparent 27px),
        linear-gradient(to right, #f8f8f8 0%, #f8f8f8 40px, transparent 41px);
    background-size: 100% 25px, 40px 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 40px 50px;
    margin: 20px;
    max-width: 800px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Red margin line */
.paper-container::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ff6b6b;
    opacity: 0.7;
}
#close{
    color: #f63c5d
}
#close:hover{
   color: gray;
}

/* Make the input-box a horizontal flex container */
#input-box {
  display: flex;
  align-items: center;
  gap: 8px;           /* space between elements */
}

/* Let the text input grow to fill remaining space */
#input-box #input {
  flex: 1;
  margin: 0;          /* remove any default margins */
}

/* Tweak both buttons so they line up */
#input-box button {
  background: none;
  border: none;
  padding: 6px;
  font-size: 20px;
  cursor: pointer;
  color: #f16e85;
}

/* Optional: hover states */
#input-box button:hover {
  color: #d04470;
}

#voice-modal {
    width: 400px;
    height: 250px;
    background-color: white;
    position: absolute;
    margin: auto;
    top: 20%;
    z-index: 1000;
    left: 0;
    right: 0;
    display: none;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    border: 2px solid #007bff;
    padding: 20px;
    border-radius: 8px;
    filter: none;
}

#voice-modal h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    filter: none;
}

#voice-status {
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
    color: #007bff;
    filter: none;
}

#voice-transcript {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    min-height: 60px;
    margin-bottom: 15px;
    font-style: italic;
    color: #666;
    filter: none;
}

.voice-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.voice-buttons button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

#start-voice-btn {
    background-color: #28a745;
    color: white;
}

#start-voice-btn:hover:not(:disabled) {
    background-color: #218838;
}

#stop-voice-btn {
    background-color: #dc3545;
    color: white;
}

#stop-voice-btn:hover:not(:disabled) {
    background-color: #c82333;
}

#cancel-voice-btn {
    background-color: #6c757d;
    color: white;
}

#cancel-voice-btn:hover {
    background-color: #5a6268;
}

.voice-buttons button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Voice button active state */
#voiceBtn i.bi-mic-fill {
    color: #dc3545;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
