* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#container {
    display: flex;
    margin: 0;
    padding: 0;
    height: 100vh;
}

.sidebar {
    width: 250px;
    height: 100vh;
    background-color: black;                /* change color */
    padding: 15px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px;
}
.logo h3{
    color: white;
}
.logo img{
    width: 40px;
    height: 40px;
}
.new-notes button{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px;
}
.new-notes p{
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.optn {
    margin-top: 25px;
}

.pin {
    font-size: 19px;
}
.optn button {
    display: flex;
    align-items: center;
    gap: 10px;
}
.optn button p {
    margin: 0;
}
.optn button .count {
    margin-left: auto;
}

.ctg {
    margin-top: 25px;
}
.ctg hr {
    color: gray;
}
.ctg-name {
    color: gray;
    font-weight: 600;
}
.ctg button{
    display: flex;
    align-items: center;
    gap: 10px;
    width: 220px;
    height: 37px;
    margin-bottom: 5px;
}
.ctg button p {
    margin: 0;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 30%;
}
.purple .dot{
    background: #8b5cf6;
}
.green .dot{
    background: #4ade80;
}
.blue .dot{
    background: #60a5fa;
}.red .dot{
    background: #fb7185;
}.yellow .dot{
    background: #facc15;
}
.ctg .count {
    margin-left: auto;
}
.ctg-name{
    margin-bottom: 12px;
}
.ctg hr {
    margin: 12px 0;
}
.main-cont {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

#navbar {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.search-bar {
    position: relative;
    width: 350px;
    height: 35px;
}

.search-bar input{
    width: 100%;
    height: 100%;
    padding:12px 12px 12px 40px;
    background-color: #f8f6f6;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: gray;
}
.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: gray;
}

.profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90px;
    margin-right: 15px;
}
.dp {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ccc;
}
.profile i {
    color: rgb(18, 17, 17);
    cursor: pointer;
}

.write {
    border: 1px solid #8b5cf6;
    border-radius: 8px;
    height: 200px;
    padding: 15px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.162);
    background-color: #f8f6f6;
}
.hide {
    display: none;
}

.content {
    width: 100%;
}
.content input {
    width: 100%;
    margin-bottom: 15px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: gray;
}
.content textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: gray;
}

.main-addnotes {
    display: flex;
    align-items: center;
}
.note-tag{
    display: flex;
    gap: 25px;
}
.note-tag span:hover {
    height: 26px;
}
.clicked {
    border: 2px solid black;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.162);
}
.add-btn {
    width: 100%;
}
.add-btn button{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-left: auto;
}
.add-btn button p {
    margin: 0;
}

.cards {
    display: grid;
    margin-top: 15px;
    gap: 10px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.cards .card {
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.162);
}
.card .card-ttl {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-ttl {
    font-size: 22px;
}
.card-cont {
    width: 75%;
}
.card-cont p {
    margin-bottom: 8px;
    min-height: 104px;
}

.date{
    margin-bottom: 8px;
    margin-top: auto;
    font-size: 12px;
    font-weight: 600;
}

.tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tag span {
    min-width: auto;
    height: 25px;
    border-radius: 5px; 
    text-align: center;
}
.tag span p {
    font-size: 13px;
    margin: 0;
    font-weight: 600;
    padding: 0px 6px;
}

.tag-icons{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 65px;
}
.tag-icons i {
    font-size: 22px;
    cursor: pointer;
}

.cards .none { display: none;}

.cards .green { background-color: #68ea5f73;}
.cards .blue { background-color: #60a5fa9b; }
.cards .red { background-color: #fb718691;}
.cards .yellow { background-color: #facc1592;}

.tag .green{background-color: #4ade80; color: green;}
.tag .blue{background-color: #60a5fa; color: blue;}
.tag .red{background-color: #f78899; color: rgb(206, 49, 75);}
.tag .yellow{background-color: #e2bd27b6; color: rgb(90, 90, 2);}
