.transparent {
    background: none;
}
.vid {
    object-fit: inherit;
    position: fixed;
    right: 0;
    z-index: -1;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    opacity: 0.4;
}
.form-control {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}
.form-control::placeholder {
    color: #cccccc;
}
.form-control:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    outline: 0;
    box-shadow: 0 0 15px 0 rgb(37, 193, 255);
}
#list_container {
    padding-top: 50px;
}
.trainer-card {
    /* height: 390px; */
    margin-bottom: 30px;
    padding: 0 !important;
}
.trainer-card-content {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    background: #212b4e;
    border-radius: 12px;
    box-sizing: border-box;
    padding: 30px;
    margin: 0 15px;
    cursor: pointer;
    transition: 0.3s;
}
.trainer-card-content .game-name {
    color: #ffffffc7;
    padding-top: 20px;
    font-size: 16px;
    margin: 0;
}
.trainer-card-content .game-info {
    overflow: hidden;
}
.trainer-card-content .cusa {
    color: #99a3c6;
    font-size: 13px;
    margin: 0;
    margin-top: 10px;
}
.trainer-card-content .version {
    color: #377dff;
    font-size: 13px;
    margin: 0;
    margin-top: 10px;
}
.trainer-card-content .version span {
    height: 30px;
    padding: 0 10px;
    display: inline-grid;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px solid;
}
.trainer-card-content:hover {
    box-shadow: 0 0 15px 0 #212b4e;

    transform: scale(1.08);
}
.trainer-card .ps_thumb {
    display: block;
    margin: 0 auto;
    /* width: 210px; */
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0px 8px 40px 0px rgba(55, 125, 255, 0.2);
}

.bg-darker {
    /* background-color: #24272b !important; */
}
.modal-body {
    /* background-color: #24272b; */
    /* padding-bottom: 2rem; */
}
.modal-footer {
    background-color: #212529;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.modal-header {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.close {
    color: #ffffffc7;
}
.modal-content {
    color: #ffffffc7;
}
/* .switch input {
    display: none;
}

.switch {
    display: inline-block;
    width: 60px;
    height: 30px;
    margin: 8px;
    transform: translateY(50%);
    position: relative;
}

.slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 30px;
    box-shadow: 0 0 0 2px #777, 0 0 4px #777;
    cursor: pointer;
    border: 4px solid transparent;
    overflow: hidden;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background: #777;
    border-radius: 30px;
    transform: translateX(-30px);
    transition: 0.4s;
}
input:checked + .slider:before {
    transform: translateX(30px);
    background: rgba(44, 128, 255, 0.925);
}

input:checked + .slider {
    box-shadow: 0 0 0 2px rgba(44, 128, 255, 0.925),
        0 0 2px rgba(44, 128, 255, 0.925);
} */
.btn {
    white-space: pre;
}
#credits-dialog-size {
    max-width: 670px;
}
.h5,
h5 {
    font-size: 1.1rem;
}

.cover_parent {
    display: inline-block;
    text-align: center;
    margin-bottom: 10px;
}
.cover_parent img {
    border-radius: 15px;
}
.GInfo.bg-black {
    display: inline-block;
    text-align: center;
    margin-bottom: 30px;
}
.ps_modal_game_info {
    display: grid;
}
.ps_modal_game_info #game {
    font-size: 2em;
    margin: 0;
}
.ps_modal_game_info #cusa {
    font-size: 1em;
    display: inline-block;

    display: inline-grid;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px solid;
    height: 30px;
    padding: 0 10px;
}
.ps_modal_game_info #version {
    height: 30px;
    padding: 0 10px;
    display: inline-grid;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px solid;
    margin-left: 10px;
    font-size: 1em;
}
.ps_modal_game_info #credits {
    display: block;
    margin: 0;
    font-size: 14px;
    padding: 0 10px;
    height: 30px;
    display: inline-grid;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px solid;
    margin-left: 10px;
}

.modal .modal-footer {
    background: inherit;
}

.s5ths,
.m5ths,
.l5ths,
.xl5ths {
    margin-left: auto;
    left: auto;
    right: auto;
}

.row .col.s5ths {
    width: 20%;
    height: 350px;
}

@media only screen and (min-width: 601px) {
    .row .col.m5ths {
        width: 20%;
        height: 350px;
    }
}

@media only screen and (min-width: 993px) {
    .row .col.l5ths {
        width: 20%;
        height: 350px;
    }
}

@media only screen and (min-width: 1201px) {
    .row .col.xl5ths {
        width: 20%;
        height: 350px;
    }
}

.input_box{
    width: 100% !important;
    height: 54px !important;
    font-size: 16px !important;
    padding-left: 30px !important;
    background: #1e2745 !important;
    border: none !important;
    outline: none !important;
    color: #ffffffc7 !important;
    font-family: "Poppins" !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    margin-right: 10px !important;
}

.animate__animated.animate__zoomIn {
  --animate-duration: .2s;
}

#myBtn {
  display: block;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #1e2745;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
}

#myBtn:hover {
  background-color: #262e4a;
}

#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #377dff;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

