/* bvShared.css v01  */
/* ============================================================
   GLOBAL
   ============================================================ */
body {
    background: #dcdcdc;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 10px;
}

/* ============================================================
   CONTROLLER PANEL (from bocceController.css)
   ============================================================ */

.announcer .log-window {
    background: #fff;
    border: 1px solid #aaa;
    font-family: monospace;
    font-size: 14px;
    height: calc(100% - 40px);
    overflow-y: auto;
    padding: 8px;
}

.blink {
    animation: blinkAnim 1s infinite;
}

.blue {
    background-color: #2a6fdb;
}

.btn {
    background: linear-gradient(#ffffff40, #00000020);
    border: none;
    border-radius: 8px;
    box-shadow:
            2px 2px 4px rgba(0,0,0,0.3),
            -2px -2px 4px rgba(255,255,255,0.4);
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 0;
}

.btn:active {
    box-shadow:
            inset 2px 2px 4px rgba(0,0,0,0.4),
            inset -2px -2px 4px rgba(255,255,255,0.3);
}

.btn:disabled {
    box-shadow: none;
    cursor: not-allowed;
    filter: grayscale(40%);
    opacity: 0.45;
}

.btn.small {
    font-size: 22px;
    padding: 6px 0;
    width: 70px;
}

.btn-center-narrow {
    margin: 0 auto;
    width: 140px;
}

.btn.blue {
    background-color: #2a6fdb;
}

.btn.yellow {
    background-color: #d4a017;
}

.col {
    background: #ffffff;
    border: 1px solid #ccc;
    overflow-y: auto;
    padding: 10px;
}

.col-center {
    flex: 1;
    text-align: center;
}

.col-left,
.col-right {
    display: flex;
    justify-content: center;
    width: 80px;
}

.dashboard {
    display: grid;
    gap: 12px;
    grid-template-columns: 460px 520px 520px;
    height: 100vh;
    padding: 10px;
}

.dashboard .btn,
.dashboard .display-box,
.dashboard .title {
    color: #000;
}

.display-box {
    box-shadow:
            inset 2px 2px 4px rgba(0,0,0,0.45),
            inset -2px -2px 4px rgba(255,255,255,0.35);
    box-sizing: border-box;
    border-radius: 8px;
    color: #fff;
    font-size: 26px;
    font-weight: bold;
    padding: 10px 0;
    text-align: center;
    width: 70px;
}

.green {
    background-color: #27ae60;
}

.log-line {
    border-bottom: 1px dotted #ccc;
    margin-bottom: 6px;
    padding-bottom: 4px;
}

.panel {
    background-color: lightseagreen;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    box-sizing: border-box;
    height: 500px;
    padding: 18px 22px;
    width: 450px;
}

.pm-row {
    display: flex;
    justify-content: space-between;
    margin: 14px 0 10px 0;
}

.red {
    background-color: #c0392b;
}

.row-3col {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.selector-row {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.selector-row .btn {
    font-size: 15px;
    width: 28%;
}

.title {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.viewToggle {
    margin-top: 20px;
    text-align: center;
}

.toggleButton {
    background: #ddd;
    border-radius: 6px;
    color: black;
    display: inline-block;
    font-weight: bold;
    padding: 8px 14px;
    text-decoration: none;
}

.yellow {
    background-color: #d4a017;
}

/* Animation */
@keyframes blinkAnim {
    0%   { opacity: 1; }
    50%  { opacity: 0.25; }
    100% { opacity: 1; }
}

/* ============================================================
   VIEW PANEL  - Column 2
   ============================================================ */

.view table {
    border-collapse: collapse;
    margin-bottom: 20px;
    width: 420px;
}

.view th,
.view td {
    border: 1px solid #888;
    padding: 6px 10px;
    text-align: center;
}

.view th {
    background: #eee;
}

.view table .yellow {
    background: #fff8c6;
}

.view table .blue {
    background: #c6d8ff;
}

.court-surface {
    background-color: #cfeec2;
    fill: #cfeec2;
}