* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
}

.fa-trash {
    margin-right: 5px;
}

/* Navbar Styles */
.navbar {
    background-color: #E4DEDE;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: auto;
    height: 46px;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    flex-wrap: nowrap;
    
}
.nav-left {
    order: 1;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-right: 10px;
    flex-wrap: nowrap;
    overflow-x: hidden;
    flex-shrink: 0;
    order: 2;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.fa-magnifying-glass {
    position: absolute;
    left: 10px;
}

.search-bar {
    padding: 5px 10px 5px 33px;
    border: 1px solid #ccc;
    border-radius: 20px;
    width: 18vw;
    cursor: pointer;
}

.actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-right: 10px;
    flex-wrap: wrap;
}

.archived-btn {
    background-color: #DF8989;
    color: white;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    padding: 5px 10px;
    cursor: pointer;
    border: 1px solid #ccc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: 0.5s;
}

.archived-btn:hover {
    color: #DF8989;
    background-color: white;
}

.new-board-btn {
    background-color: #2E768B;
    color: white;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    padding: 5px 20px;
    cursor: pointer;
    border: 1px solid #ccc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: 0.5s;
}

.new-board-btn:hover {
    color: #2E768B;
    background-color: white;
}

.add-btn {
    background-color: #67BE20;
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 32px;
    height: 32px;
    border-radius: 100%;
    cursor: pointer;
    border: 1px solid #ccc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 3px;
    transition: 0.5s;
}

.add-btn .fa-plus {
    margin-right: 0px;
    margin-top: 4px;
}

.add-btn:hover {
    background-color: #49900e;
    font-weight: 900;
}

/* DropDown List */
.fa-bars {
    font-size: 30px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #050505;
    padding: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 44px;
    right: 7px;
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0px 1px 7px rgba(168, 168, 168);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 12px;
}

.dropdown-menu button {
    width: 100%;
    padding: 5px 10px;
    cursor: pointer;
}

.dropdown-menu .add-btnn {
    background-color: #67BE20;
    color: white;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: 0.5s;
}

.dropdown-menu .add-btnn:hover {
    color: #67BE20;
    background-color: white;
}

.fa-plus {
    margin-right: 5px;
}

@media screen and (max-width: 1200px) {
    .nav-right {
        gap: 25px;
    }

    .search-bar {
        width: 25vw;
    }
}

@media (max-width: 768px) {

    .actions>.new-board-btn,
    .actions>.add-btn,
    .actions>.archived-btn {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .dropdown-menu.active {
        display: flex;
    }

    .search-bar {
        width: 50vw;
    }

    .nav-right {
        margin-right: 0px;
        gap: 130px;
    }
    .navbar {
        align-items: start;
        height : 75px;
        flex-direction: column;
    }
    .nav-right{
        order: 1;
    }
    .nav-left {
        order: 2;
    }
}

@media (max-width: 480px) {
    .search-bar {
        width: 54vw;
    }

    .nav-right {
        gap: 55px;
    }
    .navbar {
        align-items: start;
        height : 75px;
        flex-direction: column;
    }
    .nav-right{
        order: 1;
    }
    .nav-left {
        order: 2;
    }
}


.nav-left {
    display: flex;
    align-items: center;
    margin-left: 20px;
    margin-bottom: -20px;
    overflow-x: hidden;
    flex-wrap: nowrap;
}

.board-item {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    flex-wrap: nowrap;
    gap: 5px;
    flex-shrink: 1;
    overflow: hidden;
    text-wrap-mode: nowrap;
}

.board-tab {
    position : relative;
    flex-grow: 1;
    background-color: #E4DEDE;
    border: 1px solid #E4DEDE;
    border-radius: 5px;
    padding: 5px 5px;
    cursor: pointer;
    color: #7c7c7c;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    transition: 0.4s;
    flex-shrink: 1;
    overflow: hidden;
    text-wrap-mode: nowrap;
}

.delete-board-btn {
    position: absolute;
    background: #ea3a2a;
    color: #fff;
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    font-size: 6.5px;
    cursor: pointer;
    margin-left: -7px;
    margin-right: 6px;
    margin-top: -25px;
    visibility: hidden;
}

.board-tab.active {
    background-color: #ffffff;
    border: 1px solid #ffffff;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.board-tab.active+.delete-board-btn {
    visibility: visible;
}

.board-tab:hover {
    background-color: #e1d2d2;
    border: 1px solid #ddd;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    color: black;
}

.board-container {
    position: absolute;
}

/* sticky-note Styles */
.sticky-note {
    width: 200px;
    height: 180px;
    background: #eee;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    position: absolute;
    cursor: pointer;
}

.note-text {
    font-size: 16px;
    color: #555;
    padding: 10px;
}

.note-date {
    font-size: 12px;
    color: #888;
    position: absolute;
    bottom: 5px;
    left: 5px;
}

.note-colors {
    display: flex;
    opacity: 0;
    position: absolute;
    bottom: 5px;
    left: 10px;
}

.color-options {
    display: flex;
    gap: 4px;
}

.color-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #acaaaa;
    cursor: pointer;
}

.color-circle:hover {
    border: 1px solid #666;
}

.color-circle.gray {
    background: #eee;
}

.color-circle.red {
    background: #f28b82;
}

.color-circle.green {
    background: #ccff90;
}

.color-circle.blue {
    background: #aecbfa;
}

.delete-btn {
    background: #ea3a2a;
    color: #fff;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    font-size: 9.5px;
    cursor: pointer;
    opacity: 0;
    position: absolute;
    bottom: 5px;
    right: 7px;
}

.delete-btn:hover,
.delete-board-btn:hover {
    background: #d32f2f;
}

.sticky-note:hover {
    transform: translateY(-3px);
    border: 1px solid #6a6a6a;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);

    .note-colors {
        opacity: 1;
        transition: opacity 0.4s ease;
    }

    .delete-btn {
        opacity: 1;
        transition: opacity 0.4s ease;
    }

    .note-date {
        transform: translateY(-20px);
    }
}

.resizer {
    width: 7px;
    height: 7px;
    background-color: #eee;
    position: absolute;
    bottom: 0;
    right: 0;
    cursor: se-resize;
    border-radius: 10%;
    margin: 2px;
    border-bottom-right-radius: 50%;
}