/* Glassmorphism Stylesheet for Sanarate Municipality HR Portal */

:root {
  --primary-gradient: linear-gradient(135deg, #0047ab 0%, #00327d 100%);
  --secondary-gradient: linear-gradient(135deg, #1b6d24 0%, #0c4d13 100%);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* Background gradient styling */
body {
  background: linear-gradient(135deg, #f0f4ff 0%, #f9f9fb 50%, #e6f7ed 100%);
  background-attachment: fixed;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(195, 198, 213, 0.6);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(115, 119, 132, 0.8);
}

/* Glassmorphism Panel Wrapper */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px -10px rgba(13, 28, 46, 0.06);
  border-radius: 1.25rem; /* 20px */
}

/* Glassmorphism Floating Sidebar */
.glass-sidebar {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  box-shadow: 4px 0 24px -10px rgba(13, 28, 46, 0.05);
}

/* Active Nav Links styling */
.nav-link-active {
  background: var(--primary-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 71, 171, 0.2);
  transform: translateY(-1px);
}
.nav-link-active span {
  font-variation-settings: 'FILL' 1 !important;
}

/* Custom Interactive Cards */
.interactive-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.interactive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -10px rgba(13, 28, 46, 0.1);
  border-color: rgba(0, 71, 171, 0.2);
}

/* Floating animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Custom Input Field Focus Glows */
input, textarea, select {
  transition: all 0.2s ease;
  border-radius: 0.75rem !important; /* 12px */
}
input:focus, textarea:focus, select:focus {
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(0, 71, 171, 0.15) !important;
  border-color: #0047ab !important;
  background-color: #ffffff !important;
}

/* Wizard Drag and Drop Uploader */
.upload-box {
  border: 2px dashed rgba(115, 119, 132, 0.4);
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.5);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.upload-box:hover {
  border-color: #0047ab;
  background-color: rgba(230, 238, 255, 0.6);
  transform: scale(1.01);
}
.upload-box.drag-over {
  border-color: #0047ab;
  background-color: rgba(218, 226, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(0, 71, 171, 0.1);
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}
.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 50, 125, 0.7);
  backdrop-filter: blur(2px);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 20;
}
.upload-box:hover .preview-overlay {
  opacity: 1;
}

/* Tab/View Transitions */
.transition-view {
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}
.view-hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(8px);
}

/* Modals Backdrop blurring */
.modal-backdrop {
  background-color: rgba(13, 28, 46, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Document Thumbnail details card */
.document-preview-card {
  transition: all 0.2s ease;
  border-radius: 1rem;
}
.document-preview-card:hover {
  border-color: #0047ab;
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(13, 28, 46, 0.08);
}

/* Stepper Progress bar custom look */
.stepper-bubble {
  transition: all 0.3s ease;
}

/* Distinctive and Eye-Catching Form Fields */
.form-field-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1.25rem;
  border-radius: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-field-card:focus-within {
  border-color: rgba(0, 71, 171, 0.3);
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 15px -3px rgba(0, 71, 171, 0.05);
}

.form-field-label {
  color: #003a56 !important; /* Tertiary deep blue for titles */
  font-size: 0.875rem !important; /* 14px */
  font-weight: 800 !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-field-label span.material-symbols-outlined {
  font-size: 1.125rem !important;
  color: #0047ab !important; /* Vibrant primary blue for field icons */
}

