body {
    font-family: 'Quicksand', "Helvetica Neue", helvetica, arial, sans-serif;
    padding: 0px;
    color: #f8fafc;
    background-color: #0f172a;
    font-weight: 400;
    line-height: 1.6;
    font-size: 15px;
    word-wrap: break-word;
    width: 100%;
}

.topbar button * {
    height: fit-content;
}

#wrapper {
    margin-bottom: 75px;
}

#chat-content {
    font-family: sans-serif;
    margin: auto;
    overflow-y: scroll;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 10px;
}

#style_b,
#style_i,
#style_u {
    width: 20px;
}

#msg {
    margin-bottom: -1px;
    width: 100%;  
    height: 28px;
    background-color: #0f172a;
    color: #f8fafc;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 0 10px;
}

.disabled{   
    border: solid 2px rgba(118, 118, 118, 0.3);
}

#msg img, .ce_div img{
    height: 20px;
    margin: 3px 2px;
}

@media (min-width: 768px) {
    .page {
        min-height: auto;
    }

    #content {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    #content {
        min-height: 700px;
    }
}

input,
textarea {
    padding: 6px 10px;
    background-color: #0f172a;
    color: #f8fafc;
    border: 1px solid #334155;
    border-radius: 4px;
}

select {
    padding: 6px 10px;
    background-color: #0f172a;
    color: #f8fafc;
    border: 1px solid #334155;
    border-radius: 4px;
}

button,
input,
optgroup,
select,
textarea {
    line-height: initial;
}

button,
input[type=submit]{
    padding: .35rem .75rem;
    font-size: .875rem;
    line-height: 1.2;
    border-radius: .3rem;
    color: #fff;
    background-color: #38bdf8;
    border-color: #38bdf8;
    border: 1px solid transparent;
    cursor: pointer;
}

button:hover,
input[type=submit]:hover {
    background-color: #0ea5e9;
}

label {
    margin-bottom: 0px;
}

button[disabled], .disabled,
input[type=submit][disabled],
input[type=text][disabled] {
    background-color: #334155 !important;
    opacity: 0.6;
}

.chatProfile,
#blinkdiv {
    cursor: pointer;
}

.chatphotos button {
    display: none;
}

label {
    font-weight: bolder;
    color: #38bdf8;
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        background-color: #ef4444;
    }
}

.imbox {
    height: 250px;
    overflow-y: auto;
    background-color: #1e293b;
}

#onlineusers {
    z-index: 1999;
    color: #000;
}

#offlinemsgs, #banModal{
    z-index: 2000;
    color: #000;
}

.intro {
    color: #38bdf8;
}

.notifs {
    font-style: oblique;
    font-weight: lighter;
    color: #94a3b8;
}

.chatProfileLink {
    margin-right: 8px;
}

.messages img:not(.media),
.pvt_messages img:not(.media) {
    width: 25px;
    height: 25px;
    margin: 0px 2px;
    margin-bottom: 0px;
}

.media {
    margin: 0px 2px;
    margin-bottom: 5px;
}

#onlineusers .getIm {
    color: white;
}

input[type=image]:disabled, #add-link:disabled, i[disabled]{
    opacity: 0.5;
}

.btngroup {
    margin-right: 8px;
}

.vids img {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0px auto;
}

.vids {
    height: 100px;
    float: left;
    display: block;
}

.gifbox {
    min-height: 320px;
    max-height: 320px;
    overflow: hidden;
    overflow-y: auto;
    padding: 10px;
    background-color: #1e293b;
}

#gifModal .modal-content {
    max-width: 360px;
    background-color: #1e293b;
    color: #f8fafc;
}

#giftxt,
#youtubetxt {
    font-family: FontAwesome, "Open Sans", Verdana, sans-serif;
    font-style: normal;
    font-weight: normal;
    text-decoration: inherit;
    padding: 5px;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    border-radius: 2px;
    background-color: #0f172a;
    color: #f8fafc;
    border: 1px solid #334155 !important;
}

.youtubevids {
    height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
}

.youtubevids .vids {
    margin-bottom: 100px;
}

.emoji-box p{
    font-size: 22px;
    display:inline-block;
    cursor: pointer;
}

.emoji-box p img{
    height: 30px;
}

.spinner {
    display:    none;
    position:   fixed;
    z-index:    1500;
    top:        0px;
    left:       0px;
    height:     100%;
    width:      100%;
    background: rgba( 15, 23, 42, .8 ) 
                url('img/spinner.gif') 
                50% 50% 
                no-repeat;
}

body.loading .spinner {
    overflow: hidden;   
}

body.loading .spinner {
    display: block;
}

#file{
    width:100%;
}

[data-primary]{
    margin-right: 30%;
}
[data-delhash]{
    margin-left: 30%;
}

.duration input{
    width: 80px;
}

#banForm{
    height: 300px;
}

#emoji-picker, #add-link, .comments img, .reply_matter img{
    width: 24px;
}

.comments{padding: 15px 0px;}

.replies{
    font-size: small;
}

button:focus, button,
input[type=submit], input[type=submit]:focus,
input[type=image], input[type=image]:focus{
    outline: none;
    box-shadow: none;
}

