/*
Theme Name: رستوران‌یاب | RestoranYab
Theme URI: https://raestoranyub.ir
Author: RestoranYab Team
Description: قالب مینیمال سازگار ۱۰۰٪ با Elementor + پنل کاربری رستوران/کافه/فست‌فود. صفحات را با المنتور طراحی کنید.
Version: 3.6.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: restoranyab
Tags: elementor, rtl, restaurant, custom-menu, translation-ready
*/

/*
 * Global styles are intentionally MINIMAL.
 * All page design should be done with Elementor.
 * Only .ry-panel-* and .ry-auth-* and basic chrome are styled.
 */

body {
  margin: 0;
  font-family: Tahoma, 'Vazirmatn', system-ui, sans-serif;
  direction: rtl;
}

/* ----- Auth forms (register/login shortcodes) ----- */
.ry-auth-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #f1f5f9;
  box-sizing: border-box;
}
.ry-auth-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  box-sizing: border-box;
}
.ry-auth-title {
  text-align: center;
  padding: 28px 24px 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}
.ry-auth-body { padding: 20px 28px 28px; box-sizing: border-box; }
.ry-auth-footer {
  text-align: center;
  padding: 16px;
  border-top: 1px solid #e2e8f0;
  font-size: .875rem;
  color: #64748b;
}
.ry-form-group { margin-bottom: 14px; }
.ry-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .ry-form-row { grid-template-columns: 1fr; } }
.ry-input, .ry-select, .ry-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  box-sizing: border-box;
  font-family: inherit;
  font-size: inherit;
}
.ry-input:focus, .ry-select:focus {
  border-color: #0f766e;
  outline: none;
  box-shadow: 0 0 0 3px rgba(15,118,110,.12);
}
.ry-role-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.ry-role-card { position: relative; cursor: pointer; }
.ry-role-card input { position: absolute; opacity: 0; pointer-events: none; }
.ry-role-card .ry-role-inner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 10px; border: 1.5px solid #e2e8f0; border-radius: 8px;
  background: #fff; text-align: center; font-weight: 600; font-size: .9rem;
  box-sizing: border-box;
}
.ry-role-card input:checked + .ry-role-inner {
  border-color: #0f766e; background: rgba(15,118,110,.06); color: #0f766e;
}
.ry-role-card .ry-role-inner span.dot {
  width: 16px; height: 16px; border: 2px solid #cbd5e1; border-radius: 50%;
  display: inline-block; flex-shrink: 0; box-sizing: border-box;
}
.ry-role-card input:checked + .ry-role-inner span.dot {
  border-color: #0f766e; background: #0f766e; box-shadow: inset 0 0 0 3px #fff;
}
.ry-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 8px; font-weight: 600; border: none;
  cursor: pointer; text-decoration: none; font-family: inherit; font-size: .9375rem;
  box-sizing: border-box;
}
.ry-btn-primary { background: #0f766e; color: #fff; }
.ry-btn-primary:hover { background: #0d5f59; color: #fff; }
.ry-btn-outline { background: transparent; border: 1.5px solid #0f766e; color: #0f766e; }
.ry-btn-ghost { background: transparent; color: #1e293b; }
.ry-btn-sm { padding: 7px 14px; font-size: .875rem; }
.ry-btn-block { width: 100%; }

/* ----- User Panel only ----- */
.ry-panel {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 80vh;
  direction: rtl;
}
.ry-panel-side {
  background: #fff;
  border-left: 1px solid #e2e8f0;
  padding: 20px 0;
  box-sizing: border-box;
}
.ry-panel-side a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; color: #1e293b; font-weight: 500;
  font-size: .925rem; text-decoration: none;
  border-right: 3px solid transparent; box-sizing: border-box;
}
.ry-panel-side a:hover,
.ry-panel-side a.active {
  background: rgba(15,118,110,.06); color: #0f766e; border-right-color: #0f766e;
}
.ry-panel-main { padding: 28px; box-sizing: border-box; background: #f8fafc; }
.ry-panel-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 20px; margin-bottom: 16px; box-sizing: border-box;
}
.ry-panel-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px;
}
.ry-panel-stat {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 18px; box-sizing: border-box;
}
.ry-panel-stat .val { font-size: 1.5rem; font-weight: 800; color: #0f766e; }
.ry-panel-stat .lbl { font-size: .85rem; color: #64748b; }
.ry-alert {
  padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: .9rem;
  box-sizing: border-box;
}
.ry-alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.ry-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.ry-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
@media (max-width: 900px) {
  .ry-panel { grid-template-columns: 1fr; }
  .ry-panel-stats { grid-template-columns: 1fr 1fr; }
  .ry-role-group { grid-template-columns: 1fr; }
}
