.hidden {
    display: none;
}

.pane {
    /* Pane visibility is controlled by the .hidden class */
}

.center {
    text-align: center;
}

/* Page content */
div.content {
    margin-top: 56px;
    padding: 15px;
    min-height: calc(100vh - 56px);
}

/* ========================== Dark/Light Theme ====================== */

/* Dark theme styles */
.dark-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme h4,
.dark-theme h5,
.dark-theme h6 {
    color: #f0f0f0;
}

.dark-theme .bulma-table {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

.dark-theme .bulma-table thead th {
    background-color: #333333;
    color: #f0f0f0;
    border-color: #444444;
}

.dark-theme .bulma-table tbody tr {
    background-color: #2a2a2a !important;
    border-color: #444444;
}

.dark-theme .bulma-table tbody tr:hover {
    background-color: #333333 !important;
}

.dark-theme .bulma-table.bulma-is-striped tbody tr:nth-child(even) {
    background-color: #252525 !important;
}

.dark-theme .bulma-table.bulma-is-striped tbody tr:nth-child(even):hover {
    background-color: #303030 !important;
}

.dark-theme .bulma-table.bulma-is-striped tbody tr:nth-child(odd) {
    background-color: #2a2a2a !important;
}

.dark-theme .bulma-table.bulma-is-striped tbody tr:nth-child(odd):hover {
    background-color: #333333 !important;
}

.dark-theme .bulma-table td,
.dark-theme .bulma-table th {
    border-color: #444444;
    color: #e0e0e0;
}

.dark-theme .bulma-button {
    background-color: #363636;
    color: #e0e0e0;
    border-color: #4a4a4a;
}

.dark-theme .bulma-button:hover:not(:disabled) {
    background-color: #404040;
    border-color: #5a5a5a;
}

.dark-theme .bulma-button:disabled {
    background-color: #2a2a2a;
    color: #666666;
    border-color: #333333;
}

.dark-theme .bulma-label {
    color: #e0e0e0;
}

.dark-theme input[type="text"],
.dark-theme input[type="email"],
.dark-theme input[type="number"],
.dark-theme select,
.dark-theme .bulma-input,
.dark-theme .bulma-select select {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #444444;
}

.dark-theme input[type="text"]:focus,
.dark-theme input[type="email"]:focus,
.dark-theme input[type="number"]:focus,
.dark-theme select:focus,
.dark-theme .bulma-input:focus,
.dark-theme .bulma-select select:focus {
    border-color: #666666;
    background-color: #303030;
}

.dark-theme select option {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

.dark-theme select option:checked {
    background-color: #3273dc;
    color: #ffffff;
}

.dark-theme .bulma-box {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #444444;
}

/* Light theme styles */
.light-theme {
    background-color: #ffffff;
    color: #333333;
}

.light-theme h1,
.light-theme h2,
.light-theme h3,
.light-theme h4,
.light-theme h5,
.light-theme h6 {
    color: #1a1a1a;
}

.light-theme .bulma-table {
    background-color: #ffffff;
    color: #333333;
}

.light-theme .bulma-table thead th {
    background-color: #f5f5f5;
    color: #1a1a1a;
    border-color: #dbdbdb;
}

.light-theme .bulma-table tbody tr {
    background-color: #ffffff;
    border-color: #dbdbdb;
}

.light-theme .bulma-table tbody tr:hover {
    background-color: #f9f9f9;
}

.light-theme .bulma-table.bulma-is-striped tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.light-theme .bulma-table.bulma-is-striped tbody tr:nth-child(even):hover {
    background-color: #f5f5f5;
}

.light-theme .bulma-table td,
.light-theme .bulma-table th {
    border-color: #dbdbdb;
    color: #333333;
}

.light-theme .bulma-button {
    background-color: #ffffff;
    color: #333333;
    border-color: #dbdbdb;
}

.light-theme .bulma-button:hover:not(:disabled) {
    background-color: #f5f5f5;
    border-color: #b5b5b5;
}

.light-theme .bulma-button:disabled {
    background-color: #f5f5f5;
    color: #999999;
    border-color: #e0e0e0;
}

.light-theme .bulma-label {
    color: #333333;
}

.light-theme input[type="text"],
.light-theme input[type="email"],
.light-theme input[type="number"],
.light-theme select,
.light-theme .bulma-input,
.light-theme .bulma-select select {
    background-color: #ffffff;
    color: #333333;
    border-color: #dbdbdb;
}

.light-theme input[type="text"]:focus,
.light-theme input[type="email"]:focus,
.light-theme input[type="number"]:focus,
.light-theme select:focus,
.light-theme .bulma-input:focus,
.light-theme .bulma-select select:focus {
    border-color: #3273dc;
    background-color: #ffffff;
}

.light-theme select option {
    background-color: #ffffff;
    color: #333333;
}

.light-theme select option:checked {
    background-color: #3273dc;
    color: #ffffff;
}

.light-theme .bulma-box {
    background-color: #ffffff;
    color: #333333;
    border-color: #dbdbdb;
}

/* Navbar item active state styling */
.bulma-navbar.bulma-is-dark .bulma-navbar-start .bulma-navbar-item.bulma-is-active {
    background-color: #3273dc !important;
    color: #ffffff !important;
}

.bulma-navbar.bulma-is-light .bulma-navbar-start .bulma-navbar-item.bulma-is-active {
    background-color: #3273dc !important;
    color: #ffffff !important;
}

/* Navbar dropdown styling - target based on navbar theme, not content theme */
.bulma-navbar.bulma-is-dark .bulma-navbar-dropdown {
    background-color: #2a2a2a !important;
    border-color: #444444 !important;
}

.bulma-navbar.bulma-is-dark .bulma-navbar-dropdown .bulma-navbar-item {
    color: #e0e0e0 !important;
    background-color: transparent !important;
}

.bulma-navbar.bulma-is-dark .bulma-navbar-dropdown .bulma-navbar-item:hover {
    background-color: #333333 !important;
    color: #f0f0f0 !important;
}

.bulma-navbar.bulma-is-dark .bulma-navbar-dropdown .bulma-navbar-divider {
    background-color: #444444 !important;
}

.bulma-navbar.bulma-is-light .bulma-navbar-dropdown {
    background-color: #ffffff !important;
    border-color: #dbdbdb !important;
}

.bulma-navbar.bulma-is-light .bulma-navbar-dropdown .bulma-navbar-item {
    color: #333333 !important;
    background-color: transparent !important;
}

.bulma-navbar.bulma-is-light .bulma-navbar-dropdown .bulma-navbar-item:hover {
    background-color: #f5f5f5 !important;
    color: #1a1a1a !important;
}

.bulma-navbar.bulma-is-light .bulma-navbar-dropdown .bulma-navbar-divider {
    background-color: #dbdbdb !important;
}

/* Pagination controls styling */
.dark-theme .bulma-pagination-previous,
.dark-theme .bulma-pagination-next,
.dark-theme .bulma-pagination-link {
    background-color: #363636;
    color: #e0e0e0;
    border-color: #4a4a4a;
}

.dark-theme .bulma-pagination-previous:hover:not(:disabled),
.dark-theme .bulma-pagination-next:hover:not(:disabled),
.dark-theme .bulma-pagination-link:hover {
    background-color: #404040;
    border-color: #5a5a5a;
}

.dark-theme .bulma-pagination-link.bulma-is-current {
    background-color: #3273dc;
    border-color: #3273dc;
    color: #ffffff;
}

.dark-theme .bulma-pagination-ellipsis {
    color: #e0e0e0;
}

.light-theme .bulma-pagination-previous,
.light-theme .bulma-pagination-next,
.light-theme .bulma-pagination-link {
    background-color: #ffffff;
    color: #333333;
    border-color: #dbdbdb;
}

.light-theme .bulma-pagination-previous:hover:not(:disabled),
.light-theme .bulma-pagination-next:hover:not(:disabled),
.light-theme .bulma-pagination-link:hover {
    background-color: #f5f5f5;
    border-color: #b5b5b5;
}

.light-theme .bulma-pagination-link.bulma-is-current {
    background-color: #3273dc;
    border-color: #3273dc;
    color: #ffffff;
}

.light-theme .bulma-pagination-ellipsis {
    color: #333333;
}

/* ========================== google stuff ====================== */

.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: #131314;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #e3e3e3;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
    border-color: #8e918f;
}

.gsi-material-button .gsi-material-button-icon {
    height: 20px;
    margin-right: 12px;
    min-width: 20px;
    width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
    -webkit-align-items: center;
    align-items: center;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 1;
    flex-grow: 1;
    font-family: 'Roboto', arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
    -webkit-transition: opacity .218s;
    transition: opacity .218s;
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.gsi-material-button:disabled {
    cursor: default;
    background-color: #13131461;
    border-color: #8e918f1f;
}

.gsi-material-button:disabled .gsi-material-button-state {
    background-color: #e3e3e31f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
    opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
    opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
    background-color: white;
    opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
    -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
    background-color: white;
    opacity: 8%;
}

/* ==================== modal ==================== */

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content - Dark theme */
.dark-theme .modal-content {
    background-color: #2a2a2a;
    margin: auto;
    padding: 20px;
    border: 2px solid #444444;
    width: 50%;
    color: #e0e0e0;
}

/* Modal Content - Light theme */
.light-theme .modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 20px;
    border: 2px solid #dbdbdb;
    width: 50%;
    color: #333333;
}

.modal-visible {
    display: block;
}

.dark-theme .close {
    color: #e0e0e0;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.dark-theme .close:hover,
.dark-theme .close:focus {
    color: #999999;
    text-decoration: none;
    cursor: pointer;
}

.light-theme .close {
    color: #333333;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.light-theme .close:hover,
.light-theme .close:focus {
    color: #666666;
    text-decoration: none;
    cursor: pointer;
}

/* Pre element styling for code display */
.dark-theme pre {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 10px;
    overflow-wrap: break-word;
    word-break: break-all;
    border: 1px solid #444444;
}

.light-theme pre {
    background-color: #f5f5f5;
    color: #333333;
    padding: 10px;
    overflow-wrap: break-word;
    word-break: break-all;
    border: 1px solid #dbdbdb;
}

/* ==================== Bulma Modal Styling ==================== */

/* Modal card - Dark theme */
.dark-theme .bulma-modal-card-head,
.dark-theme .bulma-modal-card-foot {
    background-color: #2a2a2a;
    border-color: #444444;
}

.dark-theme .bulma-modal-card-title {
    color: #f0f0f0;
}

.dark-theme .bulma-modal-card-body {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* Modal card - Light theme */
.light-theme .bulma-modal-card-head,
.light-theme .bulma-modal-card-foot {
    background-color: #f5f5f5;
    border-color: #dbdbdb;
}

.light-theme .bulma-modal-card-title {
    color: #1a1a1a;
}

.light-theme .bulma-modal-card-body {
    background-color: #ffffff;
    color: #333333;
}

/* Tabs styling in modal - Dark theme */
.dark-theme .bulma-tabs a {
    color: #e0e0e0;
    border-bottom-color: #444444;
}

.dark-theme .bulma-tabs a:hover {
    color: #f0f0f0;
    border-bottom-color: #5a5a5a;
}

.dark-theme .bulma-tabs li.bulma-is-active a {
    color: #3273dc;
    border-bottom-color: #3273dc;
}

.dark-theme .bulma-tabs.bulma-is-boxed a {
    border-color: #444444;
    background-color: transparent;
}

.dark-theme .bulma-tabs.bulma-is-boxed a:hover {
    background-color: #2a2a2a;
}

.dark-theme .bulma-tabs.bulma-is-boxed li.bulma-is-active a {
    background-color: #1a1a1a;
    border-color: #444444;
    border-bottom-color: #1a1a1a !important;
}

/* Tabs styling in modal - Light theme */
.light-theme .bulma-tabs a {
    color: #333333;
    border-bottom-color: #dbdbdb;
}

.light-theme .bulma-tabs a:hover {
    color: #1a1a1a;
    border-bottom-color: #b5b5b5;
}

.light-theme .bulma-tabs li.bulma-is-active a {
    color: #3273dc;
    border-bottom-color: #3273dc;
}

.light-theme .bulma-tabs.bulma-is-boxed a {
    border-color: #dbdbdb;
    background-color: transparent;
}

.light-theme .bulma-tabs.bulma-is-boxed a:hover {
    background-color: #f5f5f5;
}

.light-theme .bulma-tabs.bulma-is-boxed li.bulma-is-active a {
    background-color: #ffffff;
    border-color: #dbdbdb;
    border-bottom-color: #ffffff !important;
}