﻿  #PanelDisplay {
    transition: opacity 0.5s;
    color: #4a683f;
    font-size: 15px;
  }

  #PanelDisplay.hidden {
    opacity: 0;
  }

  #PanelDisplay.d-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

.modal {
    z-index: 1050;
    position: relative;
    overflow: hidden;
}

/* حركة التكبير عند عرض المودال */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}

.modal.fade.show .modal-dialog {
    transform: scale(1);
}

/* تعديل شكل المودال الأساسي */
.modal-content {
    font-family: 'Cairo', sans-serif; /* أو أي خط تفضله */
    font-size: 16px;
    color: #333;
    background-color: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* تعديل الهيدر */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #222;
}

/* تعديل البودي */
.modal-body {
    padding: 1.5rem;
    font-size: 16px;
    color: #555;
}

/* تعديل الفوتر */
.modal-footer {
    background-color: #f8f9fa;
    border-top: none;
    padding: 1rem 1.5rem;
}

/* تعديل الأزرار داخل الفوتر */
.modal-footer .btn {
    font-family: 'Cairo', sans-serif;
    padding: 8px 20px;
    font-size: 16px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

/* زر تأكيد */
.modal-footer .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.modal-footer .btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

/* زر إلغاء */
.modal-footer .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.modal-footer .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.card {
  border-radius: 14px;
  background: linear-gradient(145deg, #1b1b2b, #22223b) !important;
  box-shadow: 0 4px 15px rgba(0, 255, 130, 0.15);
  margin-bottom: 14px;
  overflow: hidden;
  width: 100%;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 255, 130, 0.25);
}

.card-header {
  background: linear-gradient(90deg, #16a34a, #22c55e) !important;
  color: #ffffff !important;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.5px;
  user-select: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.card-header:hover {
  background: linear-gradient(90deg, #15803d, #1fb157) !important;
  transform: scale(1.005);
}

.card-details {
  background-color: #24243e !important;
  color: #e5e7eb !important;
  padding: 14px 18px;
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease;
  font-size: 13.5px;
  line-height: 1.6em;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  cursor: text;
}

.card-rejected {
  border-radius: 12px;
  background-color: #2a1e1e !important;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.2);
  margin-bottom: 10px;
  overflow: hidden;
  width: 100%;
  position: relative;
  transition: height 0.3s ease;
}

.card-rejected-header {
  background-color: #ef4444 !important;  /* أحمر رئيسي */
  color: #ffffff !important;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  font-size: 11px;
  user-select: none;
  transition: background-color 0.2s ease;
}

.card-rejected-header:hover {
  background-color: #dc2626 !important;  /* أحمر داكن عند المرور */
}

.card-rejected-details {
  background-color: #3f2a2a !important;
  color: #ffffff !important;
  padding: 12px 15px;
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease;
  font-size: 13px;
  line-height: 1.5em;
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  cursor: text;
}


.card-pending {
  border-radius: 12px;
  background-color: #2a281e !important;
  box-shadow: 0 0 12px rgba(255, 200, 0, 0.25);
  margin-bottom: 10px;
  overflow: hidden;
  width: 100%;
  position: relative;
  transition: height 0.3s ease;
}

.card-pending-header {
  background-color: #facc15 !important;  /* أصفر رئيسي */
  color: #1e1e1e !important;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  font-size: 11px;
  user-select: none;
  transition: background-color 0.2s ease;
}

.card-pending-header:hover {
  background-color: #eab308 !important;  /* أصفر داكن عند المرور */
}

.card-pending-details {
  background-color: #3f3b2a !important;
  color: #ffffff !important;
  padding: 12px 15px;
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease;
  font-size: 13px;
  line-height: 1.5em;
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  cursor: text;
}

.details-btn {
  background: linear-gradient(90deg, #d4af37, #f7e08b); /* ذهبي متدرج مودرن */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  line-height: 1.5;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.details-btn:hover {
  background: linear-gradient(90deg, #f7e08b, #ffd700); /* ذهبي أفتح عند المرور */
  transform: scale(1.05);
}


/* زر إغلاق بالزاوية */
.btn-close {
    background: none;
    border: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

.modal-backdrop {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 1040;
}

.modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: -1;
}

    #loadingOverlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 999999;
    }
    .loader {
      position: relative;
      width: 150px;
      height: 150px;
      animation: spin 2s linear infinite;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .loader-circle {
      position: absolute;
      width: 120px;
      height: 120px;
      border: 28px solid #68E5E4;
      border-top: 16px solid #FFDA73;
      border-radius: 50%;
    }
    .loader-text {
      position: absolute;
      font-size: 18px;
      font-weight: bold;
      color: #D3D83F;
    }
    @keyframes spin {
      0% { transform: rotate(0deg);}
      100% { transform: rotate(360deg);}
    }

        .respitem {
            box-shadow: 10px 10px 20px grey;
            border-radius: 10px;
        }

        .respgrid {
            padding: 20px;
        }

        button:not([class]) {
           padding: 0.375rem 0.75rem;
           background-color: #e0f0ff;
           border: 1px solid #b8daff;
           border-radius: 0.375rem;
           transition: background-color 0.15s ease-in-out;
           display: flex;
           align-items: center;
           justify-content: center;
           text-align: center;
           white-space: nowrap;
         }

         button:not([class]):hover {
            background-color: #cce5ff;
            border-color: #b8daff;
         }

        .modern-panel {
            background: linear-gradient(135deg, #FFF3DC, #FFE2AC);
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            animation: fadeInUp 0.5s ease-in-out;
        }

        .modern-panel2 {
            background: linear-gradient(135deg, #FADC5A, #CEB34A);
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            animation: fadeInUp 0.5s ease-in-out;
        }

        .modern-panel3 {
            background: #CEB34A;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            animation: fadeInUp 0.5s ease-in-out;
        }

        .modern-panel7 {
            background: linear-gradient(135deg, #F3F3F3, #EAEAEA);
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            animation: fadeInUp 0.5s ease-in-out;
        }

        .modern-panel8 {
            background: #EAEAEA;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            animation: fadeInUp 0.5s ease-in-out;
        }

        .modern-panel4 {
            background: linear-gradient(135deg, #ECECEC, #E7E7E7);
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            animation: fadeInUp 0.5s ease-in-out;
        }

        .modern-panel5 {
            background: linear-gradient(135deg, #F5F5F5, #ECECEC);
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            animation: fadeInUp 0.5s ease-in-out;
        }

        .modern-panel9 {
            background: linear-gradient(180deg, #F9FAFB, #ECEFF1);
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
            animation: fadeInUp 0.5s ease-in-out;
        }

/* == Modern Style for DateTimePicker == */
.modern-date {
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: #333;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.2s ease-in-out;
  width: 130px; /* عدلها إذا أردت */
}

/* عند التركيز */
.modern-date:focus {
  outline: none;
  border-color: #6698CC; /* نفس لون زر الكل */
  box-shadow: 0 0 4px rgba(102,152,204,0.6);
}

/* عند المرور */
.modern-date:hover {
  border-color: #999;
}

/* أيقونة التقويم */
.modern-date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(35%) sepia(20%) saturate(400%) hue-rotate(190deg);
}

/* == زر الرئيسية == */
.home-btn {
  background: linear-gradient(180deg, #f9f9f9, #e9e9e9);
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 13px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px; /* مسافة بين الأيقونة والنص */
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

/* عند المرور */
.home-btn:hover {
  background: linear-gradient(180deg, #ffffff, #e1e1e1);
  border-color: #bbb;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* عند النقر */
.home-btn:active {
  background: linear-gradient(180deg, #e6e6e6, #d4d4d4);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

/* عند احتواء أيقونة داخل الزر */
.home-btn i {
  font-size: 15px;
  color: #555;
}


        .stylish-edit {
            background-color: #F5F5F5;
            border: 2px solid #FFC75A;
            border-radius: 8px;
            padding: 6px 10px;
            outline: none;
            width: 100%;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
            transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
            font-family: inherit;
            font-size: inherit;
        }

        .stylish-edit:focus {
            border-color: #FFB347;
            box-shadow: 0 0 5px rgba(255, 179, 71, 0.4);
        }

        .stylish-edit2 {
            background-color: #F5F5F5;
            border: 2px solid #6697CB;
            border-radius: 8px;
            padding: 6px 10px;
            outline: none;
            width: 100%;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
            transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
            font-family: inherit;
            font-size: inherit;
        }

        .stylish-edit2:focus {
            border-color: #5885B0;
            box-shadow: 0 0 5px rgba(255, 179, 71, 0.4);
        }

        .purchase-button {
            background: linear-gradient(135deg, #76A6FF, #4B8DFF);
            color: white;
            border: none;
            border-radius: 10px;
            padding: 10px 20px;
            font: inherit;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }

        .purchase-button::before {
            content: "🛒 ";
            margin-right: 5px;
        }

        .purchase-button:hover {
            background: linear-gradient(135deg, #4B8DFF, #2F7CFF);
            box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
        }

        .purchase-button:active {
            transform: scale(0.98);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        }

        .close-button {
            background-color: #E0E0E0;
            color: #333;
            border: none;
            border-radius: 10px;
            padding: 10px 20px;
            font: inherit;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .close-button:hover {
            background-color: #CCCCCC;
        }

        .close-button::before {
            content: "❌ ";
            margin-right: 5px;
        }

        .pretty-button {
            background-color: #E0E0E0;
            color: maroon !important;
            border: none;
            border-radius: 10px;
            padding: 10px 20px;
            font: inherit;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .pretty-button:hover {
            background-color: #CCCCCC;
        }

        .pretty-button2 {
            background-color: #6698CC;
            color: maroon !important;
            border: none;
            border-radius: 10px;
            padding: 10px 20px;
            font: inherit;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .pretty-button2:hover {
            background-color: #5B88B6;
        }


/* زر عرض كل الطلبات */
.pretty-buttonall {
    background: linear-gradient(90deg, #4a90e2, #007aff);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 122, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pretty-buttonall:hover {
    background: linear-gradient(90deg, #3b7adf, #006ee6);
    transform: translateY(-2px);
}

/* زر الطلبات المقبولة */
.pretty-buttongreen {
    background: linear-gradient(90deg, #28a745, #34d058);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pretty-buttongreen:hover {
    background: linear-gradient(90deg, #23923d, #2cb64d);
    transform: translateY(-2px);
}

/* زر الطلبات في الانتظار */
.pretty-buttonyellow {
    background: linear-gradient(90deg, #fbc02d, #ffeb3b);
    color: #3e3e3e;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(251, 192, 45, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pretty-buttonyellow:hover {
    background: linear-gradient(90deg, #f9b519, #ffe633);
    transform: translateY(-2px);
}

/* زر الطلبات المرفوضة */
.pretty-buttonred {
    background: linear-gradient(90deg, #e53935, #ff5252);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(229, 57, 53, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pretty-buttonred:hover {
    background: linear-gradient(90deg, #d32f2f, #ff3b3b);
    transform: translateY(-2px);
}


        .login-button {
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 10px;
            padding: 10px 20px;
            font: inherit;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .login-button:hover {
            background-color: #43A047;
        }

        .login-button::before {
            content: "🔒 ";
            margin-right: 5px;
        }

        .login-button:disabled {
            background-color: #ccc;
            color: #666;
            cursor: not-allowed;
            opacity: 0.7;
        }

        .logout-button {
            background-color: #E53935;
            color: white;
            border: none;
            border-radius: 10px;
            padding: 10px 20px;
            font: inherit;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .logout-button:hover {
            background-color: #C62828;
        }

        .logout-button::before {
            content: "🚪 ";
            margin-right: 5px;
        }


        .modern-dbgrid table {

            width: 100%;
            border-collapse: collapse;
            font-family: 'Cairo', sans-serif;
            font-size: 12px;
            color: #333;
            border: 1px solid #ccc;
        }

        .modern-dbgrid th {
            background-color: #4CAF50;
            color: white;
            font-weight: bold;
            padding: 10px;
            border: 1px solid #ccc;
            text-align: center;
        }

        .modern-dbgrid td {
            padding: 8px;
            border: 1px solid #eee;
            text-align: center;
        }

        .modern-dbgrid tr:nth-child(even) {
            background-color: #f9f9f9;
        }

        .modern-dbgrid tr:hover {
            background-color: #e3f2fd;
            transition: background-color 0.3s ease;
        }


        .rejected-cell {

            background-color: #ffebee;
            color: #c62828;
            font-weight: bold;
        }


        .product-card {
            position: relative;
            background: linear-gradient(to bottom, #FFDC7A, #AF9754);
            border-radius: 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            margin: 10px;
            padding-bottom: 12px;
            font-family: 'Cairo', sans-serif;
            text-align: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .product2-card {
            position: relative;
            background: linear-gradient(to bottom, #99B4D1, #73879C);
            border-radius: 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            margin: 10px;
            padding-bottom: 12px;
            font-family: 'Cairo', sans-serif;
            text-align: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .product-card:hover {
            transform: scale(1.03);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
            background-color: #f9f9f9;
        }

        .product2-card:hover {
            transform: scale(1.03);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
            background-color: #f9f9f9;
        }

        .product-img {
            width: 100%;
            height: 150px;
            object-fit: cover;
            border-bottom: 1px solid #eee;
            border-radius: 8px 8px 0 0;
        }

        .product2-img {
            width: 100%;
            height: 120px;
            object-fit: cover;
            border-bottom: 1px solid #eee;
            border-radius: 8px 8px 0 0;
        }

        .product-title {
            padding-top: 10px;
            font-size: 17px;
            color: white;
            font-weight: bold;
        }

        .pproduct-title {
            padding-top: 10px;
            font-size: 13px;
            color: #FFDC7A;
            font-weight: bold;
        }

        .product-price {
            font-size: 14px;
            color: #FFDC7A;
            margin-top: 4px;
        }

        .buy-button {
            margin-top: 10px;
            padding: 8px 16px;
            background-color: #1e90ff;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: background-color 0.3s;
            font-family: 'Cairo', sans-serif;
        }

        .buy-button:hover {
            background-color: #0073e6;
        }

        .watermark {
            position: absolute;
            top: 8px;
            left: 8px;
            background-color: rgba(0, 0, 0, 0.4);
            color: white;
            font-size: 10px;
            padding: 3px 8px;
            border-radius: 4px;
        }

        .search-box-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
        }

        .search-box {
            background-color: #ffffff;
            border: 2px solid #CAAE61;
            border-radius: 25px;
            padding: 10px 20px;
            font-family: 'Cairo', sans-serif;
            font-size: 16px;
            outline: none;
            transition: box-shadow 0.3s ease;
        }

        .search-box:focus {
            box-shadow: 0 0 8px rgba(220, 180, 60, 0.5);
        }

        .search-button {
            font-size: 17px;
            color: #007bff;
            cursor: pointer;
        }

.wallet-card {
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  cursor: text;
}

.wallet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.wallet-add {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border-left: 4px solid #1e8449;
}

.wallet-withdraw {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border-left: 4px solid #922b21;
}

.wallet-card .wallet-title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
}

.wallet-card .wallet-amount {
  font-size: 16px;
  font-weight: 700;
  margin-top: 6px;
}

.wallet-card:hover .wallet-amount {
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}
