/* ======================
   FONT (Anti-Cache)
====================== */
@font-face {
    font-family: "Vazirmatn";
    src: url("https://sozlik.ezgu.org/font/Vazirmatn.woff2?v=20260105") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* =========================
   RESET & BASE
========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
    background: #f0f6ff;
    color: #0f172a;
    line-height: 1.9;
    font-size: 17px; /* was 19px */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================
   TOPBAR
========================= */
.topbar {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar .logo {
    font-size: 18px; /* was 20px */
    font-weight: 700;
    color: #ffffff;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

.topbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 17px; /* was 19px */
    margin-right: 14px;
    opacity: 0.95;
}

.topbar a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* =========================
   LAYOUT
========================= */
.main-wrapper {
    min-height: calc(100vh - 60px);
    padding: 28px;
}

.container {
    max-width: 1300px;
    margin: auto;
}

/* =========================
   BUTTONS
========================= */
.add-admin-btn,
.search-box button,
.submit-btn {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    cursor: pointer;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: 17px; /* was 19px */
}

/* =========================
   TABLE
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: 17px; /* was 19px */
}

th {
    background: #2563eb;
    color: #ffffff;
    padding: 12px;
}

td {
    padding: 11px;
}

/* =========================
   DEFINITION
========================= */
.def-snippet {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: 17px; /* was 19px */
}

/* ===== EXCEL-STYLE TABLE ===== */

.table-wrap{
    border-radius:16px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 12px 35px rgba(0,0,0,.08);
}

/* header */
table thead th{
    background:#2563eb;
    color:#fff;
    font-weight:700;
    font-size:13px; /* was 15px */
    padding:12px 14px;
    text-align:center;
}

/* body */
table tbody td{
    padding:10px 14px;
    font-size:13px; /* was 15px */
    color:#000;
    vertical-align:top;
    border-bottom:1px solid #e5e7eb;
}

/* zebra rows */
table tbody tr:nth-child(even){
    background:#f9fafb;
}
table tbody tr:nth-child(odd){
    background:#ffffff;
}

/* hover */
table tbody tr:hover{
    background:#eef2ff;
}

/* word */
td:nth-child(2){
    font-weight:700;
    white-space:nowrap;
}

/* pronunciation */
td:nth-child(3){
    font-family: monospace;
    font-size:13px; /* was 15px */
}

/* definition */
td.def-snippet{
    line-height:1.7;
    max-width:520px;
    white-space:normal;
}

/* actions */
td.actions{
    text-align:center;
    white-space:nowrap;
}
td.actions a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    border-radius:6px;
    margin:0 4px;
    background:#e5e7eb;
    color:#000;
    transition:.15s;
}
td.actions a:hover{
    background:#2563eb;
    color:#fff;
}
