@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src: url(s6p.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src: url(s6q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
  margin:0;
}

h1 {
  font-family: 'Lato', sans-serif;
  font-weight:300;
  letter-spacing: 2px;
  font-size:48px;
}
p {
  font-family: 'Lato', sans-serif;
  letter-spacing: 1px;
  font-size:14px;
  color: #333333;
}

.header {
  position:relative;
  text-align:center;
  background: linear-gradient(60deg, rgba(84,58,183,1) 0%, rgba(0,172,193,1) 100%);
  color:white;
}
.logo {
  width:50px;
  fill:white;
  padding-right:15px;
  display:inline-block;
  vertical-align: middle;
}

.inner-header {
  height:15vh;
  width:100%;
  margin: 0;
  padding: 0;
}
.captcha-image{
    border-radius: 30px;
}
.flex { /*Flexbox for containers*/
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.waves {
  position:relative;
  width: 100%;
  height:15vh;
  margin-bottom:-7px; /*Fix for safari gap*/
  min-height:100px;
  max-height:150px;
}

.content {
  position:relative;
  height:20vh;
  text-align:center;
  background-color: white;
}

/* Animation */

.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5)     infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}
@keyframes move-forever {
  0% {
   transform: translate3d(-90px,0,0);
  }
  100% { 
    transform: translate3d(85px,0,0);
  }
}
/*Shrinking for mobile*/
@media (max-width: 768px) {
  .waves {
    height:40px;
    min-height:40px;
  }
  .content {
    height:30vh;
  }
  h1 {
    font-size:24px;
  }
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    background: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.upload-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.upload-placeholder .upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.7;
}
.upload-progress-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-effect);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    min-width: 300px;
    max-width: 90%;
    box-shadow: var(--glass-shadow);
    animation: slideUp 0.3s ease;
}

.upload-progress-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.upload-progress-text {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px black;
}
.upload-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.upload-progress-details {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px black;
}
.upload-progress-fill {
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), #4cd964);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}
.upload-progress-percent {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px black;
}
.upload-progress-filename {
    margin-bottom: 0.5rem;
    direction: ltr;
    text-align: center;
    word-break: break-all;
}

.upload-progress-size {
    direction: ltr;
}

