html {
    font-size: 14px;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 0;
    color: white;
    background-image: url('/images/soldatbg.png');
    background-size: cover;
    background-repeat: repeat;
    background-position: center;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.container {
    color: white;
}

.navbar {
    background-color: transparent;
}

.navbar-brand {
    color: white;
}

    .navbar-brand:hover {
        color: #BBCC66;
    }

    .navbar-brand:active {
        color: #BBCC66;
    }

.nav-link {
    color: white;
}

    .nav-link:hover {
        color: #BBCC66;
    }

    .nav-link:focus {
        color: white;
    }




.navbar-toggler-icon {
    filter: invert(100%);
    border: none;
}

.navbar-toggler {
    border: none;
}

    .navbar-toggler:focus {
        border-color: transparent !important;
        box-shadow: 0 0 5px transparent;
    }

    .navbar-toggler:active {
        border-color: #BBCC66 !important;
        box-shadow: 0 0 5px #BBCC66;
    }

#a {
    color: white;
}

    #a:hover {
        color: #BBCC66;
        text-decoration-line: none;
    }

    #a:active {
        color: #BBCC66;
        text-decoration-line: none;
    }

/* Leaderboard css */
.leaderboardHeader {
    font-size: 3em;
    text-align: center;
}

.leaderboardDesc {
    font-size: 1em;
    text-align: center;
    margin: 0px;
}

/* Style for the entire table */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

    /* Table headers */
    .table thead {
        background-color: transparent;
        text-align: left;
    }

    .table th {
        background-color: transparent;
        padding: 10px;
        font-weight: bold;
        color: white;
        border-bottom: 1px solid #BBCC66;
    }

    /* Table rows */
    .table tbody tr {
        background-color: transparent;
        transition: background-color 0.3s ease;
    }

    /* Table data cells */
    .table td {
        background-color: transparent;
        padding: 10px;
        border-bottom: 1px solid #BBCC66;
        color: white
    }

    /* Links inside the table */
    .table a {
        color: white;
        text-decoration: none;
    }

        .table a:hover {
            text-decoration: none;
            color: #BBCC66;
        }

/* Server info shenanigans */

.card {
    background-color: transparent;
    border: none;
    color: white;
    margin-top: -70px;
}

.grid-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 40px;
}

.grid-colum-two {
    align-items: flex-end;
    margin-left: 100px;
}

.button-container {
    text-align: center;
}

    .button-container a {
        color: white !important;
        background-color: #252E1C;
        border-color: #BBCC66;
    }

        .button-container a:hover {
            color: #BBCC66 !important;
            border-color: #BBCC66;
        }

.image-container {
    text-align: right;
}

hr.divider {
    border: 0;
    border-top: 2px solid #BBCC66;
}

.description-panel {
    text-align: center;
    margin-top: 20px;
}

/* Server info Logs */

#messagesList::-webkit-scrollbar {
    width: 3px;
}

#messagesList::-webkit-scrollbar-track {
    background: transparent;
}

#messagesList::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}

#messagesList {
    scrollbar-width: thin;
    scrollbar-color: #B7C764 transparent;
}

/* Admin only message input */

#messageInput {
    border: 1px solid #BBCC66;
    background-color: transparent;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-right: 10px;
}

    #messageInput::placeholder {
        color: white;
    }

    #messageInput:focus {
        box-shadow: none;
    }

#sendButton {
    width: 100px;
    background-color: #252E1C;
    color: white;
    border: 1px solid #BBCC66;
    padding: 10px;
    border-radius: 5px;
}

    #sendButton:focus {
        box-shadow: none;
    }

    #sendButton:hover {
        color: #BBCC66;
        background-color: transparent;
    }


/*LEADERBOARD ALIGNMENT IMPROVE IT*/
#legend-table-leaderboard,
#outter-table-leaderboard,
#inner-table-leaderboard {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

#legend-table-leaderboard th {
    width: 33.33%;
    padding: 10px;
    border-bottom: 1px solid #BBCC66;
}

#outter-table-leaderboard {
    margin: 5px 0;
}

    #outter-table-leaderboard th,
    #outter-table-leaderboard td {
        width: 33.33%;
        padding: 8px 10px;
        border-bottom: 1px solid #BBCC66;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
    }

    #outter-table-leaderboard tr:hover td {
        color: #FFFF00;
    }

