
body {
    background-color: #e8e8e8;
    font-family: var(--site-font-family);
    font-size: 16px;
    margin: 0 auto;
    padding: 0;
    direction: rtl;
    font-weight: lighter;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    text-align: right;
}




/* === تحسين التنقل إلى الأقسام المرتبطة بالنافبار === */
[id^="category-"] {
  scroll-margin-top: 100px; /* عدّل الرقم حسب ارتفاع الهيدر */
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 10px 20px;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  margin-bottom: 20px;
  position: fixed;
  right: 20px;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px 20px;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  margin-bottom: 20px;
}

.info-message {
  background-color: #d1ecf1;
  color: #0c5460;
  padding: 10px 20px;
  border: 1px solid #bee5eb;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* === تنسيقات لوحة التحكم الخاصة بالمدير === */
     
.tabs {
        display: flex;
		justify-content: right;
		flex-wrap: wrap;
        gap: 2px;
        margin-bottom: 0px;
}
.tabs a {
        padding: 10px 20px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        background: #eee;
        color: #333;
        border: 1px solid #ccc;
        border-bottom: none;
        text-decoration: none;
        transition: background 0.3s;
}
.tabs a:hover {
        background: #ddd;
}
.tabs a.active {
        background: white;
        color: #4167b9;
        border-bottom: 2px solid white;
        font-weight: bold;
}
.color-preview {
        display: inline-block;
        width: 30px;
        height: 30px;
        vertical-align: middle;
        margin-left: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
}
.tab-content {
    border: 1px solid #ccc;
    padding: 20px;
    background: #fff;
}
.tabs a { padding: 10px 10px;
	background: #ddd;
	color: #333;
	border-radius: 6px;
	text-decoration: none;
	text-align: center;
	width: 141px;
}
.tabs a.active { background: #4167b9;
    color: white;
}
table {
    width: 100%;
    border-collapse: collapse;
	justify-content: center;
	margin: 20px auto;
	overflow-x: auto;
}
th, td {
    padding: 8px;
    border: 1px solid #ccc;
    text-align: center;
}
forms { background: white;
    padding: 20px;
	margin: 10px auto 20px;
	border: 1px solid #ccc;
	border-radius: 10px;
	max-width: 100%;
	width: 1430px;
}
label { display: block;
    margin: 30px 0 10px 0;
	font-weight: normal;
	font-family: var(--site-font-family);
}


.success { background: #d4edda;
   padding: 10px;
   border-radius: 6px;
   color: #155724;
   margin-bottom: 15px;
}

.container {
  width: 1430px;
  margin: 0 auto;
  max-width: 100%;
}

.page-title-wrapper {
  padding: 20px 0 10px;
  background: transparent;
  direction: rtl;
}

.page-title {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin: 0;
  text-align: right;
}

.breadcrumb-wrapper {
  background: transparent;
  margin: 30px;
  direction: rtl;
  font-size: 14px;
}

.breadcrumb {
  text-align: right;
}

.breadcrumb a {
  color: #333;
  text-decoration: none;
  margin: 0 5px;
}

.breadcrumb .separator {
  margin: 0 5px;
  color: #aaa;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 6px;
    text-align: right;
    margin-bottom: 20px;
    font-weight: bold;
    animation: fadeOut 0.5s ease-in-out 4s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; height: 0; margin: 0; padding: 0; }
}
/* ==== تنسيقات صفحات تسجيل الدخول والتسجيل ==== */
.auth-body {
  background-color: #f0f2f5;
  font-family: var(--site-font-family);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  direction: rtl;
}

.form-box {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

.form-box h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

.form-box input[type="text"],
.form-box input[type="password"],
.form-box input[type="email"],
.form-box input[type="tel"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.form-box input[type="submit"] {
  width: 100%;
  padding: 10px;
  background-color: #7b2ff7;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.form-box input[type="submit"]:hover {
  background-color: #9050f7;
}
@media (max-width: 1050px) {
	form {
		max-width: 95%;
		margin-top: 10px;
	}
}
@media (max-width: 1050px) {
	.tabs a {
		margin-right: 10px;
	}
}
@media (max-width: 1050px) {
	.container {
		max-width: 95%;
	}
}
