/* app/assets/stylesheets/application.css */
@import "bootstrap";

/* Attribute Form Controls Styles */
.controls-radio-group {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1rem;
  background-color: #f8f9fa;
}

.controls-radio-group .form-check {
  margin-bottom: 0.5rem;
}

.controls-radio-group .form-check:last-child {
  margin-bottom: 0;
}

.controls-radio-group .form-check-input:checked + .form-check-label {
  font-weight: 600;
  color: #0d6efd;
}

/* Modal form improvements */
#createAttributeModal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

#createAttributeModal .form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

#createAttributeModal .form-control,
#createAttributeModal .form-select {
  border-radius: 0.375rem;
  border: 1px solid #ced4da;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#createAttributeModal .form-control:focus,
#createAttributeModal .form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Permission loader - always hidden by default */
.permission-loader {
  display: none !important;
}

.permission-icon {
  display: inline-block !important;
}

/* Flash message positioning */
#flash {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

/* Add your custom CSS below */
body {
  font-family: Arial, sans-serif;
}
html, body { height: 100%; }

body.has-blur-bg {
  position: relative;           /* create stacking context */
  z-index: 0;
  background: none;             /* ensure no competing bg */
}

/* Optional: soft tint behind content (no background image — avoids broken asset requests) */
body.has-blur-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.25); /* or rgba(0,0,0,0.25) to darken */
  z-index: -1;
  pointer-events: none;
}


/* Organization Tree Page Specific Styles */
.org-tree-bg {
  background: #00000040  !important;
  min-height: 600px;
  padding: 40px 0;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.org-tree-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(1px);
  z-index: 0;
}

.org-tree-bg > * {
  position: relative;
  z-index: 1;
}

.org-tree-bg h2 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.org-tree-bg h2 i {
  color: #f3ec13;
  text-shadow: 0 0 10px rgba(243, 236, 19, 0.6);
}

.org-tree-bg .btn {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #2c3e50;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.org-tree-bg .btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border-color: #fff;
} 

.modal-backdrop {
  z-index: 1040 !important;
}
.modal {
  z-index: 1050 !important;
}

/* Organization Tree Custom Styles */
.organization-tree {
  padding: 1rem 0;
}

.tree-node {
  transition: all 0.2s ease-in-out;
  margin-bottom: 0.75rem;
}

.tree-node:hover {
  transform: translateX(2px);
}

.tree-node .card {
  transition: all 0.2s ease-in-out;
  margin-bottom: 0;
}

.tree-node .card-body {
  padding: 0.75rem 1rem;
}

.tree-node:hover .card {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Optimize tree children spacing */
.tree-node .tree-children {
  margin-top: 0.5rem;
  padding-left: 1rem;
}

.tree-icon {
  width: 24px;
  text-align: center;
}

.border-start {
  border-left: 2px solid #e9ecef !important;
}

/* Custom badge styles */
.badge {
  font-size: 0.75em;
  padding: 0.35em 0.65em;
}

/* Card hover effects */
.card {
  transition: all 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-1px);
}

/* Breadcrumb styling */
.breadcrumb {
  background-color: transparent;
  padding: 0.75rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #6c757d;
}

/* Statistics cards */
.card-body .row .col-6 {
  padding: 0.5rem;
}

.card-body .row .col-6 h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Quick actions styling */
.btn-group .btn {
  border-radius: 0.375rem !important;
}

.btn-group .btn:not(:last-child) {
  margin-right: 0.25rem;
}

/* Modal improvements */
.modal-lg {
  max-width: 800px;
}

.modal-body {
  padding: 1.5rem;
  max-height: 90vh;
  overflow-y: auto;
}

/* Prevent modal blinking and improve stability */
.modal {
  z-index: 1050 !important;
  backdrop-filter: blur(5px);
}

.modal-backdrop {
  z-index: 1040 !important;
}

.modal-content {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 0.5rem;
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
  background-color: #f8f9fa;
  border-radius: 0.5rem 0.5rem 0 0;
}

/* Prevent hover effects on modal content */
.modal * {
  pointer-events: auto;
}