#inner-table-leaderboard {
    margin: 0;
}

    #inner-table-leaderboard td {
        width: 33.33%;
        padding: 6px 10px;
        border-bottom: 1px solid transparent;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
    }

@media (max-width: 575px) {
    #legend-table-leaderboard th,
    #outter-table-leaderboard td,
    #inner-table-leaderboard td {
        padding: 5px;
        font-size: 0.85rem;
    }
}



/*END LEADERBOARD ALIGNMENT IMPROVE IT*/

/*START player stats changes*/
#player-stat-title {
    text-align: center;
}

#player-stats-statistics {
    width: 100%;
    margin: 0 50px;
}

@media (max-width:1400px){

    #player-stats-statistics {
        flex-direction: row;
        align-content: center;
    }
}
@media (max-width:991px)
{
    #player-stats-statistics{
        margin: 0 10px;
    }
    .row{
        flex-wrap: nowrap;
        flex-direction: row;
    }
}

@media (max-width: 768px)
{
    #player-stats-statistics {
        text-align: center;
    }
}
/*END player stats changes*/

/* Remove the default arrow in <summary> */
details summary {
    list-style-type: none;
    cursor: pointer; /* Optional: Make the cursor appear clickable */
}

    /* Change color of <h2> inside <summary> on hover */
    details summary:hover h2 {
        color: #BBCC66; /* Change this to any color you prefer */
    }


/**** Player Page view ****/

/*START player stats on top page*/
.player-stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.col-md-6{
    display:flex;
    padding:10px;
    width:auto;
}

hr.divider {
    border-top: 1px solid #BBCC66;
    opacity: 1;
}

.player-stats-card {
    display: flex;
    flex-direction: column;
}

    .player-stats-card p {
        padding: 0 10px;
    }

.player-stats-container text-nowrap {
    justify-content: center;
    width: auto;
}

@media (max-width:1400px) {
    .row{
        flex-direction: column;
    }
    .col-md-6 {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width:575px) {
    .col-md-6 {
        padding: 0;
    }
    .player-stats-card{
        margin:0;
    }
    .player-stats-card {
        flex-direction: column;
        margin-bottom: 14px
    }
}
/*END player stats on top page*/

/* START scroll bar change*/

/* END scrollbar change*/

/* MapEditor Index Page */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0;
}

.square-button-wrapper {
    display: flex;
    justify-content: center;
}

.square-button {
    width: 150px;
    height: 150px;
    margin: 0 30px;
    border: none;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

    .square-button:hover {
        background-color: #0056b3;
    }

.or-text {
    font-size: 18px;
    font-weight: bold;
    margin: 0 10px;
    text-align: center;
}

/*  END of Map Editor */


/* scrollbar styles to help panel */
#help-panel::-webkit-scrollbar {
    width: 5px;
}

#help-panel::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 5px;
}

#help-panel::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 5px;
}

    #help-panel::-webkit-scrollbar-thumb:hover {
        background: #BBCC66;
    }

/* ===================== PAGE PANEL (shared panel background for all pages) ===================== */
.page-panel {
    background-color: rgba(25, 32, 18, 0.92);
    border: 1px solid rgba(187, 204, 102, 0.2);
    border-radius: 8px;
    padding: 24px;
    backdrop-filter: blur(4px);
    margin-bottom: 20px;
}

.page-panel h1, .page-panel h2, .page-panel h3 {
    color: #BBCC66;
}

.page-panel .divider {
    border-top: 1px solid rgba(187, 204, 102, 0.3);
}

/* ===================== HOME PAGE ===================== */