[contenteditable="true"]{
    white-space: nowrap;
    overflow: hidden;
    border: solid 1px #38bdf8;
    background-color: #0f172a;
    color: #f8fafc;
} 

.media-body img{
    width: 100%;
}

#pagination * {
    padding: 5px 10px;
}

@media (min-width: 768px) {
    .navbar-nav > li > a {
        padding-top: 20px;
        padding-bottom: 20px;
        transition: all 0.5s ease-in-out;
        -moz-transition: all 0.5s ease-in-out;
        -webkit-transition: all 0.5s ease-in-out;
        -o-transition: all 0.5s ease-in-out;
    }
    .shrink .navbar-nav > li > a {
        padding-top: 15px;
        padding-bottom: 15px;
        font-size: 14px;
    }
    #site-navigation .container{
        padding-left: 0px;
        padding-right: 0px;
    }
    .navbar-center .navbar-nav {
        display: inline-block;
        float: none;
        vertical-align: top;
    }

    .navbar-center .menu-container {
        text-align: center;
    }
}

@media (min-width: 600px) {
    #site-navigation.shrink {
        top: 32px;
    }
}

@media (max-width: 767px) {
    .menu-container {
        width: 35%;
        position: absolute;
        left: 0px;
        transform: translate3d(-100%, 0, 0);
        overflow-y: auto;
        overflow-x: auto;
        top: 100%;
        background: #1e293b;
        border-right: 1px solid #334155;
    }
    .openNav .menu-container {
        transform: translate3d(0, 0, 0);
        transition: transform 500ms ease;
    }
    .navbar-nav {
        padding: 0px;
        margin: 0px;
    }
    .navbar-nav a {
        font-size: 14px;
        padding: 15px 10px ;
        margin: 0px;
        line-height: 16px;
        float: left;
        width: 100%;
        text-transform: none;
        word-wrap: break-word;
        white-space: normal;
        color: #f8fafc;
    }
    .navbar-nav li, .navbar-nav ul {
        padding: 0px;
        margin: 0px;
    }
    .open-panel {
        width: 32px;
        height: 32px;
        position: absolute;
        top: 18px;
        right: 22px;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        -o-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
        cursor: pointer;
    }
    .shrink .open-panel {
        top: 12px;
    }
    .open-panel span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: white;
        opacity: 1;
        left: 0px;
        -webkit-transition: .25s ease-in-out;
        -moz-transition: .25s ease-in-out;
        -o-transition: .25s ease-in-out;
        transition: .25s ease-in-out;
    }
    .open-panel span:nth-child(1) {
        top: 0px;
        -webkit-transform-origin: left center;
        -moz-transform-origin: left center;
        -o-transform-origin: left center;
        transform-origin: left center;
    }
    .open-panel span:nth-child(2) {
        top: 9px;
        -webkit-transform-origin: left center;
        -moz-transform-origin: left center;
        -o-transform-origin: left center;
        transform-origin: left center;
    }
    .open-panel span:nth-child(3) {
        top: 18px;
        -webkit-transform-origin: left center;
        -moz-transform-origin: left center;
        -o-transform-origin: left center;
        transform-origin: left center;
    }
    .open-panel.open span:nth-child(1) {
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
        top: -2px;
        left: 3px;
    }
    .open-panel.open span:nth-child(2) {
        width: 0%;
        opacity: 0;
    }
    .open-panel.open span:nth-child(3) {
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
        top: 21px;
        left: 3px;
    }
    .caret, .dropdown-submenu>a:after {
        display: none !important; 
    }
    .navbar-nav .dropdown-menu {
        width: 100%;
        display: block !important;
        left: 0px !important;
        position: relative !important;
        border: none !important;
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        background-color: #1e293b;
    }
    .openNav .page-area:after {
        content: '';
        position: absolute;
        top: 0px;
        right: 0px;
        bottom: 0px;
        background-color: #00000085;
        left: 0px;
    }
}

.dropdown-menu > li > a {
    border-bottom: 0px;
    color: #f8fafc;
}

#site-navigation {
    min-height: 60px;
    z-index: 1;
}

.navbar-collapse {
    padding-left: 0px;
    padding-right: 0px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0px;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    -webkit-border-radius: 0px 6px 6px 6px;
    -moz-border-radius: 0px 6px 6px;
    border-radius: 0px 6px 6px 6px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.dropdown-submenu>a:after {
    display: block;
    content: " ";
    float: right;
    width: 0px;
    height: 0px;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0px 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover>a:after {
    border-left-color: #fff;
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left>.dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 6px 0px 6px 6px;
    -moz-border-radius: 6px 0px 6px 6px;
    border-radius: 6px 0px 6px 6px;
}

.navbar-toggle {
    border: 1px solid #334155;
}

.navbar-toggle .icon-bar {
    background-color: #f8fafc;
}

.navbar-nav > li > a {
    border-bottom: 0px;
    text-transform: uppercase;
}

.navbar {
    margin-bottom: 0px;
}

.main-menu {
    position: relative;
}

#site-navigation, nav a {
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    color: #f8fafc;
    border-radius: 0px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

#site-navigation.shrink {
    min-height: 45px;
    position: fixed;
    width: 100%;
    top: 0px;
}

#site-navigation span{
    line-height: 1.5;
}

