/****** GLOBAL STYLES ******/
body {
    background: #030a16 !important; /* deep navy */
    background-image: url("../images/main-background.jpg") !important;
    background-repeat: repeat-y !important;
    background-position: top center !important;
    color: #d7e6f0;
    font-family: 'Nunito', sans-serif;
}

/****** LINKS ******/
a, a:focus, a:active, a:hover {
    color: #56b6c2; /* calm blue accent */
    text-decoration: none;
}

/****** HEADER ******/
.header {
    background: #07121e;
    border-bottom: 1px solid #0e243a;
    color: #d7e6f0;
}
.header .logo-container img {
    filter: brightness(0.9);
}

/****** SIDEBAR ******/
.side-bar {
    width: 220px;
    float: left;
    background: #060e18;
    border-right: 1px solid #0f1e31;
}
.side-bar .list-group-item {
    background: #0a182b !important;
    color: #d7e6f0;
    border-bottom: 1px solid #0f243d;
}
.side-bar .list-group-item:hover {
    background: #0f243d !important;
    color: #fff;
}

/****** GAME CONTAINER ******/
.game-container {
    width: calc(100% - 230px);
    float: right;
}

/****** PANELS ******/
.panel {
    background-color: transparent;
    border: none;
}
.panel-heading {
    background: #0d2038 !important;
    color: #cce4ff !important;
    font-weight: bold;
    border-bottom: 1px solid #102a47;
    text-shadow: none;
}
.panel-body {
    background: #0a1624;
    border: 1px solid #14263e;
    border-radius: 6px;
}

/****** CRIME HOLDER (Fishing Action Cards) ******/
.crime-holder {
    background: #0b1525;
    border: 1px solid #1b324f;
    margin-bottom: 10px;
}
.crime-holder p {
    margin: 0;
    padding: 10px;
    text-align: right;
}
.crime-holder .action {
    float: left;
}
.crime-holder .commit {
    background-color: #113454;
    border: 1px solid #1c476b;
    color: #cce4ff;
    border-radius: 3px;
    padding: 5px 7px;
    transition: 0.2s;
}
.crime-holder .commit:hover {
    background-color: #17608b;
    color: #fff;
}
.crime-holder .cooldown {
    color: #748ca5;
}

/****** BUTTONS ******/
.btn {
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    font-weight: 600;
}
.btn-default {
    background: #113454;
    color: #d7e6f0;
}
.btn-default:hover {
    background: #17608b;
    color: #fff;
}
.btn-success {
    background: #0b5b38;
    color: #e0ffe5;
}
.btn-success:hover {
    background: #0f8c56;
}
.btn-danger {
    background: #661b1b;
    color: #ffdcdc;
}
.btn-danger:hover {
    background: #992525;
}

/****** TABLES ******/
.table-striped>tbody>tr:nth-child(odd)>td {
    background: #0a1624;
}
.table-striped>tbody>tr:nth-child(even)>td {
    background: #0d2038;
}
.table-bordered th, .table-bordered td {
    border-color: #132742 !important;
}

/****** ALERTS / MESSAGES ******/
.alert {
    background: #07121e;
    border: 1px solid #0f243d;
    color: #d7e6f0;
}

/****** FOOTER ******/
footer {
    background: #07121e;
    color: #8ca7c0;
    text-align: center;
    padding: 10px;
    border-top: 1px solid #0f243d;
    font-size: 12px;
}

/****** MOBILE FIXES ******/
@media (max-width: 767px) {
    .side-bar { display: none; }
    .game-container { width: 100%; padding: 0; }
}

/****** PATCH: FISHING THEME FIXES 2025-10-13 ******/

/* --- GAME NEWS + WELLS --- */
.well, .alert-info, .alert, .panel-body {
    background: #0a1624 !important;
    color: #d7e6f0 !important;
    border: 1px solid #14263e !important;
    box-shadow: none !important;
}
.well h3, .panel-heading, .panel-body h3, .panel-body p {
    color: #d7e6f0 !important;
}
.alert-info {
    background: #0e243a !important;
}

/* --- LOGO --- */
.logo-container img {
    max-height: 60px !important;
    width: auto;
    margin-top: 5px;
    filter: brightness(0.9);
}

/* --- MENU / SIDEBAR VISIBILITY --- */
.side-bar {
    background: #060e18 !important;
    border-right: 1px solid #0f243d;
    z-index: 100; /* keeps it on top */
}
.side-bar .list-group .list-group-item {
    background: #0d2038 !important;
    color: #cce4ff !important;
    border-bottom: 1px solid #102a47 !important;
}
.side-bar .list-group .list-group-item:hover {
    background: #17608b !important;
    color: #fff !important;
}

/* --- NAV HEADER --- */
.header {
    background: linear-gradient(90deg, #061120, #0b203a);
    border-bottom: 2px solid #113454;
}
.header a, .header .col-md-3, .header .col-md-2 {
    color: #d7e6f0 !important;
}
.header a:hover {
    color: #00aaff !important;
    text-decoration: underline;
}

/* --- RESPONSIVE FIX --- */
@media (max-width: 767px) {
    .logo-container img { max-height: 45px !important; }
    .side-bar { display: block !important; position: relative !important; }
}

/****** PATCH: MOBILE MENU TOGGLE RESTORE ******/

/* Hide sidebar by default on small screens */
@media (max-width: 767px) {
    .side-bar {
        display: none !important;
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 999;
        background: #061120;
        border-right: none;
        border-bottom: 2px solid #113454;
        box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    }

    /* Show when .show-sidebar class is added */
    .show-sidebar .side-bar {
        display: block !important;
    }

    /* Restore the hamburger (three lines) */
    .navbar-toggle {
        display: inline-block !important;
        background-color: #113454;
        border: 1px solid #17608b;
        margin: 10px;
        float: left;
    }
    .navbar-toggle .icon-bar {
        background-color: #ffffff;
    }

    /* Adjust header spacing */
    .header {
        position: relative;
        z-index: 1000;
        padding: 5px;
    }
}

/* Ensure the hamburger stays hidden on desktop */
@media (min-width: 768px) {
    .navbar-toggle {
        display: none !important;
    }
}