:root {
    /* --gradient: radial-gradient(ellipse farthest-corner at right bottom, #FEDB37 0%, #FDB931 8%, #9f7928 30%, #8A6E2F 40%, transparent 80%),
    radial-gradient(ellipse farthest-corner at left top, #FFFFFF 0%, #FFFFAC 8%, #D1B464 25%, #5d4a1f 62.5%, #5d4a1f 100%); */
    --gradient: #d1cfcf;
    --select-border: #777;
    --select-focus: blue;
    --select-arrow: var(--select-border);
    --main-color: #232946;
    --secondary-color: #fffffe;
    --tertiary-color: #d1cfcf;
    --highlight-color: #eebbc3;
    --stroke-color: #121629;
    --stroke-light-color: #292d43d3;
  }
/* remove scrollbars on all divs and main for all browsers including firefox */
div::-webkit-scrollbar {
    display: none;
}
main::-webkit-scrollbar {
    display: none;
}
div::-webkit-scrollbar-track {
    display: none;
}
main::-webkit-scrollbar-track {
    display: none;
}
div::-webkit-scrollbar-thumb {
    display: none;
}
div {
    scrollbar-width: none;
}
main {
    scrollbar-width: none; 
}
form > button{
    cursor: pointer;
}
.search-results {
    position: absolute;
    top: 50px;
    left: 0;
    min-width: 250px;
    width: 100%;
    max-width: 600px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: none;
    overflow-y: auto;
    max-height: 400px;
    padding: 8px 0;
    scrollbar-width: thin;
}

.search-result-item {
    padding: 12px 16px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 20px; /* Subtle movement effect */
}
/* Prevents zoom on inputs, textareas, and editable divs */
input, 
select, 
textarea, 
[contenteditable="true"], 
[contenteditable=""] {
  font-size: 17px;
}

.menu-item{
    border-radius: 5px;
}  
.icon-text, svg {
    margin: 0;
    color: white;
    font-size: xx-small;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0px;
    padding: 0px;
    cursor: pointer;
    user-select: none;
}
.navbar {
    display: flex;
    width: 100%;
    /* justify-content: center;
    align-items: center; */
    gap: 1rem;
    /* padding: 12px 24px; */
    background: linear-gradient(135deg, #1e293b, #334155);
    /* border-radius: 12px; */
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    overflow-x:scroll;
position: fixed;
    top: 0px;
    right: 0px;
    align-items: center;
  }
  .hide{
    /* display:none */
  }
.side-bar{
    position: fixed;
    border: solid black 1px;
    height: auto;
    width: 200px;
    background: linear-gradient(135deg, #1e293b, #334155);;
    top: 42px;
    right: 0px;
    display:none;
    flex-direction:column;

}
.menu-item:hover{
    background: #444;
}
.side-bar > div{
    padding: 5px;
    border-bottom: solid 1px white;
}
.more{
    position:absolute;
    right:0px;
    display:none;
    margin-left:5px;
    color:white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 5px;
    padding-right: 5px;
}
.menu-item{
    color: white;
    cursor: pointer;
    padding-left: 8px;
    padding-right: 8px;
    margin: 8px;
    white-space: nowrap;
    user-select: none;

    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.hamburger-posts{
    display: none;
}
.app{
    margin-top: 55px;
    height: 95vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1e293b, #334155);
   
}
.feed_options{
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: fixed;
    top: 50px;
    left: 0px;
    margin-left: 10px;
    width: auto;
    height: auto;
    max-height: 400px;
    background: linear-gradient(135deg, #1e293b, #334155);
    z-index: 1000;
    overflow-x:scroll;
}
.feed_option{
    padding: 5px;
    border-bottom: solid 1px white;
    color: white;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.feed_option:hover{
    background: #444;
    border-bottom: solid 1px #444;
}
.scroll-off{
    overflow-y: hidden;
    overflow-x: hidden;
    scrollbar-width: none;
}
.scroll-off::-webkit-scrollbar {
    display: none;
}
.scroll-off::-webkit-scrollbar-track {
    display: none;
}
.scroll-off::-webkit-scrollbar-thumb {
    display: none;
}

.shimmer-line {
    width: 100%;
    height: 20px;
    margin: 2px;
    background: linear-gradient(90deg, #201919 25%, #787171 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -0% 0;
    }
}

/* --- Quill Toolbar Undo/Redo Buttons --- */
.ql-toolbar .ql-undo, .ql-toolbar .ql-redo {
    width: 28px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.2s ease;
    margin: 0 4px !important;
    color: white !important; /* For the injected SVG fill='currentColor' */
}

.ql-toolbar .ql-undo:hover, .ql-toolbar .ql-redo:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px;
}

.ql-toolbar .ql-undo svg, .ql-toolbar .ql-redo svg {
    width: 18px;
    height: 18px;
}
