/* --------------------------------------------------------------
   ORANGE HR ENROLMENT — GLOBAL CARD + TITLES
-------------------------------------------------------------- */

.orange-title {
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 700;
}

/* Generic white cards */
.orange-enrol-card,
.orange-hr-dashboard,
.orange-hr-table-card,
.orange-hr-detail-card,
.orange-admin-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  margin-bottom: 22px;
}

/* Section blocks inside forms */
.orange-section {
  border-top: 3px solid #f36b21;
  padding-top: 16px;
  margin-top: 24px;
}

.orange-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Form fields */
.orange-field {
  margin-bottom: 12px;
}

.orange-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 13px;
}

.orange-field input[type="text"],
.orange-field input[type="email"],
.orange-field input[type="date"],
.orange-field input[type="number"],
.orange-field input[type="file"],
.orange-field textarea,
.orange-field select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  font-size: 13px;
}

/* File input */
.orange-field input[type="file"] {
  padding: 6px 10px;
  background: #fafafa;
  cursor: pointer;
}

.orange-field input[type="file"]::file-selector-button {
  padding: 6px 14px;
  margin-right: 10px;
  border-radius: 999px;
  border: 1px solid #f36b21;
  background: #f36b21;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

/* File name display */
.orange-file-name {
  margin-top: 4px;
  font-size: 12px;
  color: #555;
  word-break: break-all;
}

/* Two-column layout */
.orange-two-cols {
  display: flex;
  gap: 12px;
}

.orange-two-cols .orange-field {
  flex: 1;
}

/* Checkbox grid */
.orange-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 12px;
}

.orange-checkbox-grid label {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  gap: 6px;
}

/* Required */
.orange-required {
  color: #e53935;
}

/* Buttons */
.orange-btn-primary,
.orange-btn-secondary {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.orange-btn-primary {
  background: #f36b21;
  color: #fff;
}

.orange-btn-primary:hover {
  background: #d95e1b;
}

.orange-btn-secondary {
  background: #fff;
  border: 1px solid #f36b21;
  color: #f36b21;
}

.orange-btn-secondary:hover {
  background: #fdf1e9;
}

.orange-form-footer {
  margin-top: 20px;
}

/* Success message */
.orange-success-message {
  padding: 10px 14px;
  background: #d4edda;
  color: #155724;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 14px;
}

/* --------------------------------------------------------------
   HR DASHBOARD
-------------------------------------------------------------- */

.orange-hr-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.orange-stat-card {
  flex: 1;
  min-width: 150px;
  background: #f7f9ff;
  border-radius: 10px;
  padding: 14px 16px;
}

.orange-stat-label {
  font-size: 12px;
  color: #555;
}

.orange-stat-value {
  font-size: 20px;
  font-weight: 700;
}

.orange-stat-button {
  text-align: right;
}

.orange-stat-button a {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #f36b21;
    color: #f36b21;
    background: #fff;
    margin-left: 8px;
    font-weight: 600;
}

/* HR Table */
.orange-hr-table {
  width: 100%;
  border-collapse: collapse;
}

.orange-hr-table th,
.orange-hr-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 13px;
}

.orange-hr-table th {
  background: #f5f7ff;
  font-weight: 600;
}

/* Badges */
.orange-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.orange-badge-pending_hr {
  background: #fff3cd;
  color: #856404;
}

.orange-badge-approved_hr {
  background: #d4edda;
  color: #155724;
}

/* --------------------------------------------------------------
   DETAIL PANEL
-------------------------------------------------------------- */

.orange-hr-detail-overlay {
  background: rgba(0,0,0,0.35);
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 15px;
  z-index: 9999;
}

.orange-detail-close {
  float: right;
  margin-bottom: 12px;
  border: 1px solid #666;
  background: #eee;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 999px;
}

.orange-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.orange-detail-grid > div {
  flex: 1;
  min-width: 260px;
}

/* --------------------------------------------------------------
   DEPENDANTS
-------------------------------------------------------------- */

.orange-dependant-block {
  background: #fafafa;
  padding: 20px 15px;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  margin-bottom: 20px;
}

.orange-dependant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.orange-dependant-title {
  font-weight: 600;
  font-size: 16px;
}

.orange-remove-dependant {
  color: #d9534f;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
}

/* --------------------------------------------------------------
   HR LOGIN PAGE
-------------------------------------------------------------- */

.orange-login-wrapper {
  max-width: 720px;
  margin: 60px auto;
  padding: 20px 15px;
}

.orange-login-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.orange-login-header {
  margin-bottom: 22px;
}

.orange-login-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}

.orange-login-subtitle {
  font-size: 14px;
  color: #555;
}

.orange-login-error {
  background: #fdeaea;
  border-left: 4px solid #e53935;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.orange-login-button {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  margin-top: 10px;
}

.orange-login-footer {
  text-align: center;
  margin-top: 20px;
  color: #555;
}

/* --------------------------------------------------------------
   ADMIN STYLE
-------------------------------------------------------------- */

.orange-admin-wrap .orange-admin-subtitle {
  color: #666;
  margin-top: -4px;
}

.orange-admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.orange-admin-kpi-card {
  background: #fff;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.orange-kpi-icon {
  font-size: 22px;
}

.orange-kpi-label {
  font-size: 12px;
  color: #555;
}

.orange-kpi-value {
  font-size: 20px;
  font-weight: 700;
}

/* --------------------------------------------------------------
   MOBILE RESPONSIVE
-------------------------------------------------------------- */

@media (max-width: 768px) {

  .orange-two-cols {
    flex-direction: column;
  }

  .orange-hr-stats {
    flex-direction: column;
  }

  .orange-admin-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .orange-hr-table-card {
    overflow-x: auto;
  }

  .orange-hr-table {
    min-width: 650px;
  }

}

@media (max-width: 550px) {
  .orange-admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Greeting Box Styles */
.orange-hr-greeting {
    background: #FFF6EB;
    padding: 18px 22px;
    border-left: 6px solid #FF8A3D;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 17px;
    line-height: 1.5;
    color: #333;
    opacity: 0;
    transform: translateY(10px);
    animation: greetingFadeUp 0.8s ease-out forwards;
}

/* Greeting Fade + Slide Up Animation */
@keyframes greetingFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Extra subtle glow animation */
.animated-greeting {
    animation: greetingFadeUp 0.8s ease-out forwards, softGlow 4s ease-in-out infinite;
}

@keyframes softGlow {
    0% { box-shadow: 0 0 0px rgba(255, 138, 61, 0.15); }
    50% { box-shadow: 0 4px 16px rgba(255, 138, 61, 0.25); }
    100% { box-shadow: 0 0 0px rgba(255, 138, 61, 0.15); }
}
