body {
    background-color: #0a0a0a;
    color: #c1c1c1;
    padding-bottom: env(safe-area-inset-bottom);
    padding-top: env(safe-area-inset-top);
}

.sidebar_l, .sidebar_r {
    background-color: #0a0a0a;
}
.mobile-bottom-bar {background-color: #0a0a0a !important; border-top-color: rgb(255 255 255 / 15%) !important;}
.mobile-bottom-bar .mobile-nav-item:not(:last-child) {border-right-color: rgb(255 255 255 / 15%) !important;}
.userdropdown .dropdown-menu {border: 1px solid rgb(255 255 255 / 15%);}

#maincontainer {
    background-color: #111;
}

.container {
    background-color: #111;
}

.border-start, .border-end, .border-top, .border-bottom, .border {
    border-color: rgb(255 255 255 / 15%) !important;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5 {
    color: var(--bs-primary);
}

/* Track */
::-webkit-scrollbar-track {
    background: #111;
    border: 0;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #343434;
}

.btn-primary {
    border: 1px solid rgba(0, 0, 0, 0.0);
}

.btn-primary:hover {
    filter: brightness(1.2);
    border: 1px solid rgba(0, 0, 0, 0.5);
}

.btn-outline-primary:hover {
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.0);
}

/* NAV */
ul.nav a {
    color: inherit;
}

ul.dropdown-menu {
    background-color: #111;
}

ul.dropdown-menu li a {
    color: #ddd;
}

ul.dropdown-menu li a:hover {
    background-color: #111;
    color: var(--bs-primary);
}

ul.dropdown-menu .dropdown-divider {
    border-color: var(--bs-primary);
}

li a:hover, .nav-link:hover {
    text-decoration: underline;
}

.logo {
    color: #ddd;
}

.groups-card {
    background-color: #0a0a0a;
    border: 1px solid rgb(255 255 255 / 15%);
}

.groups-card:hover {
    border-color: rgb(255 255 255 / 30%);
}

.your-groups-title {
    color: #c9c9c9 !important;
    font-weight: 600;
    opacity: 1;
}

.discover-groups-link {
    border: 1px solid rgba(13, 110, 253, 0.4);
    background-color: #111821;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    color: #8fb9ff;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.logo-box {
    width: 55px;
    padding: 8px 5px 5px;
    word-wrap: break-word;
    border: 2px solid var(--bs-primary);
    line-height: 0.5em;
    text-align: center;
    border-radius: 10px;
}

.logo .mh {
    font-weight: 700;
    font-size: 24px;
    color: var(--bs-primary);
}

.logo .logo-title {
    text-transform: uppercase;
    font-size: 12px;
    color: inherit;
}

.post_content {
    background-color: #00000070 !important;
    border: none !important;
}

/* Feed */
#feed textarea, #comments textarea {
    background-color: #0a0a0a;
    border-color: transparent;
    color: #ddd;
}

#feed select {
    background-color: #0a0a0a;
    color: #ddd;
}

#feed input {
    background-color: #111111 !important;
    color: #ddd;
    border-color: transparent;
}

#feed input::file-selector-button {
    background-color: #0a0a0a !important;
    color: #ddd;
    border-color: transparent;
}
.bg-white {
    background-color: #0a0a0a!important;
    color: #c1c1c1;
}

.vote-button i.fa-solid.fa-thumbs-up,
.vote-button i.fa-solid.fa-thumbs-down {
    color: inherit;
}
.vote-button.vote-up.vote-active i.fa-solid.fa-thumbs-up {
    color: var(--bs-success);
}
.vote-button.vote-down.vote-active i.fa-solid.fa-thumbs-down {
    color: var(--bs-danger);
}

/*profile*/
.card {
    background-color: transparent;
    color: #ddd !important;
}


.list-group-item {
    background-color: #0a0a0a;
    border-color: rgb(255 255 255 / 15%);
    color: #c9c9c9;
}
.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: #141414;
    color: #e5e5e5;
}

.ticket-unread {
    border-left: 4px solid var(--bs-primary);
    background-color: #141c25;
}