#backToTopBtn:hover {
  background-color: #2d66d9;
  transform: translateY(-3px);
}

#settingsBtn {
  display: block;
  position: fixed;
  bottom: 160px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #1e2745;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

#settingsBtn:hover {
  background-color: #262e4a;
  transform: rotate(90deg);
}
/* Trainer Table Styling */
.trainer-table thead {
    background: #1a2347;
}

.trainer-table thead th {
    color: #ffffffc7 !important;
    font-weight: 600;
    border-bottom: 2px solid #377dff;
}

.trainer-table tbody tr {
    background: #1e2745 !important;
    color: #ffffffc7 !important;
}

.trainer-table tbody tr:nth-child(even) {
    background: #253054 !important;
}

.trainer-table tbody tr:hover {
    background: #2a3963 !important;
}

.trainer-table tbody td {
    color: #ffffffc7 !important;
    padding: 12px 15px;
    border-bottom: 1px solid #2a3963;
}

/* Modal improvements */
.modal-footer .btn-flat {
    background: #2a3963 !important;
    color: #ffffffc7 !important;
}

.modal-footer .btn-flat:hover {
    background: #344270 !important;
}

/* Search bar styling */
.trainer-search {
    background: #1e2745 !important;
    color: #ffffffc7 !important;
    border: 1px solid #377dff !important;
    margin-bottom: 20px;
    padding: 10px 15px;
}

.trainer-search:focus {
    border-color: #377dff !important;
    box-shadow: 0 0 10px rgba(55, 125, 255, 0.3) !important;
}

/* Edit Trainer Modal Styling */
#edit-trainer-modal input[type="text"] {
    color: #ffffffc7 !important;
    background: #1a2347 !important;
    border-bottom: 1px solid #377dff !important;
}

#edit-trainer-modal input[type="text"]:focus {
    border-bottom: 1px solid #377dff !important;
    box-shadow: 0 1px 0 0 #377dff !important;
}

#edit-trainer-modal label {
    color: #99a3c6 !important;
}

#edit-trainer-modal label.active {
    color: #377dff !important;
}

#edit-trainer-modal .modal-content {
    background: #1e2745 !important;
}

#edit-trainer-modal textarea {
    color: #ffffffc7 !important;
}

/* Upload Button Fix */
#upload-trainer-form button[type="submit"] {
    color: #ffffff !important;
}

#upload-trainer-form button[type="submit"] i {
    color: #ffffff !important;
}

/* Filter Dropdown Styling */
#platform-filter,
#credits-filter,
#firmware-filter {
    background: #1e2745 !important;
    color: #ffffffc7 !important;
    border: 1px solid #377dff !important;
    padding: 10px 15px;
    border-radius: 4px;
}

#platform-filter:focus,
#credits-filter:focus,
#firmware-filter:focus {
    border-color: #377dff !important;
    box-shadow: 0 0 10px rgba(55, 125, 255, 0.3) !important;
    outline: none !important;
}

#platform-filter option,
#credits-filter option,
#firmware-filter option {
    background: #1e2745 !important;
    color: #ffffffc7 !important;
}

/* Platform Badges */
.platform-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ps2-badge {
    background: linear-gradient(135deg, #8b3a8b, #c850c8);
    color: white;
}

.ps4-badge {
    background-color: #0070d1;
    color: white;
}

.ps5-badge {
    background-color: white;
    color: #000;
}



/* Grid Layout for Trainer Cards */
#list_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 50px 4%;
}

/* Single column on smaller screens */
@media only screen and (max-width: 992px) {
    #list_container {
        grid-template-columns: 1fr !important;
    }
}

/* Force cards to maintain square aspect ratio */
.trainer-card {
    aspect-ratio: 1 / 1;
}

.trainer-card-content {
    height: 100% !important;
}

/* Toast notifications positioning - bottom left */
#toast-container {
    top: auto !important;
    right: auto !important;
    bottom: 5% !important;
    left: 2% !important;
    min-width: 300px;
}

@media only screen and (max-width: 768px) {
    #toast-container {
        left: 5% !important;
        min-width: 90%;
    }
    
    /* Hide Credits, Instructions, Tips buttons on mobile - they're in hamburger menu */
    .ps_search_btn_group {
        display: none !important;
    }
    
    /* Hide desktop Admin Panel link on mobile - it's in hamburger menu */
    #acp-link {
        display: none !important;
    }
    
    /* Hide logout button from header on mobile - it's in hamburger menu */
    #user-buttons .logout {
        display: none !important;
    }
    
    /* Hide My Benefits button from header on mobile - it's in hamburger menu */
    #my-benefits-container {
        display: none !important;
    }
    
    /* Hide username display on mobile to save space */
    #user-buttons > span {
        display: none !important;
    }
    
    /* Force 1 column on mobile - override the grid */
    #list_container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 30px 4% !important;
    }
    
    .trainer-card {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Override Materialize blue defaults for mobile menu items */
.sidenav li.mobile_li {
    background-color: transparent !important;
}

.sidenav li.mobile_li.btn {
    background-color: transparent !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: left !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.sidenav li.mobile_li.btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}
