/* Custom styles for HR Forms System */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
  --font-arabic: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--font-arabic);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Rating Scale (1 to 5) */
.rating-pill-group {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  max-width: 380px;
}

.rating-pill {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.rating-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rating-pill .rating-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background-color: #ffffff;
  color: #334155;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.15s ease-in-out;
}

.rating-pill input[type="radio"]:hover + .rating-box {
  border-color: #94a3b8;
  background-color: #f8fafc;
}

.rating-pill input[type="radio"]:checked + .rating-box {
  border-color: #0f172a;
  background-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.rating-pill input[type="radio"]:focus-visible + .rating-box {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

/* Clean Radio List Style (No background clutter) */
.clean-radio-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  background-color: #ffffff;
}

.clean-radio-item:hover {
  border-color: #94a3b8;
  background-color: #fcfcfc;
}

.clean-radio-item input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #0f172a;
  cursor: pointer;
}

.clean-radio-item.selected,
.clean-radio-item:has(input[type="radio"]:checked) {
  border-color: #0f172a;
  background-color: #f8fafc;
  font-weight: 500;
  color: #0f172a;
}

/* Clean Input Style */
.clean-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  color: #0f172a;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.clean-input:focus {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.clean-input::placeholder {
  color: #94a3b8;
}

/* Clean Department Grid */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
}

@media (min-width: 640px) {
  .dept-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .dept-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Print optimizations */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }
  .no-print {
    display: none !important;
  }
  .print-page {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .page-break {
    page-break-before: always;
  }
}

