/*
    Public-only overrides. Loaded AFTER /css/style.css on public pages
    (index.php, ogame-graveyard.php, ogame-merge-tool.php).
    Admin pages must NOT include this file.
*/

/* Table rhythm: less cramped rows, subtle borders, hover feedback. */
td {
    padding: 6px 8px;
}
table[border="1"] {
    border-collapse: collapse;
    border-color: #2a3a2a;
}
table[border="1"] td {
    border: 1px solid #2a3a2a;
    vertical-align: middle;
}
table[border="1"] tr:hover td {
    background: rgba(41, 159, 155, 0.08);
}

/* Zebra striping helps scanning long lists. */
table[border="1"] tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}
/* Hover still wins over the zebra background. */
table[border="1"] tr:hover:nth-child(even) td,
table[border="1"] tr:hover td {
    background: rgba(41, 159, 155, 0.08);
}

/* Form controls: match the dark palette instead of browser default white. */
select,
input[type="text"],
input[type="submit"],
input[type="button"],
.topnav a {
    background: #0f1a10;
    color: #c6f030;
    border: 1px solid #396638;
    padding: 3px 8px;
    font-family: inherit;
    font-size: inherit;
    text-decoration: none;
    display: inline-block;
}
input[type="submit"],
input[type="button"],
.topnav a {
    cursor: pointer;
}
input[type="submit"]:hover,
input[type="button"]:hover,
.topnav a:hover {
    border-color: #299f9b;
    color: #299f9b;
}

/* Distinguish visited links so users can see where they've already been. */
a:visited,
.lnk_txt:visited {
    color: #4a7a45;
}
/* Keep .topnav <a> buttons the same after visit (their inline color still wins on colored ones). */
.topnav a:visited {
    color: #c6f030;
}

/* Softer <hr> on the dark background. */
hr {
    border: none;
    border-top: 1px solid #2a3a2a;
    margin: 12px 0;
}

/* Avoid page-wide horizontal jump on narrow screens. */
body {
    overflow-x: auto;
}

/* Top-right nav: consistent spacing between the header buttons. */
.topnav input[type="button"],
.topnav a {
    margin: 2px 3px;
}
