html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    background-color: #121318;
    color: #eeeef0;
    display: flex;
    flex-direction: column;
}

/* Scroll slider */
::-webkit-scrollbar {
    width: 10px;
    background-color: #121318;
}

::-webkit-scrollbar-thumb {
    background-color: #1a1a20;
    border-radius: 5px;
}

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

header {
    position: sticky;
    top: 0;
    z-index: 10;
    left: 0;
    width: 100%;
}

:root {
    --header-height: 90px; /* Adjust this value to match your header height */
    --footer-height: 90px; /* Adjust this value to match your footer height */
}

.text-light {
    color: #eeeef0 !important;
}

.bg-dark {
    background-color: #1a1a20 !important;
}

.btn-secondary {
    background-color: rgb(48, 47, 54);
    border-color: rgb(48, 47, 54);
    transition: .2s;
}
.btn-secondary:hover {
    background-color: rgb(50, 49, 56);
    border-color: rgb(50, 49, 56);
}
.btn-secondary:focus {
    background-color: rgb(50, 49, 56);
    border-color: rgb(50, 49, 56);
}

/* .btn-primary {
    background-color: #a96fff !important;
    border-color: #a96fff !important;
    transition: .2s;
}
.btn-primary:hover {
    background-color: #b17fff !important;
    border-color: #b17fff !important;
}
.btn-primary:focus {
    background-color: #b17fff !important;
    border-color: #b17fff !important;
    box-shadow: none !important;
}
.btn-primary:active {
    background-color: #9f5fff !important;
    border-color: #9f5fff !important;
    box-shadow: none !important;
} */

.btn-primary {
    background-color: #ffa16f !important;
    border-color: #ffa16f !important;
    transition: .2s;
}
.btn-primary:hover {
    background-color: #ffb27f !important;
    border-color: #ffb27f !important;
}
.btn-primary:focus {
    background-color: #ffb27f !important;
    border-color: #ffb27f !important;
    box-shadow: none !important;
}
.btn-primary:active {
    background-color: #ffb25f !important;
    border-color: #ffb25f !important;
    box-shadow: none !important;
}


header div {
    padding: 1rem;
}

footer {
    margin-top: auto;
}

.needs-validation {
    background-color: #1a1a20; /* Light background color */
    padding: 2rem; /* Padding around the form */
    border-radius: 0.5rem; /* Rounded corners */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Subtle shadow */
}

/* Form group styling */
.form-group {
    margin-bottom: 1.5rem; /* Space between form groups */
    color: #eeeef0;
}

/* Form control styling */
textarea#id_cite, input#id_link, input#id_author {
    width: 100%; /* Full width */
    padding: 0.75rem; /* Padding inside inputs */
    font-size: 1rem; /* Font size */
    border-radius: 0.25rem; /* Rounded corners */
    border: 1px solid #212125; /* Border color */
    background-color: #212125;
    color: #eeeef0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); /* Inner shadow */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; /* Transition for focus effect */
}

textarea#id_cite {
    height: 10rem; /* Height for textarea */
}

textarea#id_cite:focus, input#id_link:focus, input#id_author:focus {
    /* border-color: #80bdff; */
    outline: 0; /* Remove default outline */
    box-shadow: 0 0 0 0.2rem #ffbc6f
}

input#id_username {
    width: 100%; /* Full width */
    padding: 0.75rem; /* Padding inside inputs */
    font-size: 1rem; /* Font size */
    border-radius: 0.25rem; /* Rounded corners */
    border: 1px solid #ced4da; /* Border color */
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); /* Inner shadow */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; /* Transition for focus effect */
    background-color: #212125;
    color: #eeeef0;
    border: #121318;
}

input#id_username:focus {
    /* border-color: #80bdff; */
    outline: 0; /* Remove default outline */
    box-shadow: 0 0 0 0.2rem #ffbc6f
}

input#id_password {
    width: 100%; /* Full width */
    padding: 0.75rem; /* Padding inside inputs */
    font-size: 1rem; /* Font size */
    border-radius: 0.25rem; /* Rounded corners */
    border: 1px solid #ced4da; /* Border color */
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); /* Inner shadow */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; /* Transition for focus effect */
    background-color: #212125;
    color: #eeeef0;
    border: #121318;
}

input#id_password:focus {
    /* border-color: #80bdff;  */
    outline: 0; /* Remove default outline */
    box-shadow: 0 0 0 0.2rem #ffbc6f
}

thead {
    background-color: #1a1a20;
    color: #eeeef0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
}

tbody tr {
    background-color: #18181a;
    color: #eeeef0;
    transition: background-color 0.3s ease;
}

tbody tr:nth-child(odd) {
    background-color: #1a1a1c;
}

