/*==========================
  Base & Typography
===========================*/
@font-face {
  font-family: 'Vazirmatn';
  src: url('../../assets/font/Vazirmatn-Regular.woff2') format('woff2'),
       url('../../assets/font/Vazirmatn-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

html,
body {
  height: 100%;                /* Ensure full-height for scrolling */
  margin: 0;
  padding: 0;
  direction: rtl;
  font-family: 'Vazirmatn', 'Vazir', 'Segoe UI', Tahoma, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px;
}

/* Main content wrapper: no forced height */
.main-box {
  padding: 20px;
  /* Removed height and overflow to let page scroll naturally */
}

/* Headings */
h1,
h2,
h3,
h4 {
  color: #0d6efd;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Footer spacing */
footer {
  margin-bottom: 60px;
}

/*==========================
  Navbar (fixed bottom)
===========================*/
.navbar.fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  border-top: 1px solid #dee2e6;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

.nav-link {
  display: block;
  font-size: 0.95rem;
  color: #054883;
  text-align: center;
  margin-bottom: 2px;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #e3e5e9;
}

.nav-link i {
  display: block;
  font-size: 1.2rem;
  margin-bottom: -10px;
  color: #0079e2;
  transition: color 0.3s ease;
}

.nav-link:hover i {
  color: #e2e4e8;
}

/*==========================
  Cards & Lists
===========================*/
.card {
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.03);
}

.customer-card {
  margin-bottom: 1.5rem;
}

.card ul {
  padding-right: 15px;
  list-style: none;
}

.card ul li {
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
}

.card ul li i {
  margin-left: 8px;
  color: #0d6efd;
}

/*==========================
  Forms & Inputs
===========================*/
.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

input,
select,
textarea {
  direction: rtl;
  text-align: right;
  padding: 10px;
  font-size: 1rem;
}

.rtl-input,
.rtl-input::placeholder {
  direction: rtl;
  text-align: right;
}

.row {
  margin-bottom: 1rem;
}

/*==========================
  Buttons
===========================*/
.btn-primary,
.btn-success {
  padding: 10px 20px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn-primary {
  background-color: #0d6efd;
  color: #fff;
}

.btn-primary:hover {
  background-color: #0b5ed7;
}

.btn-success {
  background-color: #198754;
  color: #fff;
}

.btn-success:hover {
  background-color: #157347;
}

/*==========================
  Alerts
===========================*/
.alert-success,
.alert-danger {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid;
}

.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

/*==========================
  Tables
===========================*/
.table-responsive {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.04);
  padding: 10px;
  margin-bottom: 30px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  white-space: nowrap;
  vertical-align: middle;
  font-size: 0.9rem;
  padding: 10px;
  text-align: right;
}

.table thead th {
  background-color: #f1f3f5;
  font-weight: 600;
}

.table tbody tr:hover {
  background-color: #f9f9f9;
}

td.balance-positive {
  background-color: #d4edda !important;
  color: #155724 !important;
  font-weight: 600;
}

td.balance-negative {
  background-color: #f8d7da !important;
  color: #721c24 !important;
  font-weight: 600;
}

/*==========================
  Gesture Cards
===========================*/
.gesture-card {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.gesture-header {
  background: #e7f1fc;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.gesture-header:hover {
  background: #d4e9fa;
}

.gesture-body {
  display: none;
  padding: 12px 16px;
  border-top: 1px solid #ddd;
}

.gesture-item {
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
}

/*==========================
  Reports Grid
===========================*/
.report-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
}

.report-icon {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  width: 100px;
  height: 100px;
  text-align: center;
  padding: 12px;
  font-size: 0.85rem;
  color: #0d6efd;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.report-icon i {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.report-icon:hover {
  transform: scale(1.05);
  background-color: #eaf4ff;
}

.report-content {
  display: none;
}
