/* login-users.css - Custom stylesheet for Login, User Management, and Approvals */

/* Login Overlay Styles */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #092c1a 0%, #061a10 50%, #09203a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 35px 30px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.login-logo {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: var(--green, #0f5d31);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 38px;
  font-weight: 900;
  margin: 0 auto 15px;
  box-shadow: 0 10px 24px rgba(15, 93, 49, 0.3);
}

.login-card h2 {
  margin: 0 0 5px;
  font-size: 26px;
  color: #10241b;
  font-weight: 800;
}

.login-card p {
  margin: 0 0 25px;
  color: var(--muted, #6c7771);
  font-size: 14px;
}

.login-form {
  display: grid;
  gap: 15px;
  text-align: right;
}

.login-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  color: #24382d;
}

.login-form input, .login-form select {
  border: 1px solid var(--line, #dfe7e2);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
  outline: none;
  font-size: 15px;
  transition: all 0.2s ease;
}

.login-form input:focus, .login-form select:focus {
  border-color: var(--green, #0f5d31);
  box-shadow: 0 0 0 3px rgba(15, 93, 49, 0.1);
}

.login-error {
  background: #fde8e8;
  color: #b4232a;
  border: 1px solid #fbd5d5;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 15px;
  display: none;
  text-align: right;
}

.quick-users {
  margin-top: 25px;
  border-top: 1px solid var(--line, #dfe7e2);
  padding-top: 15px;
  text-align: right;
}

.quick-users span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #6c7771);
  margin-bottom: 10px;
}

.quick-users-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-user-btn {
  background: #f0f4f2;
  border: 1px solid var(--line, #dfe7e2);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #24382d;
  transition: all 0.2s ease;
}

.quick-user-btn:hover {
  background: #e1e9e5;
  border-color: var(--green, #0f5d31);
}

/* User Badge & Top Actions styling */
.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green3, #eaf4ee);
  border: 1px solid #cfe4d6;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green, #0f5d31);
}

.user-badge .role {
  background: var(--green, #0f5d31);
  color: #fff;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 800;
}

/* Custom Checkbox Group in User Form */
.checkbox-group {
  display: grid;
  gap: 8px;
  text-align: right;
}

.checkbox-group .label {
  font-weight: 700;
  font-size: 13px;
  color: #24382d;
  margin-bottom: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  background: #f7faf8;
  border: 1px solid var(--line, #dfe7e2);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.checkbox-label:hover {
  background: #eaf4ee;
  border-color: var(--green, #0f5d31);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green, #0f5d31);
  cursor: pointer;
  margin: 0;
}

/* Actions in Users Table */
.action-buttons {
  display: flex;
  gap: 6px;
}

.btn-icon {
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-icon.edit {
  background: #eaf4ee;
  color: var(--green, #0f5d31);
}

.btn-icon.edit:hover {
  background: var(--green, #0f5d31);
  color: #fff;
}

.btn-icon.toggle-active {
  background: #fde8e8;
  color: var(--red, #b4232a);
}

.btn-icon.toggle-active.activate {
  background: #eef5f0;
  color: var(--green, #0f5d31);
}

.btn-icon.toggle-active:hover {
  background: var(--red, #b4232a);
  color: #fff;
}

.btn-icon.toggle-active.activate:hover {
  background: var(--green, #0f5d31);
  color: #fff;
}

/* Approvals Table Action Buttons */
.approval-actions {
  display: flex;
  gap: 6px;
}

.btn-approve {
  border: 0;
  background: var(--green, #0f5d31);
  color: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-approve:hover {
  background: var(--green2, #197745);
}

.btn-reject {
  border: 0;
  background: var(--red, #b4232a);
  color: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-reject:hover {
  background: #961b21;
}

/* Media Query Adaptations */
@media (max-width: 719px) {
  .top-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}

/* Sub navigation tabs inside payments view */
.sub-nav-link {
  font-size: 13px !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  white-space: nowrap;
  box-shadow: none !important;
  display: inline-block;
}

.sub-nav-link.active {
  background: var(--green, #0f5d31) !important;
  color: #fff !important;
}