tbody tr.table-row-odd {
    background-color: #1a1a1c !important;
}

tbody tr.table-row-even {
    background-color: #18181a !important;
}

tbody tr:hover {
    background-color: #282828 !important;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    table-layout: fixed;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #2a2a2c;
    word-wrap: break-word;
}

th:first-child, td:first-child {
    border-left: none;
}

th:last-child, td:last-child {
    border-right: none;
}

.table-bordered th, .table-bordered td {
    border: none !important;
}

.table {
    border: none !important;
}

/* styles.css */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {
    background: #fff;
    padding: 0;
    /* padding: 2rem; */
    border-radius: 0.5rem;
    text-align: center;
    min-width: 500px;
    max-width: 80%;
    box-shadow: 0 0.5rem 1rem rgba(226, 154, 82, 0.84);
}

.title {
    background-color: #ffa16f;
    width: 100%;
    padding: 1rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

#popup-text {
    padding: 1rem;
    margin: 0;
}

.buttons {
    padding: 1rem;
}

.d-none {
    display: none;
}

/* .max_width_id {
    max-width: 60px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
} */

th:first-child, td:first-child {
    width: 60px;
    max-width: 60px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.popup-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a20;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, bottom 0.3s ease, visibility 0.3s;
    z-index: 1000;
}

.popup-notification.show {
    opacity: 1;
    bottom: 40px;
    visibility: visible;
}

.copy-cite {
    cursor: pointer;
}

.copy-cite:hover {
    text-decoration: underline;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - var(--header-height) - var(--footer-height)); /* Adjust the height to exclude header and footer */
}

#canvas {
    cursor: pointer;
    filter: drop-shadow(0 0 0.5rem rgba(226, 154, 82, 0.84));
}

.curved-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.no-wheel {
    font-size: 5rem;
    filter: drop-shadow(0 0 0.5rem rgba(226, 154, 82, 0.84));
}

.set-group select,
.set-group input {
    background-color: #212125;
    color: #eeeef0;
    border: 1px solid #212125;
    border-radius: 0.25rem;
}
.set-group select:hover,
.set-group input:hover {
    outline: 0;
    background-color: #343438;
}

.set-group select:focus,
.set-group input:focus {
    outline: 0;
    background-color: #212125;
    box-shadow: 0 0 0 0.2rem #ffbc6f;
    outline: 0;
    color: #eeeef0;
}

/* .censored-cite {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.censored-cite.visible {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}  */

.copy-cite {
    max-width: 10rem;
    text-wrap: wrap;
}

.smbtn {
    padding: 0.5rem;
}

.fixed-width {
    word-wrap: break-word;
    white-space: normal;
    overflow: hidden;
}

#search-addon {
    background-color: #212125;
    border: 1px solid #212125;
    color: #eeeef0;
}

#search-addon:hover {
    background-color: #343438;
    border: 1px solid #343438;
    color: #eeeef0;
}

#cite-search, #bot-cite-search {
    background-color: #212125;
    border: 1px solid #212125;
    color: #eeeef0;
}

/* Ensure header elements align properly */
header .input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure all buttons in header have same height but flexible width */
header .btn {
    height: auto;
    line-height: 1.5;
    padding: 0.375rem 0.75rem;
    white-space: nowrap;
}
#cite-search::placeholder, #bot-cite-search::placeholder {
    color: #aaa;
    opacity: 1; /* Firefox */
}
#cite-search:-ms-input-placeholder, #bot-cite-search:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: #aaa;
}
#cite-search::-ms-input-placeholder, #bot-cite-search::-ms-input-placeholder { /* Microsoft Edge */
    color: #aaa;
}

.dropdown-menu {
    background-color: #1a1a20;
}

.dropdown-item {
    color: #eeeef0;
}

.dropdown-item:hover {
    background-color: #282828;
    color: #eeeef0;
}

/* Hamburger Menu Styles */
.hamburger-menu-btn {
    background-color: #1a1a20;
    border: 1px solid #2a2a2c;
    color: #eeeef0;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
    margin-right: 1rem;
    z-index: 1001;
}

.hamburger-menu-btn:hover {
    background-color: #282828;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: #1a1a20;
    z-index: 1002;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #2a2a2c;
}

.close-sidebar-btn {
    background: none;
    border: none;
    color: #eeeef0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.close-sidebar-btn:hover {
    color: #ffa16f;
}

.sidebar-content {
    padding: 1rem 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #eeeef0;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.sidebar-item:hover {
    background-color: #282828;
    color: #ffa16f;
    border-left-color: #ffa16f;
}

.sidebar-item.active {
    background-color: #282828;
    color: #ffa16f;
    border-left-color: #ffa16f;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}