/* ====== RESET بسيط ====== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #111827;
    direction: rtl;
}

/* ====== صفحة عامة ====== */
.page {
    max-width: 1100px;
    margin: 30px auto;
    background: #ffffff;
    padding: 25px 25px 35px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #111827;
}

h3 {
    font-size: 20px;
    margin: 20px 0 10px;
    color: #111827;
}

p {
    margin: 6px 0;
}

/* ====== الناف بار البسيط ====== */
.top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 20px;
    align-items: center;
    justify-content: space-between;
}

.top-nav-left,
.top-nav-right {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ====== لينكات و أزرار عامة ====== */
a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input[type="submit"] {
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    background: #2563eb;
    color: #ffffff;
    transition: 0.2s ease-in-out;
}

button:hover,
input[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-danger {
    background: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* ====== فورمات ====== */
form {
    margin: 10px 0 20px;
}

label {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #374151;
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    max-width: 320px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    margin-bottom: 10px;
    outline: none;
    transition: 0.15s;
    background: #f9fafb;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

/* ====== التنبيهات ====== */
.alert-success {
    background: #ecfdf3;
    border: 1px solid #22c55e;
    color: #166534;
    padding: 8px 12px;
    border-radius: 10px;
    margin: 10px 0;
    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 8px 12px;
    border-radius: 10px;
    margin: 10px 0;
    font-size: 14px;
}

/* ====== جدول عام ====== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 15px;
    font-size: 14px;
}

table th,
table td {
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    text-align: right;
}

table th {
    background: #f9fafb;
    font-weight: 600;
}

table tr:nth-child(even) {
    background: #f9fafb;
}

table tr:hover {
    background: #e5f0ff;
}

/* ====== شاشة POS ====== */
.pos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.pos-header-title {
    font-size: 22px;
    font-weight: 600;
}

.pos-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
    margin-bottom: 15px;
}

/* ====== شاشة المطبخ ====== */
.kitchen-order {
    border-radius: 12px;
    padding: 12px 15px 15px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    margin-bottom: 15px;
}

.kitchen-order h3 {
    margin-top: 0;
}

/* ====== لوجين ====== */
.login-container {
    max-width: 400px;
    margin: 80px auto;
    background: #ffffff;
    padding: 25px 25px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 15px;
}

.login-container form {
    text-align: right;
    margin-top: 15px;
}

/* ====== شوية بادينج بين العناصر ====== */
.spacer {
    height: 10px;
}