.modal-content:hover {
  transform: none !important;
}

/* Disable any transitions that might cause blinking */
.modal.fade .modal-dialog {
  transition: transform 0.15s ease-out;
}

.modal.show .modal-dialog {
  transform: none;
}

/* Form improvements */
.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Alert improvements */
.alert {
  border: none;
  border-radius: 0.5rem;
}

.alert-info {
  background-color: #e7f3ff;
  color: #0c5460;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .card-header .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
  
  .btn-group {
    width: 100%;
  }
  
  .btn-group .btn {
    flex: 1;
  }
}

/* Horizontal Mind Map Organization Tree Styles */
.org-horizontal-tree,
.org-horizontal-tree ul {
  padding-top: 40px;
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  list-style: none;
  margin-bottom: 0;
}

.org-horizontal-tree li {
  text-align: center;
  position: relative;
  margin: 0 30px;
  padding: 0;
}

/* Enhanced spacing and layout */
.org-tree-bg .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.org-tree-bg .row {
  margin: 0;
}

.org-tree-bg .col {
  padding: 0;
}

/* Sidebar Navigation Styling */
.sidebar-nav .nav-item {
  margin-bottom: 0.25rem;
}

.sidebar-nav .nav-link {
  border-radius: 0.375rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-nav .nav-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.sidebar-nav .nav-link.bg-primary.bg-opacity-10 {
  background-color: rgba(13, 110, 253, 0.15) !important;
  border-left: 3px solid #0d6efd;
}

.sidebar-nav .nav-link.bg-primary.bg-opacity-10:hover {
  background-color: rgba(13, 110, 253, 0.2) !important;
}

.sidebar-nav .nav-link i[style*="width: 20px"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-nav .collapse .nav-link {
  font-size: 0.9em;
}

.sidebar-nav .nav-link .flex-grow-1 {
  flex: 1 1 auto;
  min-width: 0;
}

/* Organization Tree Scrollable Container */
.organization-tree-scrollable {
  max-height: calc(100vh - 320px);
  min-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 20px;
  background-color: #fff;
  margin-top: 0;
}

/* Ensure card-body doesn't cause outer scroll */
.organization-trees-index .card-body {
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding: 1.25rem;
}

/* Optimize card spacing for organization trees */
.organization-trees-index .card {
  margin-bottom: 0;
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

.organization-trees-index .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.organization-trees-index .card-header {
  flex-shrink: 0;
}

.organization-trees-index .row.g-3 {
  flex-shrink: 0;
  margin-bottom: 1rem !important;
}

.organization-trees-index .alert {
  flex-shrink: 0;
  margin-bottom: 1rem !important;
}

/* Custom scrollbar for organization tree */
.organization-tree-scrollable::-webkit-scrollbar {
  width: 8px;
}

.organization-tree-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.organization-tree-scrollable::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.organization-tree-scrollable::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Organization Tree Show Page - Scrollable Details Container */
.organization-trees-show .card {
  margin-bottom: 0;
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

.organization-trees-show .card-header {
  flex-shrink: 0;
}

.organization-trees-show .card-body.organization-tree-details-scrollable {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem;
  max-height: calc(100vh - 280px);
}

/* Custom scrollbar for organization tree show details */
.organization-tree-details-scrollable::-webkit-scrollbar {
  width: 8px;
}

.organization-tree-details-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.organization-tree-details-scrollable::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.organization-tree-details-scrollable::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Optimize spacing in show page */
.organization-trees-show .row.g-2 {
  margin-bottom: 0;
}

.organization-trees-show .card.border-0 {
  margin-bottom: 0.5rem;
}

.organization-trees-show .card.border-0:last-child {
  margin-bottom: 0;
}

.organization-trees-show .card.border-0 .card-body {
  padding: 0.5rem 0.75rem;
}

/* Remove ALL bottom padding/margin from card-body and its children */
.organization-trees-show .card.border-0 .card-body > *:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.organization-trees-show .card.border-0 .card-body .row:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.organization-trees-show .card.border-0 .card-body .row:last-child > [class*="col-"] {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.organization-trees-show .card.border-0 .card-body .row:last-child > [class*="col-"] > *:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.organization-trees-show .card.border-0 .card-body .row:last-child > [class*="col-"]:last-child p.text-muted {
  margin-bottom: 0 !important;
}

.organization-trees-show .card.border-0 .card-body .row:last-child > [class*="col-"]:last-child p:last-child {
  margin-bottom: 0 !important;
}

/* Reduce spacing in detail cards */
.organization-trees-show .card-title {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.organization-trees-show .card.border-0 .row {
  margin-bottom: 0;
}

.organization-trees-show .card.border-0 p.mb-2 {
  margin-bottom: 0.25rem !important;
  line-height: 1.3;
}

.organization-trees-show .card.border-0 p.text-muted {
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

/* Ensure last text-muted in each column has no bottom margin */
.organization-trees-show .card.border-0 .row > [class*="col-"] p.text-muted:last-child {
  margin-bottom: 0 !important;
}

.organization-trees-show .card.border-0 .row > [class*="col-"]:last-child p.text-muted {
  margin-bottom: 0 !important;
}

/* Make cards fit content exactly */
.organization-trees-show .card.border-0 {
  margin-bottom: 0.5rem;
}

.organization-trees-show .card.border-0:last-child {
  margin-bottom: 0;
}

/* Compact child nodes grid */
.organization-trees-show .row.g-3 {
  margin-bottom: 0;
}

.organization-trees-show .row.g-3 > [class*="col-"] {
  margin-bottom: 0.5rem;
}

/* Optimize breadcrumb spacing */
.organization-trees-show .breadcrumb {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
}

/* Better use of space in details cards */
.organization-trees-show .col-lg-8,
.organization-trees-show .col-lg-4 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Make cards fit content - no extra height */
.organization-trees-show .card.border-0 {
  height: auto;
  min-height: auto;
  display: flex;
  flex-direction: column;
}

.organization-trees-show .card.border-0 .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.organization-trees-show .card.border-0 .card-body > *:last-child {
  margin-bottom: 0 !important;
}

/* Compact layout - reduce gaps */
.organization-trees-show .row.g-2 {
  --bs-gutter-y: 0.5rem;
  --bs-gutter-x: 0.5rem;
}

/* Ensure no extra space in columns */
.organization-trees-show .col-lg-8 > .row,
.organization-trees-show .col-lg-4 > .row {
  margin-bottom: 0;
}

.organization-trees-show .col-lg-8 > .row > .col-12:last-child .card.border-0,
.organization-trees-show .col-lg-4 > .row > .col-12:last-child .card.border-0 {
  margin-bottom: 0;
}

/* Reduce white space in basic information */
.organization-trees-show .card.border-0 .row > [class*="col-"] {
  margin-bottom: 0.25rem;
}

.organization-trees-show .card.border-0 .row:last-child {
  margin-bottom: 0 !important;
}

.organization-trees-show .card.border-0 .row:last-child > [class*="col-"] {
  margin-bottom: 0 !important;
}

.organization-trees-show .card.border-0 .row:last-child > [class*="col-"] p {
  margin-bottom: 0 !important;
}

.organization-trees-show .card.border-0 .row:last-child > [class*="col-"] span {
  margin-bottom: 0 !important;
}

/* Remove bottom margin from last row in each card */
.organization-trees-show .card.border-0 .card-body .row:last-of-type {
  margin-bottom: 0 !important;
}

.organization-trees-show .card.border-0 .card-body .row:last-of-type > [class*="col-"] {
  margin-bottom: 0 !important;
}

/* Compact hierarchy and child nodes sections */
.organization-trees-show .row.g-3 {
  gap: 0.5rem !important;
}

/* Optimize child node cards */
.organization-trees-show .card.border .card-body {
  padding: 0.5rem 0.75rem;
}

.organization-trees-show .card.border {
  margin-bottom: 0.5rem;
}

/* Reduce margins in all sections */
.organization-trees-show .col-12 {
  margin-bottom: 0;
}

/* Compact text spacing */
.organization-trees-show h6.mb-1 {
  margin-bottom: 0.25rem !important;
}

.organization-trees-show .d-flex.gap-2 {
  gap: 0.5rem !important;
}

/* Reduce spacing in quick actions */
.organization-trees-show .d-grid.gap-2 {
  gap: 0.375rem !important;
  margin-bottom: 0 !important;
}

.organization-trees-show .d-grid.gap-2 > *:last-child {
  margin-bottom: 0 !important;
}

/* Make Quick Actions card compact */
.organization-trees-show .col-lg-4 .card.border-0:first-child .card-body {
  padding-bottom: 0.5rem;
}

.organization-trees-show .btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* Make table more compact if present */
.organization-trees-show .table-responsive {
  margin-bottom: 0;
}

.organization-trees-show .table {
  margin-bottom: 0;
}

.organization-trees-show .table-sm {
  font-size: 0.875rem;
}

/* Reduce spacing in timestamps */
.organization-trees-show .small.text-muted {
  font-size: 0.85rem;
  margin-bottom: 0 !important;
}

.organization-trees-show .small.text-muted p {
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.organization-trees-show .small.text-muted p.mb-1 {
  margin-bottom: 0.5rem !important;
}

.organization-trees-show .small.text-muted p.mb-0 {
  margin-bottom: 0 !important;
}

.organization-trees-show .small.text-muted p:last-child {
  margin-bottom: 0 !important;
}

.organization-trees-show .small.text-muted strong {
  display: block;
  margin-bottom: 0.125rem;
}

/* Make Timestamps card compact */
.organization-trees-show .col-lg-4 .card.border-0:last-child .card-body {
  padding-bottom: 0.5rem;
}

/* Make all sections more compact */
.organization-trees-show .col-md-8 > .row.g-2,
.organization-trees-show .col-md-4 > .row.g-2 {
  --bs-gutter-y: 0.5rem;
}

/* Remove extra bottom margin from last elements - ensure no bottom space */
.organization-trees-show .card.border-0 .card-body .row:last-child > [class*="col-"] p.text-muted:last-child {
  margin-bottom: 0 !important;
}

.organization-trees-show .card.border-0 .card-body .row:last-child > [class*="col-"]:last-child {
  margin-bottom: 0 !important;
}

.organization-trees-show .card.border-0 .card-body .row:last-child > [class*="col-"]:last-child p:last-child {
  margin-bottom: 0 !important;
}

.organization-trees-show .card.border-0 .card-body .row:last-child > [class*="col-"]:last-child span:last-child {
  margin-bottom: 0 !important;
}

/* Fixed Table Header and Footer Styling for Index Pages */
.table-fixed-wrapper {
  position: relative;
  max-height: calc(100vh - 350px);
  overflow: auto;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
}

.table-fixed-wrapper table {
  margin-bottom: 0;
}

.table-fixed-wrapper thead {
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: #f8f9fa;
}

.table-fixed-wrapper thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  white-space: nowrap;
}

.table-fixed-wrapper tbody {
  background-color: #fff;
}

.table-fixed-wrapper tfoot {
  position: sticky;
  bottom: 0;
  z-index: 1020;
  background-color: #f8f9fa;
}

.table-fixed-wrapper tfoot td,
.table-fixed-wrapper tfoot th {
  background-color: #f8f9fa;
  border-top: 2px solid #dee2e6;
  font-weight: 600;
}

/* Alternative approach for tables in card-body */
.card-body .table-responsive.table-fixed-wrapper {
  max-height: calc(100vh - 400px);
}

/* Ensure proper scrolling */
.table-fixed-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-fixed-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.table-fixed-wrapper::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.table-fixed-wrapper::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Constrain tree width and prevent sidebar interference */
.org-tree {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  margin-top: 20px;
  max-width: 100%;
  overflow-x: auto;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .org-tree {
    padding: 20px 10px;
  }
  
  .org-node {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .org-tree-bg h2 {
    font-size: 1.8rem;
  }
}



.org-horizontal-tree li::before,
.org-horizontal-tree li::after,
.org-horizontal-tree ul::before {
  border-color: #fff;
  opacity: 0.8;
}

.org-horizontal-tree li:only-child::before,
.org-horizontal-tree li:only-child::after {
  display: none;
}

.org-horizontal-tree li:first-child::before,
.org-horizontal-tree li:last-child::after {
  border: none;
}

.org-horizontal-tree ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 2px solid #fff;
  height: 40px;
  z-index: 1;
  transform: translateX(-50%);
}

/* .org-horizontal-tree > li > .org-node-wrapper::before {
  display: none;
} */

/*  sadfghjj  */

.org-tree {
  display: flex;
  justify-content: center;
  padding: 0px 0px;
  margin-top: 0px;
}

.org-node-wrapper {
  text-align: center;
  margin: 0 20px;
  position: relative;
  flex-shrink: 0;
}

.org-node {
  display: inline-block;
  padding: 10px 16px;
  background: rgba(44, 62, 80, 0.95);
  color: #fff;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  min-width: 80px;
  max-width: 120px;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.org-node:hover {
  background: rgba(44, 62, 80, 1);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-color: #f3ec13;
  color: #f3ec13;
}

.org-children {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  position: relative;
  padding: 0 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.org-node-wrapper::after {
  content: '';
  position: absolute;
  top: 50px;
  left: 50%;
  width: 4px;
  height: 50px;
  background: linear-gradient(180deg, #f3ec13 0%, #ffd700 100%);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(243, 236, 19, 0.8);
  border-radius: 2px;
}

.org-children > .org-node-wrapper {
  margin: 0 15px;
}

.org-children::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 4px;
  background: linear-gradient(90deg, #f3ec13 0%, #ffd700 50%, #f3ec13 100%);
  box-shadow: 0 0 8px rgba(243, 236, 19, 0.8);
  border-radius: 2px;
}

/* Collapsible Tree Styles - Tree-like Design */
.collapsible-tree {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  padding: 30px;
  margin: 0 auto;
  max-width: 700px;
  height: calc(100vh - 80px);
  min-height: 700px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid #dee2e6;
  position: relative;
  flex-grow: 1;
}

/* Hide scrollbar when not needed */
.collapsible-tree:not(:hover)::-webkit-scrollbar {
  width: 0px;
}

.collapsible-tree:hover::-webkit-scrollbar {
  width: 8px;
}

.collapsible-tree::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.collapsible-tree::-webkit-scrollbar-thumb {
  background: #8B4513;
  border-radius: 4px;
}

.collapsible-tree::-webkit-scrollbar-thumb:hover {
  background: #654321;
}

.tree-node-item {
  margin-bottom: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.tree-node-item:hover {
  background: rgba(34, 139, 34, 0.05);
  border-radius: 6px;
  padding: 2px;
  margin-left: -2px;
}

.tree-node-content {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
}

.tree-node-content:hover {
  background: rgba(34, 139, 34, 0.08);
  border-radius: 6px;
}

.tree-toggle {
  min-width: 20px;
  height: 20px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: all 0.3s ease;
  background: #8B4513;
  border: 1px solid #654321;
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  margin-right: 8px;
}

.tree-toggle:hover {
  background: #654321;
  border-color: #4a2c1a;
  transform: scale(1.1);
}

.tree-placeholder {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8B4513;
  font-size: 0.7rem;
  font-weight: bold;
  margin-right: 8px;
}

.tree-node-info {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.tree-node-name {
  font-weight: 600;
  color: #228B22;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 2px 4px;
  border-radius: 4px;
}

.tree-node-name:hover {
  color: #32CD32;
  text-decoration: underline;
  background: rgba(34, 139, 34, 0.1);
}

.tree-node-type {
  background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(34, 139, 34, 0.3);
}

.tree-children {
  margin-top: 8px;
  padding-left: 30px;
  border-left: 4px solid #8B4513;
  margin-left: 14px;
  position: relative;
}

.tree-children .tree-node-item {
  position: relative;
}

.tree-children .tree-node-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  width: 18px;
  height: 4px;
  background: #8B4513;
  border-radius: 2px;
  z-index: 10;
}

.tree-children .tree-node-item::after {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 8px solid #8B4513;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: translateY(-50%);
  z-index: 10;
}

/* Additional connecting lines for deeper levels */
.tree-children .tree-children {
  border-left: 4px solid #A0522D;
}

.tree-children .tree-children .tree-node-item::before {
  background: #A0522D;
}

.tree-children .tree-children .tree-node-item::after {
  border-left-color: #A0522D;
}

.tree-children .tree-children .tree-children {
  border-left: 4px solid #CD853F;
}

.tree-children .tree-children .tree-children .tree-node-item::before {
  background: #CD853F;
}

.tree-children .tree-children .tree-children .tree-node-item::after {
  border-left-color: #CD853F;
}

/* Nested levels get lighter colors */
.tree-children .tree-children .tree-node-name {
  color: #90EE90;
}

.tree-children .tree-children .tree-node-type {
  background: linear-gradient(135deg, #90EE90 0%, #98FB98 100%);
  color: #2F4F2F;
}

.tree-children .tree-children .tree-children .tree-node-name {
  color: #98FB98;
}

.tree-children .tree-children .tree-children .tree-node-type {
  background: linear-gradient(135deg, #98FB98 0%, #F0FFF0 100%);
  color: #2F4F2F;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .collapsible-tree {
    max-width: 95%;
    padding: 20px;
    margin: 15px auto;
  }
  
  .tree-node-content {
    padding: 4px 6px;
  }
  
  .tree-node-name {
    font-size: 0.9rem;
  }
  
  .tree-node-type {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
  
  .tree-children {
    padding-left: 20px;
    margin-left: 10px;
  }
}

/* Tree container styling */
.org-tree-bg {
  background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
  min-height: 100vh;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

/* Header container styling */
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 30px;
}

.header-title {
  color: #8B4513;
  text-align: center;
  margin: 0;
  font-weight: 700;
  font-size: 1.8rem;
  text-shadow: 0 2px 4px rgba(139, 69, 19, 0.1);
}

.header-title i {
  color: #D2691E;
  margin-right: 12px;
  font-size: 2rem;
}

/* Back to list link styling */
.org-tree-bg .btn-outline-secondary {
  display: none;
}

.org-tree-bg .back-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.org-tree-bg .back-link:hover {
  color: #0052a3;
  text-decoration: underline;
  transform: translateY(-50%) translateX(-2px);
}

/* Collapsible Tree Styles - Tree-like Design */
.collapsible-tree {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  padding: 30px;
  margin: 0 auto;
  max-width: 700px;
  height: calc(100vh - 80px);
  min-height: 700px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid #dee2e6;
  position: relative;
  flex-grow: 1;
}

/* Search functionality */
.search-container {
  max-width: 400px;
  margin: 0 auto 20px auto;
}

.search-results {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  position: relative;
}

.search-result-item {
  padding: 8px 12px;
  border-bottom: 1px solid #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(52, 152, 219, 0.05);
}

.search-result-link {
  color: #228B22;
  text-decoration: none;
  font-weight: 500;
}

.search-result-link:hover {
  color: #32CD32;
  text-decoration: underline;
}

.search-result-type {
  background: #f39c12;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
}

.no-results, .search-error {
  padding: 12px;
  text-align: center;
  color: #6c757d;
  font-style: italic;
}

/* Loading states */
/* SDG tiles */
.sdg-square, .sdg-sprite {
  display: block;
  width: 100%;
  padding-top: 100%; /* square */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto; /* use sprite natural size */
  position: relative;
}

.sdg-square--inactive {
  filter: grayscale(100%);
  opacity: 0.6;
  pointer-events: none;
}

/* SDG Popover theme */
.popover.sdg-popover {
  --bs-popover-bg: #000;
  --bs-popover-body-color: #fff;
  --bs-popover-border-color: rgba(255,255,255,0.2);
  --bs-popover-header-bg: #000;
  --bs-popover-header-color: #fff;
  color: #fff;
  background-color: #000;
  border-color: rgba(255,255,255,0.2);
}

.popover.sdg-popover .popover-body {
  color: #fff;
}

.popover.sdg-popover .popover-header {
  background-color: #000;
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.2);
}
.loading-placeholder {
  padding: 20px;
  text-align: center;
  color: #6c757d;
  font-style: italic;
}

.tree-children-loading {
  border-left: 2px dashed #8B4513;
  opacity: 0.7;
}

.no-children {
  padding: 12px;
  text-align: center;
  color: #6c757d;
  font-style: italic;
  font-size: 0.9rem;
}

.error-loading {
  padding: 12px;
  text-align: center;
  color: #dc3545;
  font-size: 0.9rem;
}

/* Performance optimizations */
.tree-node-item {
  contain: layout style;
}

.tree-children {
  contain: layout style;
}

/* Responsive search */
@media (max-width: 768px) {
  .search-container {
    max-width: 100%;
  }
  
  .search-results {
    max-height: 200px;
  }
}

/* Drag and Drop Styles */
.attribute-item {
  cursor: grab;
  transition: all 0.2s ease;
  user-select: none;
}

.attribute-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.attribute-item:active {
  cursor: grabbing;
}

.attribute-item.dragging {
  opacity: 0.5;
  transform: rotate(5deg);
}

/* Template Selection Styles */
.template-checkbox {
  margin-right: 0.5rem;
}

.template-checkbox:checked + label {
  color: #0d6efd;
  font-weight: 600;
}

/* Modal Enhancements */
.modal-xl {
  max-width: 90%;
}

/* Attribute Preview Styles */
.attribute-preview {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.attribute-preview:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

/* Step Indicator Styles */
.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #dee2e6;
  z-index: 1;
}

.step {
  position: relative;
  z-index: 2;
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #6c757d;
}

.step.active {
  border-color: #0d6efd;
  color: #0d6efd;
}

.step.completed {
  border-color: #198754;
  background: #198754;
  color: white;
}

/* Template Card Enhancements */
.template-card {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.template-card:hover {
  border-color: #0d6efd;
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.1);
}

.template-card.selected {
  border-color: #0d6efd;
  background: rgba(13, 110, 253, 0.05);
}

/* Attribute Type Badges */
.attribute-type-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

.attribute-type-badge.dynamic {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.attribute-type-badge.static {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0d6efd;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success/Error States */
.success-fade {
  animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .modal-xl {
    max-width: 95%;
  }
  
  .step-indicator {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .step-indicator::before {
    display: none;
  }
  
  .attribute-item {
    margin-bottom: 0.5rem;
  }
}

/* Custom Scrollbar for Attribute Containers */
#availableAttributes::-webkit-scrollbar,
#selectedAttributes::-webkit-scrollbar {
  width: 6px;
}

#availableAttributes::-webkit-scrollbar-track,
#selectedAttributes::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#availableAttributes::-webkit-scrollbar-thumb,
#selectedAttributes::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

#availableAttributes::-webkit-scrollbar-thumb:hover,
#selectedAttributes::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* ============================================
   Authentication Pages Styles
   ============================================ */

.auth-container {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.auth-container .row {
  height: 100%;
  margin: 0;
}

/* Left Side - News Section */
.auth-news-section {
  background: #E8F5E9;
  position: relative;
  overflow: hidden;
  padding: 60px 50px;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.auth-news-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.auth-news-content {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.auth-brand-section {
  text-align: center;
}

.auth-brand-title {
  font-size: 3rem;
  font-weight: 700;
  color: #1B5E20;
  margin-bottom: 0.5rem;
  text-shadow: none;
}

.auth-brand-subtitle {
  font-size: 1.1rem;
  color: #2E7D32;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.auth-news-header {
  border-bottom: 2px solid rgba(27, 94, 32, 0.2);
  padding-bottom: 1rem;
}

.auth-news-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1B5E20;
  margin: 0;
}

/* Horizontal Carousel Wrapper */
.auth-news-carousel-wrapper {
  position: relative;
  flex: 1;
  margin-top: 1rem;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.auth-news-carousel-container {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: hidden;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.auth-news-list {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px 60px;
  height: 100%;
  align-items: center;
  width: 100%;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.auth-news-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.auth-news-item {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(27, 94, 32, 0.2);
  flex: 0 0 320px;
  min-width: 320px;
  max-width: 320px;
  width: 320px;
  height: 320px;
  box-sizing: border-box;
  justify-content: space-between;
  flex-shrink: 0;
  scroll-snap-align: center;
}

.auth-news-item:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(27, 94, 32, 0.3);
}

/* Navigation Arrows */
.auth-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.auth-carousel-nav:hover {
  background: rgba(0, 0, 0, 0.7);
  opacity: 1;
}

.auth-carousel-prev {
  left: 10px;
}

.auth-carousel-next {
  right: 10px;
}

/* Pagination Dots */
.auth-carousel-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 1rem;
  z-index: 10;
  position: relative;
}

.auth-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(27, 94, 32, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.auth-carousel-dot:hover {
  background: rgba(27, 94, 32, 0.5);
  transform: scale(1.2);
}

.auth-carousel-dot.active {
  background: rgba(27, 94, 32, 0.8);
  width: 24px;
  border-radius: 5px;
}

/* Slide Counter */
.auth-carousel-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10;
}

.auth-news-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: rgba(27, 94, 32, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.auth-news-content-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.auth-news-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1B5E20;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
}

.auth-news-item-text {
  font-size: 0.9rem;
  color: #2E7D32;
  line-height: 1.6;
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.auth-news-date {
  font-size: 0.8rem;
  color: #4CAF50;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
}

.auth-news-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(27, 94, 32, 0.2);
}

/* Right Side - Form Section */
.auth-form-section {
  background: #28a02f;
  padding: 40px;
  height: 100%;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-form-container {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.auth-form-header {
  text-align: center;
}

.auth-form-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.auth-form-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.auth-form {
  margin-top: 2rem;
}

.auth-form-group {
  margin-bottom: 1.5rem;
}

.auth-form-label {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.95rem;
}

.auth-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #1B5E20;
  background-color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.auth-form-control:focus {
  color: #1B5E20;
  background-color: #ffffff;
  border-color: #ffffff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
}

.auth-form-control::placeholder {
  color: #81C784;
}

.auth-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 0.25rem;
  cursor: pointer;
}

.auth-checkbox-label {
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  cursor: pointer;
  user-select: none;
}

.auth-forgot-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-forgot-link:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

.auth-submit-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1B5E20;
  background: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  margin-top: 0.5rem;
}

.auth-submit-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-form-footer {
  margin-top: 2rem;
}

.auth-footer-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin: 0;
}

.auth-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-link:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

/* Alert Styles for Auth Pages */
.auth-form .alert {
  border-radius: 8px;
  border: none;
  padding: 0.875rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.auth-form .alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.auth-form .alert-success {
  background-color: #d4edda;
  color: #155724;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .auth-news-section {
    display: none !important;
  }

  .auth-form-section {
    padding: 30px 20px;
  }

  .auth-form-container {
    max-width: 100%;
  }

  .auth-form-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .auth-form-section {
    padding: 20px 15px;
  }

  .auth-form-title {
    font-size: 1.5rem;
  }

  .auth-form-subtitle {
    font-size: 0.9rem;
  }

  .auth-form-group {
    margin-bottom: 1.25rem;
  }

  .auth-form-control {
    padding: 0.65rem 0.875rem;
    font-size: 0.95rem;
  }
}

/* Animation for News Items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-news-item {
  animation: fadeInUp 0.5s ease-out;
}

.auth-news-item:nth-child(1) {
  animation-delay: 0.1s;
}

.auth-news-item:nth-child(2) {
  animation-delay: 0.2s;
}

.auth-news-item:nth-child(3) {
  animation-delay: 0.3s;
}

.auth-news-item:nth-child(4) {
  animation-delay: 0.4s;
}