table.table {
    color: #c9c9c9;
}
.table>:not(caption)>*>* {
    background-color: #0a0a0a;
    color: #c9c9c9;
}
.table thead th,
.table thead td,
.table thead * {
    color: #e5e5e5;
    border-color: rgb(255 255 255 / 15%);
}
table.table td,
table.table th {
    border-color: rgb(255 255 255 / 15%);
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
    color: #c9c9c9;
    background-color: #0f0f0f;
}
.table-striped > tbody > tr:nth-of-type(even) > * {
    color: #c9c9c9;
    background-color: #0a0a0a;
}

.sidebar_l ul.z-top.dropdown-menu {
    background-color: #111 !important;
    width: 220px !important;
    left: auto !important;
    right: 1rem !important;
    padding: 0.5rem 0 !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.45);
}

.sidebar_l ul.z-top.dropdown-menu .nav-link.dropdown-item {
    color: #ddd;
    padding: 0.25rem 1rem;
}

.sidebar_l ul.z-top.dropdown-menu .nav-link.dropdown-item:hover {
    background-color: #111;
    color: var(--bs-primary);
}

/* Toggles */
.form-check-input {
    background-color: #1a1a1a;
    border-color: #3a3a3a;
}
.form-check-input:focus {
    border-color: #5a5a5a;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}
.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Forms */
form input, .form-control {
    background-color: #0a0a0a;
    border-color: rgb(255 255 255 / 15%);
    color: #c9c9c9;
    padding: 5px 10px;
}
.form-control:focus,
.form-control:focus-visible {
    background-color: #0a0a0a !important;
    border-color: rgb(255 255 255 / 35%) !important;
    color: #e5e5e5 !important;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25) !important;
}
select.form-select {
    background-color: #0a0a0a;
    border-color: rgb(255 255 255 / 15%);
    color: #c9c9c9;
}
select.form-select:focus,
select.form-select:focus-visible {
    background-color: #0a0a0a;
    border-color: rgb(255 255 255 / 35%);
    color: #e5e5e5;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}
select.form-select option {
    background-color: #0a0a0a;
    color: #c9c9c9;
}

.text-muted {
    color: #9da3a7 !important;
}

/* Alerts */
.alert {
    background-color: #111;
    border-color: rgb(255 255 255 / 20%);
    color: #d5d5d5;
}
.alert-info {
    background-color: #0f141b;
    border-color: rgb(13 110 253 / 35%);
    color: #cddbf2;
}
.alert-secondary {
    background-color: #0f0f0f;
    border-color: rgb(255 255 255 / 20%);
    color: #c9c9c9;
}
.alert-warning {
    background-color: #1a1406;
    border-color: rgb(255 193 7 / 40%);
    color: #f6e7b0;
}
.alert-success {
    background-color: #0f1b12;
    border-color: rgb(25 135 84 / 45%);
    color: #bfe3cc;
}
.alert-danger {
    background-color: #1c0b0b;
    border-color: rgb(220 53 69 / 45%);
    color: #f2b9bf;
}

/* Profile stats */
.profile-stats {
    background-color: #111111;
}
.profile-stats .text-muted {
    color: #9da3a7 !important;
}

/* Profile gallery button */
.gallery-button {
    background-color: #111;
    border-color: rgb(255 255 255 / 30%);
    color: #e9ecef;
}
.gallery-button:hover {
    background-color: #1a1a1a;
    border-color: rgb(255 255 255 / 45%);
    color: #ffffff;
    text-decoration: none;
}

/* Intro page */
.overlay {background-color: rgb(10 10 10 / 95%)!important;}
.overlay div {background: linear-gradient(0deg, rgb(10 10 10 / 0%) 0%, rgb(10 10 10) 50%)!important;}

/* Pagination */
.pagination .page-link {
    background-color: #0a0a0a !important;
    border-color: rgb(255 255 255 / 15%) !important;
    color: #c1c1c1 !important;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    background-color: #111 !important;
    border-color: rgb(255 255 255 / 30%) !important;
    color: #fff !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

.pagination .page-item.disabled .page-link {
    background-color: #0a0a0a !important;
    border-color: rgb(255 255 255 / 10%) !important;
    color: #6c757d !important;
}
