* { box-sizing: border-box; }
html { direction: rtl; }
body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
    background: #f8f9fa;
    color: #333;
}
h1 { text-align: center; color: #2c3e50; }
.upload-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
label { font-weight: 600; }
input[type="file"] { font-size: 1rem; }
button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
button:disabled { background: #aaa; cursor: not-allowed; }
button:hover:not(:disabled) { background: #1a252f; }
.status { margin-top: 1rem; }
.hidden { display: none; }
.spinner { color: #555; font-style: italic; }
.error { color: #c0392b; background: #fce4e4; padding: 1rem; border-radius: 6px; }
.result { background: #e8f8e8; padding: 1rem; border-radius: 6px; }
.download-btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.6rem 1.2rem;
    background: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}
.download-btn:hover { background: #1e8449; }

/* Top bar */
.top-bar { text-align: left; margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #2c3e50; font-weight: 600; text-decoration: none; }
.top-bar a:hover { text-decoration: underline; }
.user-info { font-size: 0.85rem; color: #666; }
.user-info a { font-weight: 400; color: #c0392b; }

/* Settings page */
.settings-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}
.settings-section h2 { margin-top: 0; color: #2c3e50; }
.form-row { margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.form-row label { min-width: 180px; font-weight: 600; }
.form-row input[type="number"],
.form-row input[type="text"],
.form-row select { padding: 0.4rem; font-size: 0.95rem; border: 1px solid #ccc; border-radius: 4px; }

#sku-table { width: 100%; border-collapse: collapse; margin-bottom: 0.75rem; }
#sku-table th, #sku-table td { border: 1px solid #ddd; padding: 0.4rem; text-align: right; }
#sku-table th { background: #f0f0f0; font-weight: 600; }
#sku-table input[type="text"],
#sku-table input[type="number"] { width: 100%; padding: 0.3rem; border: 1px solid #ccc; border-radius: 3px; box-sizing: border-box; }
.delete-row-btn { background: #c0392b; color: white; border: none; border-radius: 4px; padding: 0.3rem 0.6rem; cursor: pointer; font-size: 0.85rem; }
.delete-row-btn:hover { background: #96281b; }

#save-bar { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.save-ok { color: #27ae60; font-weight: 600; }
.save-err { color: #c0392b; font-weight: 600; }

/* Users table */
#users-table { width: 100%; border-collapse: collapse; margin-bottom: 0.75rem; }
#users-table th, #users-table td { border: 1px solid #ddd; padding: 0.4rem; text-align: right; }
#users-table th { background: #f0f0f0; font-weight: 600; }
#user-status { font-size: 0.9rem; color: #555; }
