@charset "UTF-8";

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

.topbar {
    background: #111827;
    color: #f9fafb;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-row label {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-row input,
.form-row select {
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb33;
}

.form-actions {
    margin-top: 1.5rem;
    text-align: left;
}

.form-actions button {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.form-actions button:hover {
    background: #1d4ed8;
}

.table-wrapper {
    overflow-x: auto;
}

.data-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-grid th,
.data-grid td {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.4rem 0.5rem;
    text-align: right;
}

.data-grid th {
    background: #f3f4f6;
}

.result {
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.result pre {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    overflow-x: auto;
}

.error-message {
    background: #fef2f2;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem 1.5rem;
}

.pagination {
    margin-top: 1rem;
}

.page {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    margin: 0 0.1rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 0.8rem;
}

.page.current {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

