@charset "UTF-8";

/*
 * TravianZ Visual Modernization
 * Enhances typography, spacing, and visual polish.
 * Loaded after all other stylesheets.
 */

/* ===== Typography ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL font override (Vazirmatn loaded from rtl.css) */
html[dir="rtl"] body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

/* ===== Tables ===== */
table.row_table_data {
    border-collapse: collapse;
    width: 100%;
}

table.row_table_data th {
    background-color: #f5f5f0;
    font-weight: 600;
    padding: 8px 6px;
    border-bottom: 2px solid #ddd;
    text-align: left;
}

html[dir="rtl"] table.row_table_data th {
    text-align: right;
}

table.row_table_data td {
    padding: 6px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

table.row_table_data tr:hover td {
    background-color: #f9f9f5;
}

table.row_table_data tr.marked td {
    background-color: #fffde6;
}

/* ===== Forms ===== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    line-height: 1.4;
    transition: border-color 0.2s ease;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: #71d000;
    box-shadow: 0 0 0 2px rgba(113, 208, 0, 0.15);
}

/* ===== Buttons ===== */
.trav_buttons,
input[type="submit"],
input[type="button"],
button {
    padding: 6px 16px;
    border-radius: 4px;
    border: 1px solid #71d000;
    background: linear-gradient(to bottom, #fdfdfd, #f0f0f0);
    cursor: pointer;
    color: #555;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.15s ease;
}

.trav_buttons:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
    background: linear-gradient(to bottom, #fff, #e8e8e8);
    border-color: #5ab000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.trav_buttons:active,
input[type="submit"]:active,
input[type="button"]:active,
button:active {
    background: #f5f5f5;
    border-color: #71d000;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ===== Navigation ===== */
div#side_navi a {
    display: block;
    padding: 4px 8px;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.15s;
}

div#side_navi a:hover {
    background-color: rgba(113, 208, 0, 0.08);
}

/* ===== Content Cards / Sections ===== */
div#content {
    background: #fff;
}

/* ===== Links ===== */
a {
    color: #2a7b1a;
    text-decoration: none;
}

a:hover {
    color: #1a5c10;
    text-decoration: underline;
}

/* ===== Messages & Reports ===== */
div.messages table td,
div.reports table td {
    padding: 6px 8px;
}

/* ===== Resource Display ===== */
div#res {
    font-size: 11px;
}

div#res td {
    padding: 2px 6px;
}

/* ===== Scrollbar (Webkit) ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ===== Accessibility ===== */
:focus-visible {
    outline: 2px solid #71d000;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: #71d000;
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    font-weight: bold;
    transition: top 0.2s;
}

.skip-to-content:focus {
    top: 0;
}