.home-container {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

@media (max-width: 1200px) {
    .home-container {
        grid-template-columns: 1fr;
    }
    .sidebar-left, .sidebar-right {
        order: 2;
    }
    .main-feed {
        order: 1;
    }
}

/* Sidebars */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background-color: rgba(25, 32, 18, 0.92);
    border: 1px solid rgba(187, 204, 102, 0.2);
    border-radius: 8px;
    padding: 16px;
    backdrop-filter: blur(4px);
}

    .stat-card h4 {
        margin: 0 0 12px 0;
        font-size: 14px;
        color: #BBCC66;
        border-bottom: 1px dotted #555;
        padding-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-item {
    text-align: center;
    padding: 8px 4px;
    background: rgba(0,0,0,0.15);
    border-radius: 6px;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #BBCC66;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}

.no-data {
    color: #666;
    font-size: 13px;
    text-align: center;
    font-style: italic;
    margin: 8px 0;
}

/* Mini tables */
.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

    .mini-table th {
        text-align: left;
        font-size: 10px;
        color: #888;
        text-transform: uppercase;
        padding: 4px 6px;
        border-bottom: 1px solid #555;
        background: transparent;
        font-weight: normal;
    }

    .mini-table td {
        padding: 5px 6px;
        border-bottom: 1px solid rgba(85, 85, 85, 0.3);
        color: white;
        background: transparent;
    }

    .mini-table a {
        color: white;
        text-decoration: none;
    }

        .mini-table a:hover {
            color: #BBCC66;
        }

    .mini-table tr:hover td {
        background: rgba(187, 204, 102, 0.05);
    }

.rank {
    font-weight: bold;
    font-size: 11px;
}

.rank-1, .mini-table td.rank-1 { color: gold; font-weight: bold; }
.rank-2, .mini-table td.rank-2 { color: silver; font-weight: bold; }
.rank-3, .mini-table td.rank-3 { color: #cd7f32; font-weight: bold; }

.time {
    font-family: monospace;
    color: #BBCC66;
    font-size: 11px;
}

/* Star icons */
.star-icon {
    color: gold;
    font-size: 10px;
}

.no-rating {
    color: #555;
}

/* Top rated list */
.top-rated-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rated-map-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(85, 85, 85, 0.2);
}

    .rated-map-item a {
        color: white;
        text-decoration: none;
    }

        .rated-map-item a:hover {
            color: #BBCC66;
        }

.rated-map-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rated-map-stars {
    white-space: nowrap;
}

.rated-map-avg {
    color: #BBCC66;
    font-weight: bold;
    min-width: 24px;
    text-align: right;
}

/* Hero section */
.hero-section {
    text-align: center;
    padding: 30px 20px;
    background: rgba(37, 46, 28, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(187, 204, 102, 0.2);
    margin-bottom: 20px;
}

    .hero-section h1 {
        margin: 0 0 8px 0;
        font-size: 2em;
        color: #BBCC66;
    }

    .hero-section p {
        margin: 0 0 16px 0;
        color: #ccc;
    }

.soldat-button {
    display: inline-block;
    background-color: #252E1C;
    color: white !important;
    border: 2px solid #BBCC66;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
}

    .soldat-button:hover {
        background-color: #BBCC66;
        color: #252E1C !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(187, 204, 102, 0.3);
    }

/* Main feed */
.main-feed {
    min-width: 0;
}

/* Post form */
.post-form-card {
    background: rgba(37, 46, 28, 0.85);
    border: 1px solid rgba(187, 204, 102, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

    .post-form-card h4 {
        margin: 0 0 12px 0;
        color: #BBCC66;
        font-size: 14px;
    }

.post-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid #555;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    margin-bottom: 8px;
    box-sizing: border-box;
}

    .post-input:focus {
        outline: none;
        border-color: #BBCC66;
    }

.post-textarea {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid #555;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    margin-bottom: 8px;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
}

    .post-textarea:focus {
        outline: none;
        border-color: #BBCC66;
    }

.post-form-extras {
    margin-bottom: 10px;
}

.post-form-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

    .post-form-row label {
        font-size: 12px;
        color: #aaa;
        min-width: 60px;
    }

.post-file-input {
    font-size: 12px;
    color: #aaa;
    max-width: 180px;
}

.post-or {
    font-size: 11px;
    color: #666;
}

.post-input-sm {
    flex: 1;
    padding: 6px 10px;
    background: rgba(0,0,0,0.2);
    border: 1px solid #555;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    min-width: 100px;
}

    .post-input-sm:focus {
        outline: none;
        border-color: #BBCC66;
    }

.post-submit-btn {
    background: #252E1C;
    border: 1px solid #BBCC66;
    color: #BBCC66;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

    .post-submit-btn:hover {
        background: #BBCC66;
        color: #252E1C;
    }

/* Posts feed */
.posts-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-card {
    background: rgba(37, 46, 28, 0.85);
    border: 1px solid rgba(85, 85, 85, 0.4);
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.2s;
}

    .post-card:hover {
        border-color: rgba(187, 204, 102, 0.3);
    }

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-avatar {
    width: 36px;
    height: 36px;
    background: rgba(187, 204, 102, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #BBCC66;
    font-size: 18px;
    flex-shrink: 0;
}

.post-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-author {
    color: #BBCC66;
    font-size: 14px;
}

.post-date {
    color: #888;
    font-size: 11px;
}

.post-delete-form {
    margin: 0;
}

.post-delete-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
    transition: color 0.2s;
}

    .post-delete-btn:hover {
        color: #dc3545;
    }

.post-title {
    margin: 0 0 8px 0;
    color: white;
    font-size: 16px;
}

.post-content {
    color: #ddd;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.post-image {
    margin: 10px 0;
    border-radius: 6px;
    overflow: hidden;
}

    .post-image img {
        max-width: 100%;
        max-height: 400px;
        object-fit: contain;
        border-radius: 6px;
        display: block;
    }

.post-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #64c8ff;
    font-size: 13px;
    text-decoration: none;
    padding: 6px 12px;
    background: rgba(100, 200, 255, 0.08);
    border-radius: 4px;
    transition: all 0.2s;
}

    .post-link:hover {
        background: rgba(100, 200, 255, 0.15);
        color: #BBCC66;
    }

.empty-feed {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

    .empty-feed p {
        margin-top: 12px;
        font-size: 14px;
    }

/* Rate a map widget */
.rate-map-widget {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rate-select {
    width: 100%;
    padding: 8px;
    background: rgba(0,0,0,0.5);
    border: 1px solid #555;
    border-radius: 4px;
    color: white;
    font-size: 12px;
}

    .rate-select:focus {
        outline: none;
        border-color: #BBCC66;
    }

.rate-stars {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.rate-star {
    font-size: 24px;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
}

    .rate-star.bi-star-fill {
        color: gold;
    }

    .rate-star.star-hover {
        transform: scale(1.2);
    }

.rate-submit-btn {
    padding: 8px 16px;
    background: #252E1C;
    border: 1px solid #BBCC66;
    color: #BBCC66;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

    .rate-submit-btn:hover:not(:disabled) {
        background: #BBCC66;
        color: #252E1C;
    }

    .rate-submit-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.rate-result {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    text-align: center;
}

.rate-success {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.rate-error {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* ===================== SERVER INFO MINI ===================== */
.server-info-mini {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.server-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(85, 85, 85, 0.2);
    font-size: 13px;
}

    .server-info-row:last-child {
        border-bottom: none;
    }

.si-label {
    color: #aaa;
    font-size: 12px;
}

.si-value {
    color: #BBCC66;
    font-weight: bold;
    font-size: 13px;
}

/* ===================== LOGS CARD ===================== */
.logs-card {
    margin-bottom: 16px;
}

.logs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: #B7C764 transparent;
}

.logs-list::-webkit-scrollbar {
    width: 3px;
}

.logs-list::-webkit-scrollbar-track {
    background: transparent;
}

.logs-list::-webkit-scrollbar-thumb {
    background: #B7C764;
    border-radius: 3px;
}

.log-entry {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 2px 4px;
    border-bottom: 1px solid rgba(85, 85, 85, 0.15);
}

    .log-entry:last-child {
        border-bottom: none;
    }

.log-msg {
    color: #ddd;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}

.log-time {
    color: #777;
    font-size: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===================== ADMIN CMD ===================== */
.admin-cmd-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.admin-cmd-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #555;
    border-radius: 6px;
    color: white;
    font-family: monospace;
    font-size: 13px;
}

    .admin-cmd-input:focus {
        outline: none;
        border-color: #BBCC66;
    }

    .admin-cmd-input::placeholder {
        color: #777;
    }

.admin-cmd-btn {
    background: #252E1C;
    border: 1px solid #BBCC66;
    color: #BBCC66;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

    .admin-cmd-btn:hover {
        background: #BBCC66;
        color: #252E1C;
    }

.admin-cmd-hint {
    font-size: 11px;
    color: #777;
    margin-top: 6px;
}

/* ===================== DOWNLOADS LIST ===================== */
.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(85, 85, 85, 0.3);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

    .download-item:hover {
        border-color: #BBCC66;
        color: #BBCC66;
        background: rgba(187, 204, 102, 0.05);
    }

    .download-item i {
        color: #BBCC66;
        font-size: 14px;
    }

/* ===================== NAVBAR CENTERED ===================== */
.navbar {
    border-bottom: 1px solid rgba(187, 204, 102, 0.15);
}

.navbar-trilayout {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.navbar-brand-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
}

.navbar-nav-left {
    margin-right: auto;
    gap: 4px;
}

.navbar-nav-right {
    margin-left: auto;
    gap: 4px;
}

.navbar-nav {
    gap: 4px;
}

.nav-link {
    padding: 6px 14px !important;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

    .nav-link:hover {
        background: rgba(187, 204, 102, 0.1);
    }

/* ===================== HERO NAV LINKS ===================== */
.hero-buttons {
    margin-bottom: 16px;
}

.hero-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.hero-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(37, 46, 28, 0.9);
    border: 1px solid rgba(187, 204, 102, 0.3);
    color: white !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

    .hero-nav-btn:hover {
        border-color: #BBCC66;
        color: #BBCC66 !important;
        background: rgba(187, 204, 102, 0.1);
        transform: translateY(-1px);
    }

    .hero-nav-btn i {
        font-size: 14px;
        color: #BBCC66;
    }

/* ===================== AUTH & ADMIN PANEL ===================== */
.auth-buttons, .auth-buttons-symmetric {
    display: flex;
    gap: 8px;
}

.auth-buttons-symmetric {
    justify-content: stretch;
}

.auth-buttons-symmetric .auth-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
}

.auth-login-btn {
    background: #252E1C;
    border-color: #BBCC66;
    color: #BBCC66;
}

    .auth-login-btn:hover {
        background: #BBCC66;
        color: #252E1C;
    }

.auth-register-btn {
    background: #252E1C;
    border-color: #BBCC66;
    color: #BBCC66;
    cursor: pointer;
    opacity: 1;
    text-decoration: none;
}

.auth-register-btn:hover {
    background: #BBCC66;
    color: #252E1C;
}

.auth-logout-btn {
    background: #252E1C;
    border-color: #dc3545;
    color: #dc3545;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

    .auth-logout-btn:hover {
        background: #dc3545;
        color: white;
    }

/* ===================== NAVBAR AUTH ===================== */
.navbar-auth {
    gap: 8px;
}

.nav-user-name {
    color: #BBCC66;
    font-size: 13px;
    font-weight: bold;
}

/* ===================== ACCOUNT NAV LINKS (Home sidebar) ===================== */
.account-nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(85, 85, 85, 0.3);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.account-nav-item:hover {
    border-color: #BBCC66;
    color: #BBCC66;
    background: rgba(187, 204, 102, 0.05);
}

.account-nav-item i {
    color: #BBCC66;
    font-size: 14px;
}

.nav-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.2s;
    background: none;
}

.nav-login-btn {
    border-color: #BBCC66;
    color: #BBCC66;
    background: rgba(37, 46, 28, 0.8);
}

    .nav-login-btn:hover {
        background: #BBCC66;
        color: #252E1C;
    }

.nav-logout-btn {
    border-color: #dc3545;
    color: #dc3545;
}

    .nav-logout-btn:hover {
        background: #dc3545;
        color: white;
    }

/* ===================== LOGIN MODAL ===================== */
.login-modal-content {
    background: linear-gradient(145deg, #1a2312, #252E1C, #1a2312);
    border: 1px solid rgba(187, 204, 102, 0.3);
    border-radius: 12px;
    color: white;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(187, 204, 102, 0.08);
}

.login-modal-header {
    border-bottom: 1px solid rgba(187, 204, 102, 0.15);
    padding: 24px 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: rgba(0, 0, 0, 0.15);
}

    .login-modal-header .btn-close {
        position: absolute;
        top: 12px;
        right: 12px;
    }

.login-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #BBCC66, #8a9b3a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1a2312;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(187, 204, 102, 0.25);
}

.login-modal-header .modal-title {
    color: #BBCC66;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.login-modal-subtitle {
    color: #aaa;
    font-size: 13px;
    margin: 4px 0 0 0;
}

.login-modal-body {
    padding: 24px;
}

.login-field {
    margin-bottom: 16px;
}

    .login-field label {
        display: block;
        color: #BBCC66;
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.login-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(187, 204, 102, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .login-input:focus {
        outline: none;
        border-color: #BBCC66;
        box-shadow: 0 0 0 3px rgba(187, 204, 102, 0.1);
    }

    .login-input::placeholder {
        color: #666;
    }

.login-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #BBCC66, #9aaa44);
    border: none;
    border-radius: 6px;
    color: #1a2312;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

    .login-submit-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(187, 204, 102, 0.3);
    }

    .login-submit-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.login-error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b7a;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 16px;
}

.login-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(85, 85, 85, 0.3);
}

    .login-footer p {
        color: #666;
        font-size: 12px;
        margin: 0;
    }

/* ===================== MEDAL NUMBERS ===================== */
.medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}

.medal-gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #3a2800;
    box-shadow: 0 1px 3px rgba(255, 215, 0, 0.4);
}

.medal-silver {
    background: linear-gradient(135deg, #E0E0E0, #A8A8A8);
    color: #333;
    box-shadow: 0 1px 3px rgba(192, 192, 192, 0.4);
}

.medal-bronze {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    color: #fff;
    box-shadow: 0 1px 3px rgba(205, 127, 50, 0.4);
}

.admin-panel-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ===================== MAP DETAILS PAGE ===================== */
.map-details-page {
    max-width: 800px;
    margin: 0 auto;
}

.map-details-header {
    text-align: center;
}

.map-details-header h1 {
    color: #BBCC66;
    margin-bottom: 0;
}

.map-details-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 16px 0;
}

.map-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.map-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 4px;
}

.map-stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.map-stat-value a {
    color: #BBCC66;
    text-decoration: none;
}

.map-stat-value a:hover {
    text-decoration: underline;
}

.map-rating-stars .star-icon {
    color: gold;
    font-size: 14px;
}

.map-rating-text {
    font-size: 12px;
    color: #aaa;
    margin-left: 4px;
}

.no-rating {
    color: #666;
    font-style: italic;
    font-size: 13px;
}

.map-rate-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 0 4px;
}

.map-rate-label {
    font-size: 13px;
    color: #aaa;
}

.rate-submit-sm {
    padding: 4px 12px;
    font-size: 12px;
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(85, 85, 85, 0.3);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

    .admin-link:hover {
        border-color: #BBCC66;
        color: #BBCC66;
        background: rgba(187, 204, 102, 0.05);
    }

    .admin-link i {
        color: #BBCC66;
        font-size: 14px;
    }

/* ===================== SESSIONS PAGE ===================== */
.sessions-header {
    text-align: center;
}

.sessions-header h1 {
    color: #BBCC66;
    margin-bottom: 4px;
}

.sessions-subtitle {
    color: #aaa;
    font-size: 14px;
    margin: 0;
}

.sessions-content {
    max-width: 800px;
    margin: 0 auto;
}

.session-section {
    margin-bottom: 24px;
}

.session-section h3 {
    color: #BBCC66;
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.session-section p {
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
}

.session-section a {
    color: #64c8ff;
    text-decoration: none;
}

.session-section a:hover {
    color: #BBCC66;
}

.session-section code {
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 3px;
    color: #BBCC66;
    font-size: 13px;
}

.session-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.session-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    border-left: 3px solid #BBCC66;
}

.session-step p {
    margin: 4px 0 0;
    font-size: 13px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #BBCC66, #8a9b3a);
    color: #1a2312;
    font-weight: bold;
    font-size: 14px;
    margin-top: 2px;
}

.session-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.session-settings {
    margin-top: 8px;
}



/*********** Change autocomplete styles in WebKit ************

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    border: 1px solid green !important;
    -webkit-text-fill-color: green !important;
    -webkit-box-shadow: 0 0 0px 1000px #000 inset !important;
    transition: background-color 5000s ease-in-out 0s;
    background-color: #000 !important;
}


********** Additional specific targeting ************

#messageInput:-webkit-autofill {
    background-color: #000 !important;
    -webkit-box-shadow: 0 0 0px 1000px #000 inset !important;
    -webkit-text-fill-color: green !important;
}

********** Force background color ************

input.form-control {
    background-color: transparent !important;
    color: green !important;
}

*************************************************************/

/* Server config checkbox labels */
.check-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    padding: 3px 0;
}
.check-label input[type="checkbox"] {
    accent-color: #BBCC66;
    width: 16px;
    height: 16px;
}

/* ===================== USER MAPS PAGE ===================== */
.user-maps-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-map-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(85, 85, 85, 0.3);
    border-radius: 6px;
    transition: border-color 0.2s;
}

.user-map-card:hover {
    border-color: rgba(187, 204, 102, 0.4);
}

.user-map-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-map-name {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.user-map-name i {
    color: #BBCC66;
}

.user-map-date {
    font-size: 11px;
    color: #888;
}

.user-map-actions {
    display: flex;
    gap: 6px;
}

.map-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    border: 1px solid;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    background: none;
    text-decoration: none;
}

.map-load-btn {
    border-color: #BBCC66;
    color: #BBCC66;
}

.map-load-btn:hover {
    background: #BBCC66;
    color: #252E1C;
}

.map-delete-btn {
    border-color: #dc3545;
    color: #dc3545;
}

.map-delete-btn:hover {
    background: #dc3545;
    color: white;
}

/* ===================== USER SESSIONS PAGE ===================== */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.session-card {
    padding: 16px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(85, 85, 85, 0.3);
    border-radius: 8px;
    transition: border-color 0.2s;
}

.session-card:hover {
    border-color: rgba(187, 204, 102, 0.3);
}

.session-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.session-name {
    font-size: 15px;
    font-weight: bold;
    color: white;
}

.session-name i {
    color: #BBCC66;
}

.session-status {
    font-size: 12px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.status-running {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.status-stopped {
    background: rgba(108, 117, 125, 0.2);
    color: #888;
    border: 1px solid rgba(108, 117, 125, 0.4);
}

.status-other {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.session-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 10px;
}

.session-detail {
    font-size: 13px;
}

.sd-label {
    color: #888;
}

.sd-value {
    color: #BBCC66;
    font-weight: bold;
}

.session-config-details {
    margin-bottom: 10px;
}

.session-config-details summary {
    font-size: 13px;
    color: #aaa;
    cursor: pointer;
    padding: 4px 0;
}

.session-config-details summary:hover {
    color: #BBCC66;
}

.session-config-pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(85, 85, 85, 0.2);
    border-radius: 4px;
    padding: 10px;
    font-size: 11px;
    color: #ccc;
    overflow-x: auto;
    margin-top: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.session-card-actions {
    display: flex;
    gap: 8px;
}

.session-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid;
    text-decoration: none;
    transition: all 0.2s;
    background: none;
}

.session-stop-btn {
    border-color: #dc3545;
    color: #dc3545;
}

.session-stop-btn:hover {
    background: #dc3545;
    color: white;
}

.session-redeploy-btn {
    border-color: #BBCC66;
    color: #BBCC66;
}

.session-redeploy-btn:hover {
    background: #BBCC66;
    color: #252E1C;
}

/* ===================== PROFILE PAGE ===================== */
.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 576px) {
    .profile-info-grid {
        grid-template-columns: 1fr;
    }
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(85, 85, 85, 0.2);
    border-radius: 6px;
}

.profile-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-label i {
    color: #BBCC66;
}

.profile-value {
    font-size: 16px;
    font-weight: bold;
    color: white;
}

/* ===================== SHARED: ALERTS & EMPTY STATES ===================== */
.alert-success-custom {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-error-custom {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b7a;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state p {
    margin-top: 12px;
    font-size: 14px;
}
