/* 1. إعدادات أساسية */
* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f9f9f9;
  color: #212121;
  margin: 0;
  padding: 0;
  overscroll-behavior-y: contain;
}

/* 2. حاوية البطاقات الأفقية (المسؤولة عن التجاوز) */
.horizontal-scroll {
  display: flex; /* التأكد من أن العناصر تظهر بجانب بعضها */
  flex-direction: row;
  overflow-x: auto;
  gap: 16px; /* مسافة بين البطاقات */
  padding-bottom: 20px;
  width: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-top: 5px;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

/* 3. تنسيق البطاقة الواحدة */
.book-card {
  flex: 0 0 176px; /* عرض ثابت للبطاقة لمنع الانكماش */
  height: 224px;   /* ارتفاع ثابت */
  background: white;
  border-radius: 24px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #eee;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.book-card:hover {
  border-color: rgb(34 197 94); /* أزرق عند التمرير */
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 4. عناصر الحالة داخل البطاقة */
.status-dot {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: #a0a0a0;
}

.status-dot.active {
  background: #22c55e;
  color: white;
}

.status-yellow {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #eab308;
  opacity: 0;
}
.status-yellow.active {
  opacity: 1;
}

/* 5. تنسيق منطقة الملاحظات في المودال */
.notes-area {
  width: 100%;
  background: #f4f4f4;
  border-radius: 16px;
  padding: 16px;
  border: 2px solid transparent;
  outline: none;
  resize: none;
  min-height: 120px;
  transition: all 0.3s ease;
}

.notes-area:focus {
  border-color: #2563eb;
  background: white;
}

.nav-btn{
    opacity: 0.5;  
    display: flex;
    flex-direction: column;
}

.active{
    opacity: 1 !important;
}