/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header */
.site-header {
  background: linear-gradient(to right, #0077b6, #0096c7);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.site-header h1 {
  font-size: 1.8rem;
}

.cart-link {
  background: #023e8a;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s;
}

.cart-link:hover {
  background: #0077b6;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

.product-card img {
  max-width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #0077b6;
}

.product-card .price {
  font-size: 1.1rem;
  color: #023e8a;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.product-card .desc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.add-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.add-form .qty {
  width: 60px;
  padding: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
}

.add-form button {
  background: #0096c7;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.add-form button:hover {
  background: #0077b6;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-card {
  animation: fadeIn 0.5s ease-in-out;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
} 
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.cart-table th,
.cart-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.total {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: right;
  margin-top: 1rem;
  color: #0077b6;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.cart-actions button,
.cart-actions .btn-checkout {
  background: #0096c7;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cart-actions button:hover,
.cart-actions .btn-checkout:hover {
  background: #0077b6;
}

.success-box {
    background: #e6ffed;
    border: 2px solid #4caf50;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    animation: fadeIn 0.5s ease-in;
}
.success-box h2 {
    color: #2e7d32;
    font-size: 1.8rem;
}
.success-box p {
    font-size: 1.1rem;
    color: #333;
}
.btn-back {
    display: inline-block;
    margin-top: 1rem;
    background: #0096c7;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s;
}
.btn-back:hover {
    background: #0077b6;
}
/* ===== نموذج إتمام الطلب ===== */
.checkout-form {
  background-color: #f1f1f1;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.checkout-form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #023e8a;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"] {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.checkout-form button {
  background-color: #0096c7;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.checkout-form button:hover {
  background-color: #0077b6;
}

/* ===== ملخص الطلب ===== */
ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

ul li {
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
  color: #333;
  font-size: 1.05rem;
}

.total {
  font-size: 1.2rem;
  color: #0077b6;
  font-weight: bold;
  text-align: center;
  margin: 1.5rem 0;
}

/* ===== الرسائل ===== */
.errors {
  background-color: #ffe6e6;
  border: 1px solid #ff4d4d;
  padding: 1rem;
  border-radius: 0.5rem;
  color: #b30000;
  max-width: 600px;
  margin: 1rem auto;
}

.errors ul {
  margin: 0;
  padding-right: 1.2rem;
}
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.dashboard-cards .card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.dashboard-cards .card:hover {
  transform: translateY(-5px);
}

.dashboard-cards .card h3 {
  color: #0077b6;
  margin-bottom: 0.5rem;
}

.dashboard-cards .card p {
  font-size: 1.4rem;
  font-weight: bold;
  color: #023e8a;
}
.admin-actions {
  margin-top: 50px;
  text-align: center;
}

.admin-actions h2 {
  font-size: 24px;
  margin-bottom: 25px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: auto;
}

.btn-admin {
  display: block;
  background: linear-gradient(to right, #0077b6, #0096c7);
  color: white;
  padding: 15px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, background-color 0.3s;
}

.btn-admin:hover {
  background: linear-gradient(to right, #005f86, #0077a1);
  transform: scale(1.05);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.data-table th, .data-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

.data-table th {
  background-color: #0077b6;
  color: white;
}

.btn-small {
  background-color: #0096c7;
  color: white;
  padding: 5px 10px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}

.btn-small:hover {
  background-color: #0077a1;
}
/* ===== نموذج إدارة المنتجات ===== */
.product-form {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 800px;
  margin: 2rem auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  animation: fadeIn 0.4s ease-in-out;
}

.product-form h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #0077b6;
}

.product-form .form-group {
  margin-bottom: 1.25rem;
}

.product-form label {
  display: block;
  font-weight: bold;
  color: #023e8a;
  margin-bottom: 0.5rem;
}

.product-form input[type="text"],
.product-form input[type="number"],
.product-form textarea,
.product-form select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.product-form input:focus,
.product-form textarea:focus,
.product-form select:focus {
  border-color: #0096c7;
  outline: none;
}

.product-form textarea {
  min-height: 100px;
  resize: vertical;
}

.product-form .form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.product-form .form-check input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: #0077b6;
}

.product-form button {
  background-color: #0077b6;
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
  margin: 1rem auto 0;
}

.product-form button:hover {
  background-color: #005f86;
}
/* ===== إدارة المدراء ===== */
.admins-page h2 {
    font-size: 24px;
    color: #0077b6;
    margin-bottom: 1rem;
}

.admins-page .btn-admin {
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #0077b6, #0096c7);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, background-color 0.3s;
}
.admins-page .btn-admin:hover {
    background: linear-gradient(to right, #005f86, #0077a1);
    transform: scale(1.03);
}

.data-table th, .data-table td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: center;
}

.data-table th {
    background-color: #0077b6;
    color: white;
}

.btn-small {
    padding: 5px 10px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    margin: 0 2px;
}
.btn-small:hover {
    opacity: 0.9;
}
.btn-small.danger {
    background-color: #d9534f;
}
.btn-small.danger:hover {
    background-color: #c9302c;
}
