﻿body {
    font-family: 'Segoe UI', Tahoma, Geneva, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #6f7079;
    color: #333333;
    box-sizing: border-box; /* Ensures padding and borders don't cause overflow */
}

.container {
    display: flex;
}

.sidebar {
    width: 280px;
    padding: 20px;
    overflow-y: auto;
    background-color: #2c3e50;
    color: #ffffff;
    top: 60px; /* Adjust based on your header height */
    z-index: 1000; /* Ensure sidebar is above other content */
}

.main-content {
    margin-left: 280px; /* Should match sidebar width */
    padding: 20px;
    width: calc(100% - 300px); /* Ensure main content doesn't overflow */
}

#notesContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.note-card {
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #fff;
    height: 250px; /* Fixed height for all note cards */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .note-card h3 {
        margin: 0 0 10px 0;
    }

    .note-card p {
        flex-grow: 1; /* This allows the content to fill the available space */
        margin: 0;
    }

    .note-card .category {
        font-size: 0.8em;
        color: #555555;
        margin-top: 10px;
        align-self: flex-end;
    }

header {
    background-color: #2c3e50;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    width: 100%;
    top: 0;
    z-index: 1001;
    
    
}

button {
    background-color: #b0be09;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #fefefe;
   
}
    button:hover {
        background-color:#dbd109;
    }

#newNoteBtn{
    margin-right:20px;

}

.tag {
    background-color: rgba(0,0,0,0.1);
    padding: 5px 10px;
    border-radius: 15px;
    margin-right: 5px;
    display: inline-block;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin:0;
    
}

    .sidebar ul li {
        display: flex;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #555;
        position: relative;

    }

.edit-category-btn {
    margin-left:auto;
}

/* Optional: Add margin to the left of the delete button */
.delete-category-btn {
    margin-left: 5px; /* Adjust the space as needed */
}


.sidebar ul li a {
    color: white;
    text-decoration: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

#newNoteForm input,
#newNoteForm textarea,
#newNoteForm select,
#editNoteForm input,
#editNoteForm textarea,
#editNoteForm select
{
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#newNoteForm button,
#editNoteForm button {
    width: 100%;
    padding: 10px;
    background-color: #7e57c2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    #newNoteForm button:hover {
        background-color: #6a4caf;
    }

    /* for adding calendar*/
#calendar {
    width: 100%;
    background-color: #ffffff;
    border-radius: 5px;
    padding-right: 0px;
    margin-bottom: 20px;
    margin-top: 20px;

    
}

.ui-datepicker {
    width: 100%;
    font-size: 0.9em;
}

    .ui-datepicker table {
        width: 100%;
        
    }

    .ui-datepicker th {
        padding: 0.5em 0.3em;
        font-size: 0.8em;
    }

    .ui-datepicker td span, .ui-datepicker td a {
        padding: 0.2em;
        text-align: center;
    }
a:link {
    text-decoration: none;
    color: #FFFFFF;
    }

a:visited {
    color: #FFFFFF;
}

a:hover {
    color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 768px) {
    #calendar {
        padding: 10px;
    }

    .ui-datepicker-header {
        font-size: 1em;
    }

    .ui-datepicker-title {
        font-size: 1em;
    }

    
}


/* for search box*/
.search-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px; /* Added to round the corners of the entire container */
    overflow: hidden; /* Ensures child elements fit within the rounded container */
}

#searchInput {
    padding: 10px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    width: 400px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow for better input visibility */
}

#searchButton {
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    height: 40px;
    width: 40px;
    background-color:white; /* Changed to a more noticeable color */
    font-size: 16px; /* Ensures the icon text is visible */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition on hover */
}

    #searchButton:hover {
        background-color: #dbd109; /* Darker shade for hover effect */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Adds a shadow on hover for depth */
    }


    