.upload-close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.admin-container {
  display:flex;
  min-height:100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family:'Vazir','Roboto',sans-serif
  }
  
  .admin-sidebar {
  width:280px;
  background:linear-gradient(135deg,var(--primary-color),#1a2530);
  color:#fff;
  position:fixed;
  height:100vh;
  overflow-y:auto;
  transition:all .3s ease;
  z-index:1000
  }
  
  .sidebar-header {
  padding:2rem 1.5rem;
  border-bottom:1px solid #ffffff1a;
  text-align:center;
  background:#ffffff0d
  }
  
  .sidebar-header h2 {
  margin-bottom:.5rem;
  font-size:1.3rem;
  color:#fff
  }
  
  .sidebar-header p {
  margin-bottom:.3rem;
  opacity:.9;
  font-size:.95rem
  }
  
  .sidebar-header small {
  opacity:.7;
  font-size:.8rem
  }
  
  .sidebar-nav ul {
  list-style:none;
  padding:1rem 0;
  margin:0;
  text-shadow: 2px 0 #555, -2px 0 #555, 0 2px #555, 0 -2px #555, 1px 1px #555, -1px -1px #555, 1px -1px #555, -1px 1px #555;
  }
  
  .sidebar-nav .nav-link {
  display:flex;
  align-items:center;
  padding:1rem 1.5rem;
  color:#fffc;
  text-decoration:none;
  border-right:4px solid transparent;
  transition:all .3s ease;
  font-size:.95rem
  }
  
  .sidebar-nav .nav-link:hover,.sidebar-nav .nav-link.active {
  background:#ffffff1a;
  color:#fff;
  border-right-color:var(--secondary-color)
  }
  
  .sidebar-nav .nav-link.active {
  background:#ffffff26;
  font-weight:700
  }
  
  .admin-main {
  flex:1;
  margin-right:280px;
  min-height:100vh;
  transition:all .3s ease;
  background: transparent;
  }
  
  .admin-header {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-effect);
  -webkit-backdrop-filter: var(--blur-effect);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding:1rem 2rem;
  display:flex;
  justify-content:space-between;
  align-items:center;
  }
  
  .admin-header h1 {
  color:var(--primary-color);
  margin:0;
  font-size:1.5rem;
  text-shadow: 1px 1px #ffffff;
  }
  
  .header-actions {
  display:flex;
  align-items:center;
  gap:1rem
  }
  
  .admin-content {
  padding:2rem
  }
  
  .stats-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:1.5rem;
  margin-bottom:2rem
  }
  
  .stat-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-effect);
  -webkit-backdrop-filter: var(--blur-effect);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  padding:1.5rem;
  display:flex;
  align-items:center;
  gap:1rem;
  transition:transform .3s ease
  }
  
  .stat-card:hover {
  transform:translateY(-5px)
  }
  
  .stat-icon {
  font-size:2.5rem;
  opacity:.8
  }
  
  .stat-info h3 {
  margin:0 0 .5rem;
  color:#ffffff;
  font-size:.9rem;
  font-weight:400
  }
  
  .stat-number {
  font-size:2rem;
  font-weight:700;
  color:var(--primary-color);
  text-shadow: 1px 1px #ffffff;
  }
  
  .recent-orders {
  background:#fff;
  padding:1.5rem;
  border-radius:8px;
  box-shadow:0 2px 10px #0000001a
  }
  
  .table-container {
  overflow-x:auto;
  margin-top:1rem
  }
  
  .data-table {
  width:100%;
  border-collapse:collapse;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-effect);
  -webkit-backdrop-filter: var(--blur-effect);
  border-radius: 20px;
  overflow: hidden;
  }
  
  .data-table th,.data-table td {
  padding:1rem;
  text-align:right;
  border-bottom:1px solid #eee
  }
  
  .data-table th {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-weight:600;
  color:var(--primary-color)
  }
  
  .data-table tr:hover {
  background:#f8f9fa
  }
  
  .status-badge {
  padding:.3rem .8rem;
  border-radius:20px;
  font-size:.8rem;
  font-weight:700
  }
  
  .status-badge.pending {
  background:#fff3cd;
  color:#856404
  }
  
  .status-badge.confirmed {
  background:#d1ecf1;
  color:#0c5460
  }
  
  .status-badge.processing {
  background:#d1ecf1;
  color:#0c5460
  }
  
  .status-badge.shipped {
  background:#d4edda;
  color:#155724
  }
  
  .status-badge.delivered {
  background:#d4edda;
  color:#155724
  }
  
  .status-badge.cancelled {
  background:#f8d7da;
  color:#721c24
  }
  
  .btn {
  display:inline-block;
  padding:.5rem 1rem;
  border:none;
  border-radius:4px;
  text-decoration:none;
  cursor:pointer;
  font-size:.9rem;
  transition:all .3s ease
  }
  
  .btn-sm {
  padding:.3rem .8rem;
  font-size:.8rem
  }
  
  .btn-view {
  background:var(--secondary-color);
  color:#fff
  }
  
  .btn-view:hover {
  background:#2980b9
  }
  
  .btn-edit {
  background:#28a745;
  color:#fff
  }
  
  .btn-edit:hover {
  background:#218838
  }
  
  .btn-delete {
  background:#dc3545;
  color:#fff
  }
  
  .btn-delete:hover {
  background:#c82333
  }
  
  .admin-form {
  background:#fff;
  padding:2rem;
  border-radius:8px;
  box-shadow:0 2px 10px #0000001a;
  margin-bottom:2rem
  }
  
  .form-row {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:1rem;
  margin-bottom:1rem
  }
  
  .form-group label {
  display:block;
  margin-bottom:.5rem;
  font-weight:500;
  color:var(--primary-color)
  }
  
  .form-group input,.form-group select,.form-group textarea {
  width:100%;
  padding:.75rem;
  border:1px solid #ddd;
  border-radius:4px;
  font-size:1rem;
  transition:border-color .3s ease;
  max-width: 330px;
}
  
  .form-group input:focus,.form-group select:focus,.form-group textarea:focus {
  outline:none;
  border-color:var(--secondary-color);
  box-shadow:0 0 0 2px #3498db33
  }
  
  @media (max-width: 768px) {
  .admin-sidebar {
  width:100%;
  height:auto;
  position:static
  }
  
  .admin-main {
  margin-right:0
  }
  
  .admin-container {
  flex-direction:column
  }
  
  .stats-grid {
  grid-template-columns:1fr
  }
  }
  
  .filters-section {
  background:#fff;
  padding:1.5rem;
  border-radius:8px;
  box-shadow:0 2px 10px #0000001a;
  margin-bottom:1.5rem
  }
  
  .filter-row {
  display:flex;
  gap:1rem;
  align-items:center;
  flex-wrap:wrap
  }
  
  .search-box {
  display:flex;
  flex:1;
  min-width:300px;
  width: 100%;
  }
  
  .search-box input {
  flex:1;
  padding:.75rem;
  border:1px solid #ddd;
  border-radius:0 4px 4px 0;
  border-left:none
  }
  
  .search-box button {
  background:var(--secondary-color);
  color:#fff;
  border:none;
  padding:.75rem 1rem;
  border-radius: 7px 0 0 7px;
  cursor:pointer
  }
  
  .filter-group {
  display:flex;
  gap:.1rem
  }
  
  .filter-group select {
  padding:.75rem;
  border:1px solid #ddd;
  border-radius:4px;
  min-width:150px
  }
  
  .table-section {
  background:#fff;
  padding:1.5rem;
  border-radius:8px;
  box-shadow:0 2px 10px #0000001a
  }
  
  .product-thumb {
  width:50px;
  height:50px;
  object-fit:cover;
  border-radius:4px
  }
  
  .action-buttons {
  display:flex;
  gap:.5rem;
  flex-wrap:wrap
  }
  
  .btn-primary {
  background:var(--secondary-color);
  color:#fff
  }
  
  .btn-primary:hover {
  background:#2980b9
  }
  
  .status-badge.available {
  background:#d4edda;
  color:#155724;
  padding:.3rem .8rem;
  border-radius:20px;
  font-size:.8rem;
  font-weight:700
  }
  
  .status-badge.unavailable {
  background:#f8d7da;
  color:#721c24;
  padding:.3rem .8rem;
  border-radius:20px;
  font-size:.8rem;
  font-weight:700
  }
  
  .no-data {
  text-align:center;
  padding:2rem;
  color:#666;
  font-style:italic
  }
  
  .pagination {
  display:flex;
  justify-content:center;
  gap:.5rem;
  margin-top:2rem;
  padding-top:2rem;
  border-top:1px solid #eee
  }
  
  .page-btn,.page-current {
  padding:.5rem 1rem;
  border:1px solid #ddd;
  border-radius:4px;
  text-decoration:none;
  color:var(--text-color)
  }
  
  .page-btn {
  background:#fff;
  cursor:pointer;
  transition:background .3s ease
  }
  
  .page-btn:hover {
  background:var(--light-bg)
  }
  
  .page-current {
  background:var(--secondary-color);
  color:#fff;
  border-color:var(--secondary-color)
  }
  
  .form-section {
  margin-bottom:2rem;
  padding-bottom:2rem;
  border-bottom:1px solid #eee
  }
  
  .form-section:last-child {
  border-bottom:none;
  margin-bottom:0
  }
  
  .form-section h2 {
  color:var(--primary-color);
  margin-bottom:1rem;
  font-size:1.2rem
  }
  
  .checkbox-group {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:.5rem;
  margin-top:.5rem
  }
  
  .checkbox-label input[type="checkbox"] {
  width:auto
  }
  
  .form-actions {
  display:flex;
  gap:1rem;
  justify-content:flex-end;
  margin-top:2rem;
  padding-top:2rem;
  border-top:1px solid #eee
  }
  
  .btn-outline {
  background:#fff;
  color:var(--secondary-color);
  border:1px solid var(--secondary-color)
  }
  
  .btn-outline:hover {
  background:var(--secondary-color);
  color:#fff
  }
  
  .alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    font-weight: 500;
  }
  
  .alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
  }
  
  .alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
  }
  
  .alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
  }
  
  .status-select {
  padding:.3rem;
  border:1px solid #ddd;
  border-radius:4px;
  font-size:.8rem
  }
  
  .order-detail-container {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.5rem
  }
  
  .order-info-section,.customer-info-section {
  display:flex;
  flex-direction:column;
  gap:1.5rem
  }
  
  .order-items-section,.notes-section {
  grid-column:1 / -1
  }
  
  .info-card {
  background:#fff;
  padding:1.5rem;
  border-radius:8px;
  box-shadow:0 2px 10px #0000001a
  }
  
  .info-card h3 {
  color:var(--primary-color);
  margin-bottom:1rem;
  padding-bottom:.5rem;
  border-bottom:2px solid var(--secondary-color)
  }
  
  .info-grid {
  display:flex;
  flex-direction:column;
  gap:1rem
  }
  
  .info-item {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-bottom:.5rem;
  border-bottom:1px solid #f0f0f0
  }
  
  .info-item:last-child {
  border-bottom:none
  }
  
  .info-item strong {
  color:var(--primary-color)
  }
  
  .price {
  font-weight:700;
  color:var(--accent-color);
  font-size:1.1rem
  }
  
  .address-info p {
  margin-bottom:.5rem;
  line-height:1.5
  }
  
  .status-form {
  margin-top:1rem
  }
  
  .status-form .form-row {
  display:flex;
  gap:1rem;
  align-items:flex-end
  }
  
  .status-form select {
  flex:1
  }
  
  @media (max-width: 768px) {
  .order-detail-container {
  grid-template-columns:1fr
  }
  
  .info-item {
  flex-direction:column;
  align-items:flex-start;
  gap:.5rem
  }
  
  .status-form .form-row {
  flex-direction:column
  }
  }
  
  .modal {
  display:none;
  position:fixed;
  z-index:1000;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background-color:#00000080
  }
  
  .modal-content {
  background-color:#fff;
  margin:5% auto;
  padding:0;
  border-radius:8px;
  width:90%;
  max-width:500px;
  box-shadow:0 4px 20px #0003;
  animation:modalSlideIn .3s ease
  }
  
  @keyframes modalSlideIn {
  from {
  transform:translateY(-50px);
  opacity:0
  }
  
  to {
  transform:translateY(0);
  opacity:1
  }
  }
  
  .modal-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1.5rem;
  border-bottom:1px solid #eee
  }
  
  .modal-header h2 {
  margin:0;
  color:var(--primary-color)
  }
  
  .close {
  color:#aaa;
  font-size:1.5rem;
  font-weight:700;
  cursor:pointer;
  line-height:1
  }
  
  .close:hover {
  color:var(--accent-color)
  }
  
  .modal-body {
  padding:1.5rem
  }
  
  .parent-category {
  color:#666;
  font-size:.8rem;
  font-style:italic
  }
  
  .badge {
  background:#e3f2fd;
  color:#1976d2;
  padding:.3rem .6rem;
  border-radius:12px;
  font-size:.8rem;
  font-weight:700
  }
  
  .status-badge.active {
  background:#d4edda;
  color:#155724
  }
  
  .status-badge.inactive {
  background:#f8d7da;
  color:#721c24
  }
  
  .customer-info {
  display:flex;
  flex-direction:column;
  gap:1.5rem
  }
  
  .info-section {
  border:1px solid #eee;
  border-radius:8px;
  padding:1.5rem
  }
  
  .info-section h3 {
  color:var(--primary-color);
  margin-bottom:1rem;
  padding-bottom:.5rem;
  border-bottom:2px solid var(--secondary-color)
  }
  
  .info-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:1rem
  }
  
  .addresses-list {
  display:flex;
  flex-direction:column;
  gap:1rem
  }
  
  .address-card {
  background:#f8f9fa;
  padding:1rem;
  border-radius:6px;
  border-right:4px solid var(--secondary-color)
  }
  
  .address-card h4 {
  margin:0 0 .5rem;
  color:var(--primary-color)
  }
  
  .address-meta {
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
  margin-top:.5rem
  }
  
  .address-meta span {
  font-size:.8rem;
  color:#666
  }
  
  .orders-list {
  display:flex;
  flex-direction:column;
  gap:.5rem
  }
  
  .order-item {
  background:#f8f9fa;
  padding:1rem;
  border-radius:6px;
  border-left:4px solid var(--secondary-color)
  }
  
  .order-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:.5rem
  }
  
  .order-date {
  font-size:.8rem;
  color:#666
  }
  
  .order-details {
  display:flex;
  justify-content:space-between;
  align-items:center
  }
  
  @media (max-width: 768px) {
  .info-grid {
  grid-template-columns:1fr
  }
  
  .address-meta {
  flex-direction:column;
  gap:.3rem
  }
  }
  
  #editCustomerForm {
  display:flex;
  flex-direction:column;
  gap:1.5rem
  }
  
  #editCustomerForm .form-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem
  }
  
  #editCustomerForm .form-group {
  margin-bottom:0
  }
  
  #editCustomerForm .form-group input:focus {
  outline:none;
  border-color:var(--secondary-color);
  box-shadow:0 0 0 2px #3498db33
  }
  
  #editCustomerForm .form-actions {
  display:flex;
  gap:1rem;
  justify-content:flex-end;
  margin-top:1rem;
  padding-top:1rem;
  border-top:1px solid #eee
  }
  
  @media (max-width: 768px) {
  #editCustomerForm .form-row {
  grid-template-columns:1fr
  }
  
  #editCustomerForm .form-actions {
  flex-direction:column
  }
  }
  
  .modal {
  overflow-y:scroll
  }
  
  .role-badge {
  padding:.3rem .8rem;
  border-radius:20px;
  font-size:.8rem;
  font-weight:700
  }
  
  .role-badge.super_admin {
  background:#ffeb3b;
  color:#f57f17
  }
  
  .role-badge.sales_admin {
  background:#4caf50;
  color:#fff
  }
  
  .role-badge.customer {
  background:#2196f3;
  color:#fff
  }
  
  .new-message {
  background:#e3f2fd!important;
  font-weight:700
  }
  
  .message-info {
  display:flex;
  flex-direction:column;
  gap:1.5rem
  }
  
  .message-header {
  border-bottom:2px solid #eee;
  padding-bottom:1rem
  }
  
  .sender-info h3 {
  color:var(--primary-color);
  margin-bottom:.5rem
  }
  
  .sender-details {
  color:#666;
  margin-bottom:.5rem
  }
  
  .message-meta {
  font-size:.9rem;
  color:#888
  }
  
  .message-content h4 {
  color:var(--primary-color);
  margin-bottom:.5rem
  }
  
  .message-text {
  background:#f8f9fa;
  padding:1rem;
  border-radius:6px;
  border-right:4px solid var(--secondary-color);
  line-height:1.6
  }
  
  .message-actions {
  display:flex;
  gap:1rem;
  justify-content:flex-end;
  border-top:1px solid #eee;
  padding-top:1rem
  }
  
  .status-badge.new {
  background:#ffeb3b;
  color:#f57f17
  }
  
  .status-badge.read {
  background:#e3f2fd;
  color:#1976d2
  }
  
  .status-badge.replied {
  background:#d4edda;
  color:#155724
  }
  
  .admin-sidebar,
  .admin-main,
  .admin-header h1,
  .sidebar-nav .nav-link,
  .data-table {
      font-family: 'Vazir', 'Roboto', sans-serif;
  }
  /* استایل‌های بهبود یافته برای گالری تصاویر */
  .images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
  }
  
  .image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: var(--secondary-color);
  }
  
  .image-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
  }
  
  .image-item.main-image {
    border: 2px solid var(--secondary-color);
  }
  
  .image-actions {
    position: absolute;
    top: 5px;
    left: 5px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .image-item:hover .image-actions {
    opacity: 1;
  }
  
  .image-action-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }
  
  .btn-delete-image {
    background: rgba(220, 53, 69, 0.9);
    color: white;
  }
  
  .btn-set-main {
    background: rgba(40, 167, 69, 0.9);
    color: white;
  }
  
  .image-action-btn:disabled {
    background: rgba(108, 117, 125, 0.5);
    cursor: not-allowed;
  }
  
  .image-action-btn:hover:not(:disabled) {
    transform: scale(1.1);
  }
  
  .btn-main-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--secondary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
  }
  
  .no-images {
    text-align: center;
    padding: 3rem;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
  }
  
  .upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    background: #f8f9fa;
  }
  
  .upload-area:hover {
    border-color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.05);
  }
  
  .upload-area.dragover {
    border-color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.1);
  }
  
  .upload-placeholder .upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.7;
  }
  .image-color-selector {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 8px;
    border-radius: 6px;
  }
  
  .image-color-selector label {
    color: white;
    font-size: 0.8rem;
    margin-bottom: 4px;
    display: block;
  }
  
  .image-color-selector select {
    width: 100%;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    color: #333;
  }
  
  .image-color-selector select:focus {
    outline: none;
    border-color: var(--secondary-color);
  }
  
  .color-selector-label {
    color: white;
    font-size: 0.75rem;
    margin-bottom: 8px;
    text-align: center;
    font-weight: 600;
  }
  
  .color-options-grid {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .color-option {
    cursor: pointer;
    padding: 3px;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    padding: 1px;
  }
  
  .color-option:hover {
    transform: scale(1.1);
  }
  
  .color-option.selected {
    border: 2px solid #e74c3c;
    box-shadow: 0 0 0 1px rgba(231, 76, 60, 0.5);
    padding: 1px;
  }
  
  .color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
  }
  
  .color-option.selected .color-circle {
    border-color: white;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  
  .color-circle.no-color {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    position: relative;
  }
  
  .color-circle.no-color span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
  }
  
  .color-circle.no-color::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) rotate(45deg);
  }
  
  /* استایل‌های مدیریت رنگ‌ها */
  .color-display {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.3);
      display: inline-block;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }
  
  .color-input-group {
      display: flex;
      align-items: center;
      gap: 10px;
  }
  
  .color-input-group input[type="color"] {
      width: 50px;
      height: 50px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
  }
  
  .color-input-group input[type="text"] {
      flex: 1;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-family: monospace;
      text-transform: uppercase;
  }
  
  .color-preview {
      width: 40px;
      height: 40px;
      border-radius: 8px;
      border: 2px solid #ddd;
      transition: all 0.3s ease;
  }
  
  .color-indicator {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      display: inline-block;
      margin-left: 5px;
      border: 1px solid rgba(0,0,0,0.2);
      vertical-align: middle;
  }
  /* بهبود استایل‌های موجود */
  .checkbox-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 10px;
      margin-top: 10px;
  }
  
  .checkbox-label {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border: 1px solid #eee;
      border-radius: 6px;
      transition: all 0.3s ease;
      cursor: pointer;
  }
  
  .checkbox-label:hover {
      background: #f8f9fa;
      border-color: var(--secondary-color);
  }
  
  .checkbox-label input[type="checkbox"] {
      margin: 0;
  }
  /* استایل‌های جدید برای نمایش وضعیت پرداخت */
  .status-badge.cash-payment {
      background: #ffc107;
      color: #000;
      font-size: 0.8rem;
      padding: 0.3rem 0.6rem;
  }
  
  .status-badge.online-payment {
      background: #17a2b8;
      color: #fff;
      font-size: 0.8rem;
      padding: 0.3rem 0.6rem;
  }
  
  .status-badge.pending-cash {
      background: #6c757d;
      color: #fff;
      font-size: 0.8rem;
      padding: 0.3rem 0.6rem;
  }
  
  /* استایل برای جدول سفارشات */
  .data-table th:nth-child(5),
  .data-table td:nth-child(5) {
      text-align: center;
  }
  
  .data-table th:nth-child(6),
  .data-table td:nth-child(6) {
      text-align: center;
  }
  /* استایل‌های جدید برای نمایش وضعیت پرداخت در پنل ادمین */
  .status-badge.cash-payment {
      background: #ffc107;
      color: #000;
      font-size: 0.8rem;
      padding: 0.3rem 0.6rem;
  }
  
  .status-badge.online-payment {
      background: #17a2b8;
      color: #fff;
      font-size: 0.8rem;
      padding: 0.3rem 0.6rem;
  }
  
  .status-badge.pending-cash {
      background: #6c757d;
      color: #fff;
      font-size: 0.8rem;
      padding: 0.3rem 0.6rem;
  }
  
  .status-badge.paid-cash {
      background: #28a745;
      color: #fff;
      font-size: 0.8rem;
      padding: 0.3rem 0.6rem;
  }
  
  /* استایل برای جدول سفارشات */
  .data-table th:nth-child(5),
  .data-table td:nth-child(5) {
      text-align: center;
  }
  
  .data-table th:nth-child(6),
  .data-table td:nth-child(6) {
      text-align: center;
  }
  
  /* استایل برای صفحه جزئیات سفارش در ادمین */
  .info-item .status-badge.cash-payment,
  .info-item .status-badge.online-payment,
  .info-item .status-badge.pending-cash,
  .info-item .status-badge.paid-cash {
      padding: 0.3rem 0.8rem;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 700;
  }
  
  /* استایل برای دکمه تأیید پرداخت در محل */
  .btn-confirm-payment {
      background: #28a745;
      color: #fff;
      border: none;
      padding: 0.3rem 0.8rem;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.8rem;
      transition: background 0.3s ease;
  }
  
  .btn-confirm-payment:hover {
      background: #218838;
  }
  
  .btn-confirm-payment:disabled {
      background: #6c757d;
      cursor: not-allowed;
  }
  .form-group{
    place-items: center;
  }
  .form-group input {
    width:100%;
    padding:12px 20px;
    background: rgb(4 177 255 / 12%);
    backdrop-filter: blur(10px);
    border: 1px solid rgb(11 8 79 / 18%);
    border-radius: 15px;
    color: #edf8d5;
    font-size:1rem;
    transition:all .3s ease
    }
    
    .form-group input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    outline: none;
    }