/*
   polish.css — visual refinement layer, loaded after all other stylesheets.

   Purpose: keep the existing look and feel (dark navy banner, olive #CBCD44
   accent, Open Sans, outlined uppercase buttons, dense data tables) but make
   everything feel finished: consistent corner rounding, focus states, hover
   feedback, softer shadows and tidier scrollbars.

   This file contains presentation only. It must never change layout
   mechanics, page structure or behavior.
*/

/* ---------- base ---------- */

body {
    line-height: 1.35;
    -webkit-font-smoothing: antialiased;
}

/* Plain backdrop: drop the light-grey doodle background image on content
   sections (covers both the desktop and the max-500px variant). */
.bg-primary {
    background-image: none;
}

a {
    transition: color 0.2s;
}

/* ---------- fixed top banner ---------- */

.top-panel {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* The :not(.current-menu) exclusion keeps the hover underline from
   overriding the bottom edge of the yellow current-page frame. */
.top-panel .right-panel ul.menu li a.page-scroll:not(.current-menu) {
    border-bottom: 2px solid transparent;
    transition: color 0.25s, border-color 0.25s;
}

.top-panel .right-panel ul.menu li a.page-scroll:not(.current-menu):hover,
.top-panel .right-panel ul.menu li a.page-scroll:not(.current-menu):focus {
    color: #CBCD44;
    border-bottom-color: #CBCD44;
}

/* Admin drop-down: solid dark panel so the olive items no longer float
   transparently over the page content underneath. */
.custom-menu {
    background: rgba(25, 36, 43, 0.97) !important;
    border-radius: 4px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.dropdown-menu > li > a.menucls {
    border-radius: 3px;
    transition: background-color 0.15s;
}

.dropdown-menu > li > a.menucls:hover {
    background: #b6b838;
}

/* ---------- headings ---------- */

h1 {
    letter-spacing: 0.5px;
}

hr.green {
    border-radius: 2px;
}

/* ---------- buttons ---------- */

.btn,
.btn-outlined {
    border-radius: 3px;
}

.btn-outlined.btn-theme:hover,
.btn-outlined.btn-theme:focus {
    box-shadow: 0 2px 6px rgba(34, 49, 61, 0.25);
}

.btn:focus,
.btn:active:focus {
    outline: 2px solid rgba(203, 205, 68, 0.7);
    outline-offset: 1px;
}

/* ---------- form inputs ---------- */

.input-name,
.wine-param-input,
.param-input {
    border-radius: 3px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus,
.input-name:focus,
.wine-param-input:focus,
.param-input:focus,
textarea:focus {
    border-color: #b6b838;
    box-shadow: 0 0 0 3px rgba(203, 205, 68, 0.25);
    outline: none;
}

/* Required-field inputs: keeps the red cue the pages always had, just less
   heavy than the old inline 4px pure-red border. */
.required-input {
    border-width: 2px;
    border-color: #d9534f;
}

/* ---------- tables (bootstrap .table) ---------- */

.table > thead > tr > th {
    border-bottom: 2px solid #CBCD44;
}

.table > tbody > tr > td {
    border-bottom: 1px solid #e8e8e2;
}

.table > tbody > tr:hover > td {
    background-color: rgba(203, 205, 68, 0.12);
}

/* ---------- bordered data grid (Batch page) ---------- */

table.single-border th.single-border,
table.single-border td.single-border {
    padding: 6px 8px;
}

table.single-border tbody tr:hover td {
    background-color: rgba(203, 205, 68, 0.16);
}

th.sticky-header {
    border-bottom-width: 2px !important;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
}

/* ---------- tab strip (Batch page) ---------- */

.nav-tabs > li > a {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    transition: background-color 0.2s;
}

.nav-tabs > li > a:hover {
    background-color: rgba(203, 205, 68, 0.18);
}

.tab-content {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* ---------- dialogs ---------- */

.modal-content {
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#digimango_messageBoxTextArea {
    width: 100%;
    border: 2px solid #B2B2B2;
    border-radius: 3px;
    padding: 6px 10px;
}

/* ---------- read-only message boxes (Meter Messages page) ---------- */

textarea.read-only {
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* ---------- custom checkboxes ---------- */

.cb-checkmark {
    border-radius: 3px;
    transition: background-color 0.15s;
}

/* ---------- scroll containers ---------- */

.scrollit::-webkit-scrollbar,
.scroll-div::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.scrollit::-webkit-scrollbar-thumb,
.scroll-div::-webkit-scrollbar-thumb {
    background-color: #b8b8b0;
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.scrollit::-webkit-scrollbar-track,
.scroll-div::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ---------- progress bar (firmware upload) ---------- */

.progress {
    border-radius: 3px;
}

.progress-bar {
    background-color: #9fa12f;
}
