/* PESSO admin — plain CSS, RTL Hebrew */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Rubik, "Segoe UI Hebrew", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    background: #f6f7f9;
    color: #1f2937;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- topbar ---- */
.topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.topbar .brand a {
    font-weight: 700;
    font-size: 17px;
    color: #111827;
}
.topbar nav {
    display: flex;
    gap: 20px;
    flex: 1;
}
.topbar nav a {
    color: #374151;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
}
.topbar nav a:hover {
    color: #111827;
    text-decoration: none;
    border-bottom-color: #d1d5db;
}
.topbar .user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6b7280;
    font-size: 14px;
}
.topbar .user form.inline { display: inline; margin: 0; }
.linklike {
    background: none;
    border: 0;
    padding: 0;
    color: #dc2626;
    cursor: pointer;
    font: inherit;
}
.linklike:hover { text-decoration: underline; }

/* ---- container / main ---- */
.container {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 24px;
}

/* ---- login card ---- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.login-card h1 {
    margin: 0 0 4px;
    font-size: 22px;
    color: #111827;
}
.login-card .sub {
    color: #6b7280;
    margin: 0 0 20px;
    font-size: 14px;
}

/* ---- forms ---- */
label { display: block; margin: 12px 0 6px; font-weight: 500; color: #374151; }
input[type=text], input[type=password], input[type=email], input[type=number], select, textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font: inherit;
    background: #fff;
    color: #111827;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
button, .btn {
    display: inline-block;
    padding: 9px 16px;
    border: 0;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}
button:hover, .btn:hover { background: #1d4ed8; text-decoration: none; }
button.wide { width: 100%; margin-top: 16px; }

/* ---- flashes ---- */
.flash {
    padding: 10px 14px;
    margin: 0 0 16px;
    border-radius: 6px;
    font-size: 14px;
}
.flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ---- tables ---- */
table.data {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
table.data th, table.data td {
    padding: 10px 14px;
    text-align: right;
    border-bottom: 1px solid #f3f4f6;
}
table.data th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #f9fafb; }

/* ---- dashboard stat cards ---- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}
.stat-card .label { font-size: 13px; color: #6b7280; margin-bottom: 4px; }
.stat-card .value { font-size: 24px; font-weight: 600; color: #111827; }

h1, h2 { color: #111827; }
h1 { font-size: 22px; margin: 0 0 20px; }
h2 { font-size: 17px; margin: 24px 0 12px; }

.muted { color: #6b7280; }
.small { font-size: 13px; }