@media (min-width: 768px){
    .navbar-nav > li {
        float: left;
    }
    .menu-container{
        width:100%;
    }
}

.nav > li {
    position: relative;
    display: block;
}

@media (min-width: 768px){
    .navbar-nav > li > a {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        transition: all 0.5s ease-in-out;
    }
}

.navbar-default .navbar-nav > li > a {
    color: #f8fafc;
    text-decoration: none;
}

.navbar-default .navbar-nav > li.active > a{
    color: #38bdf8;
    background: transparent;
}

.nav > li > a {
    position: relative; 
    display: block; 
    padding: 10px 15px;
}

.navbar-nav > li > a {
    line-height: 20px;
}

.navbar {
    padding: 0px;
}

@media (min-width: 768px){
    .shrink .navbar-nav > li > a {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
}

.footer-credits{
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;  
    background-color: #1e293b;
    border-top: 1px solid #334155;
    clear: both;
    z-index: 1000;
}

.footer-credits-text, .footer-credits-text a{
    color: #94a3b8;
    text-decoration: none;
}

.footer-credits-text a:hover {
    color: #38bdf8;
}

.footer-credits-text img {
    background-color: white;
    height: 18px;
    margin-bottom: 2px;
    border-radius: 2px;
}

h1, h2{
    color: #38bdf8;
}

#mediaModal div.modal-header{
    height: 54px;
    background-color: #1e293b;
    color: #f8fafc;
}

.pvt_css{
    background: linear-gradient(45deg, #ec4899, #8b5cf6);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
}

#profileModal #getPhotos img{
    width: 200px;
    cursor: pointer;
}

.hide{
  display: none;  
}

.btn-xs {
    padding: .25rem .4rem;
    font-size: .875rem;
    line-height: .5;
    border-radius: .2rem;
}

.flash{
    background-color: #334155;
}

span.time{
    color: #94a3b8;
    font-size: smaller;
}

#getPhotos img{ 
    height: 200px;
    width: 200px;
}

.modal-header{
    padding: 5px 1rem !important;
}

.modal-title{
    line-height: 1;
}

.topbar{
    position: absolute;
    z-index: 2;
    gap: 5px;    
}

.topbar i{
    margin: 0px 0px;
}

.emoji-box, .link-box{
    position: absolute;    
    top: 55px;
    z-index: 2;
    background: #1e293b;
    border: 1px solid #334155;
    padding: 16px 16px;
    max-width: 270px;
    color: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.5);
}

.emoji-box{
    overflow-y: scroll;
}

.topbar input[type=image]{
    /* width: 25px; */
    height: 25px;
    border: 1px solid;
    border-color: #334155;
}

hr {
    border: none;
    border-top: 3px double #334155;
    color: #334155;
    overflow: visible;
    text-align: center;
    height: 5px;
}

hr:after {
    background: #0f172a;
    content: '§';
    padding: 0px 4px;
    position: relative;
    top: -13px;
    color: #94a3b8;
}

.shrink .brand_logo {
    /* width: 91px !important; */
    height:30px !important
}

.shrink span{
    line-height: 1.1 !important;
}

.nav{
    background: #1e293b;
}

/* --- BLOGS & TABLES FIX --- */
.table, .table-responsive, table {
    color: var(--text-main, #f8fafc) !important;
    background-color: var(--bg-secondary, #1e293b);
    border-radius: 8px;
    border: 1px solid var(--border-color, #334155);
}

table th, table td {
    color: var(--text-main, #f8fafc) !important;
    border-color: #334155 !important;
    padding: 12px !important;
}

table a {
    color: #38bdf8 !important;
    text-decoration: none;
}

table a:hover {
    color: #0ea5e9 !important;
    text-decoration: underline;
}

/* Table rows hover effect for dark theme */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

.table tbody tr:hover {
    background-color: rgba(56, 189, 248, 0.05);
}

/* --- HOMEPAGE / CHAT INPUT CONTRAST FIX --- */
#msg, input[type="text"], textarea, select {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid #475569 !important;
}

#msg:focus, input[type="text"]:focus, textarea:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* Chat content area card framing */
#chat-content {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

/* --- TABLE & BLOGS FINAL POLISH --- */
.table, .table-responsive, table {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
}

.table th, .table td, table th, table td {
    color: #f8fafc !important;
    border-top: 1px solid #334155 !important;
    border-bottom: 1px solid #334155 !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

/* --- ABOUT PAGE AUTHOR CARD FIX --- */
.author-card.bg-light {
    background-color: var(--bg-secondary, #1e293b) !important;
    color: var(--text-main, #f8fafc) !important;
    border: 1px solid var(--border-color, #334155) !important;
}

.author-card.bg-light .text-muted {
    color: var(--text-muted, #94a3b8) !important;
}

.author-card.bg-light h5 {
    color: var(--accent-color, #38bdf8) !important;
}