@font-face {
    font-family: 'BebasNeue';
    src: url('fonts/BebasNeue-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Orbitron';
    src: url('fonts/Orbitron-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html,
body {
    height: 100%;
    /* Remove or adjust min-width if causing issues */
    min-width: 400px;
    background-color: #10180e;
    font-size: clamp(14px, 1.5vw, 18px);
}

.main-wrapper {
    height: 100vh;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: clamp(40px, 8vw, 60px);
    height: clamp(20px, 4vw, 34px);
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: clamp(14px, 4vw, 26px);
    width: clamp(14px, 4vw, 26px);
    left: 4px; bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Buttons */
.btn,
.btn-danger,
.btn-secondary {
    color: white;
    font-family: 'BebasNeue';
    font-size: clamp(16px, 3vw, 28px);
}

.btn-primary {
    color: white;
    background-color: #4CAF50;
    font-family: 'BebasNeue';
    font-size: clamp(16px, 3vw, 28px);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:visited {
    color: white;
    background-color: #274b26 !important;
}

.btn-primary:focus,
.btn-primary:visited {
    color: white;
    background-color: #000000;
}

.dropdown button {
    color: white;
    background-color: #4CAF50;
    font-family: 'BebasNeue';
    font-size: clamp(16px, 3vw, 28px);
}

.dropdown-menu {
    color: white;
    background-color: #4CAF50;
    font-family: 'BebasNeue';
    font-size: clamp(16px, 2.5vw, 24px);
}

.dropdown-menu .dropdown-item:hover {
    color: white;
    background-color: #274b26;
}

.card {
    box-shadow: 0 2px 5px #a0d39c;
    background-color: #274b26;
}

.card-header,
.card-footer {
    color: white;
    background-color: #356c3a;
}

.card-footer {
    background-color: #356c3a;
}

/* Navbar */
.navbar-brand {
    font-family: 'Orbitron', 'BebasNeue';
    font-size: clamp(20px, 4vw, 40px);
}

/* Accordion */
.accordion {
    --bs-accordion-btn-bg: #4CAF50;
    --bs-accordion-active-bg: #274b26;
    --bs-accordion-active-color: white;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-bg: #000000;
}

.accordion-button {
    font-size: clamp(16px, 2.5vw, 32px);
    font-family: 'Orbitron', 'BebasNeue';
}

/* Form Switch */
.form-switch .form-check-input {
    position: relative;
    display: inline-block;
    width: clamp(40px, 8vw, 58px);
    height: clamp(30px, 4vw, 38px);
}

.form-check-label {
    font-family: 'BebasNeue';
    font-size: clamp(16px, 2.5vw, 28px);
    color: #fff;
}

.custom-orbitron {
    font-family: 'Orbitron';
    color: #fff;
}

.lead {
    font-family: 'BebasNeue';
    color: #fff;
}

.roblox-username-label {
    background-color: #28a745;
    font-family: 'BebasNeue';
    font-size: clamp(16px, 2.5vw, 28px);
    color: #fff;
}

.roblox-username-label-d {
    font-family: 'Orbitron';
    font-size: clamp(12px, 2.5vw, 28px);
    color: #fff;
    background-image: linear-gradient(to bottom, #274b26, #193317);
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.75);
}

.roblox-username-label-g {
    font-family: 'BebasNeue';
    font-size: clamp(10px, 2.5vw, 20px);
    color: #fff;
    background-image: linear-gradient(to bottom, #5b67d3, #193317);
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.75);
}

.roblox-username-label-f {
    font-family: 'BebasNeue';
    font-size: clamp(10px, 2.5vw, 20px);
    color: #fff;
    background-image: linear-gradient(to bottom, #232923, #193317);
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.75);
}

/* Table text */
.table-text {
    background-color: #28a745;
    font-family: 'BebasNeue';
    font-size: clamp(6px, 1.5vw, 16px);
    color: #fff;
}

.table-text-header {
    font-family: 'Orbitron', 'Arial', sans-serif;
    font-size: clamp(8px, 2vw, 18px);
}

.table-text-header2 {
    font-family: 'Orbitron', 'Arial', sans-serif;
    font-size: clamp(6px, 1.75vw, 16px);
}

th,
td {
    text-align: center;
    padding: 10px;
}

.badge-container {
    position: relative;
    display: inline-block;
    margin-right: 20px;
}

.badge-img {
    height: 60px;
    width: 60px;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    background-image: linear-gradient(to bottom, #274b26, #fff);
}

.badge-letter-mega {
    position: absolute;
    bottom: 1px;
    right: 1px;
    color: white;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    pointer-events: none;
    background-color: #800080;
    padding: 1px 2px;
    border-radius: 3px;
}

.badge-letter-neon {
    position: absolute;
    bottom: 1px;
    right: 1px;
    color: white;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    pointer-events: none;
    background-color: green;
    padding: 1px 2px;
    border-radius: 3px;
}

.badge-letter-age {
    position: absolute;
    bottom: 1px;
    left: 1px;
    color: white;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    font-size: 10px;
    pointer-events: none;
    background-color: black;
    padding: 1px 2px;
    border-radius: 3px;
}

.badge-letter-stack {
    position: absolute;
    top: 50%;
    right: 100px;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    pointer-events: none;
    background-color: orange;
    padding: 1px 2px;
    border-radius: 3px;
    width: 100px;
    text-align: center;
}

.pets-sm-txt {
    font-family: 'BebasNeue';
    color: white;
    font-size: 12px;
}

.vsm-txt {
    font-family: 'BebasNeue';
    color: lightblue;
    font-size: 14px;
}

.pet-info {
    display: flex;
    flex-direction: column;
}

.pet-info p {
    margin: 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar-brand,
    .btn,
    .dropdown-menu,
    .accordion-button {
        font-size: clamp(14px, 3vw, 22px);
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: clamp(12px, 4vw, 18px);
    }

    .btn,
    .dropdown-menu,
    .accordion-button {
        font-size: clamp(12px, 3.5vw, 20px);
    }

    .table-text,
    .badge-letter-mega,
    .badge-letter-neon,
    .badge-letter-age {
        font-size: clamp(8px, 2vw, 18px);
    }
}

.qr-code-container {
    text-align: center;
    margin-top: 20px;
}

#qrcode {
    display: inline-block;
    border: 2px solid #000;
    padding: 10px;
    background-color: white;
}

.qr-code-container p {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    color: #fff;
    margin-top: 10px;
}

/* DataTables Styling */
.dataTables_info {
    font-size: 16px;
    color: white !important;
    font-family: 'Orbitron', sans-serif;
}

.dataTables_length label {
    font-size: 16px;
    color: white !important;
    font-family: 'Orbitron', sans-serif;
}

.dataTables_length select {
    font-size: 16px;
    color: white !important;
    background-color: #333 !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    padding: 2px 5px !important;
}

.dataTables_filter label {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    color: white !important;
}

.dataTables_filter input {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    color: white !important;
    background-color: #333 !important;
    border: 1px solid #ccc !important;
}

.dataTables_paginate {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
}

.dataTables_paginate .paginate_button {
    font-weight: bold;
    background-color: #28a745 !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    padding: 5px 10px !important;
    margin: 0 5px !important;
    color: white !important;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.dataTables_paginate .paginate_button:hover {
    color: white !important;
}

.dataTables_paginate .paginate_button.current {
    background-color: #28a745 !important;
    color: white !important;
    border: 1px solid #ccc !important;
}

/* Table hover effects */
#pets-table tbody tr {
    transition: background-color 0.2s ease;
}

#pets-table tbody tr:hover {
    background-color: #444;
}

#accounts-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#accounts-table tbody tr:hover {
    background-color: #444;
}

/* DataTables spacing */
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1.0rem;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 1.0rem;
}

.dataTables_wrapper .dataTables_info {
    margin-top: 1.0rem;
}

.form-check-input {
    width: 22px;
    height: 22px;
}

.fc-margin {
    margin-left: 10px;
}

.chart-container {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.divider {
    height: 1px;
    margin: 0;
    background-color: #ccc;
    display: block;
    pointer-events: none;
    border: none;
    line-height: 1px;
    padding: 0;
}

.option-divider {
    color: #bbb;
    font-weight: bold;
    pointer-events: none;
}

.custom-select option {
    padding: 8px 12px;
}

.custom-select option.fw-bold {
    font-weight: bold;
}

.custom-select option.text-primary {
    color: #0d6efd;
}

.custom-select option.text-secondary {
    color: #6c757d;
}

.table-text td,
.table-text th {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure the commands table fits */
#commands-table {
    table-layout: fixed;
    width: 100%;
}

/* Use only one .table-responsive definition */
.table-responsive {
    overflow-x: hidden;
    max-width: 100%;
}
