html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  margin-bottom: 60px;
  overflow-y: auto;
  overflow-x: hidden;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Dashboard Layout Styles */
.dashboard-sidebar {
  transition: transform 0.3s ease;
  width: 250px !important;
  flex-shrink: 0;
}

/* Ensure dashboard layout allows scrolling */
.d-flex.min-vh-100 {
  min-height: 100vh;
  height: auto;
  overflow: visible;
}

.d-flex.min-vh-100 > .flex-grow-1 {
  min-height: 0;
  overflow: visible;
}

.dashboard-sidebar .nav-link {
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.dashboard-sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white !important;
}

.dashboard-sidebar .nav-link.active {
  background-color: rgba(13, 110, 253, 0.2);
  color: white !important;
}

/* Public Layout Styles */
header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* Ensure dropdowns in header appear above header and other elements */
header .dropdown-menu,
header .dropdown {
  z-index: 1040 !important;
}

/* Ensure header doesn't clip dropdowns */
header {
  overflow: visible !important;
}

/* Ensure parent containers don't clip dropdowns */
.d-flex.flex-column,
.flex-grow-1.d-flex.flex-column {
  overflow: visible !important;
}

/* Ensure notification dropdown also has proper z-index */
.dropdown-menu {
  z-index: 1040 !important;
}

/* Ensure dropdown containers are positioned correctly */
header .dropdown {
  position: relative;
}

/* Make sure dropdown buttons are clickable */
header .dropdown button[data-bs-toggle="dropdown"] {
  position: relative;
  z-index: 1041;
}

.navbar.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: white !important;
}

.navbar-brand {
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  transition: all 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--bs-primary) !important;
}

.navbar-nav .nav-link.active {
  background-color: var(--bs-primary);
  color: white !important;
  font-weight: 500;
}

.navbar-nav .nav-link.active i {
  color: white;
}

.navbar-nav .btn-primary {
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-nav .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Footer Styles */
footer a {
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--bs-primary) !important;
}

footer .bi {
  transition: transform 0.2s ease;
}

footer a:hover .bi {
  transform: scale(1.2);
}

/* Simple Layout Styles */
.min-vh-100 {
  min-height: 100vh;
}

/* Loading indicators can be added here if needed for AJAX requests */

/* Bottom Navigation Styles */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1020;
  padding: 0.5rem 0;
}

.bottom-nav-item {
  flex: 1;
  text-decoration: none;
  color: #6c757d;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  min-width: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.bottom-nav-item:hover {
  color: var(--bs-primary);
  background-color: rgba(13, 110, 253, 0.1);
}

.bottom-nav-item.active {
  color: var(--bs-primary);
}

.bottom-nav-item.active i {
  color: var(--bs-primary);
}

.bottom-nav-label {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bottom-nav-item i {
  transition: transform 0.2s ease;
}

.bottom-nav-item:active i {
  transform: scale(1.1);
}

@media (min-width: 768px) {
  .bottom-nav {
    height: 80px;
  }
  
  .bottom-nav-label {
    font-size: 0.875rem;
  }
  
  .pb-mobile-nav {
    padding-bottom: 0 !important;
  }
}

/* Mobile padding for bottom navigation */
@media (max-width: 767.98px) {
  .pb-mobile-nav {
    padding-bottom: 80px;
  }
}

/* Company Type Tabs Styling */
.company-type-tabs .nav-link {
  color: white;
}

.company-type-tabs .nav-link.active {
  background-color: var(--bs-primary) !important;
  color: white !important;
}

/* Registration Page Left Panel - Hero Gradient */
.register-left-panel {
  background: linear-gradient(135deg, #008cba 0%, #5bc0de 50%, #43ac6a 100%);
  background-size: 200% 200%;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.register-left-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(91, 192, 222, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(67, 172, 106, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(0, 140, 186, 0.25) 0%, transparent 50%);
  background-size: 100% 100%;
  opacity: 0.8;
  z-index: 0;
}

.register-marketing-content {
  position: relative;
  z-index: 1;
}

/* Hero Section Background Pattern */
.hero-section {
  background: linear-gradient(135deg, #008cba 0%, #5bc0de 50%, #43ac6a 100%);
  background-size: 200% 200%;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(91, 192, 222, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(67, 172, 106, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(0, 140, 186, 0.25) 0%, transparent 50%);
  background-size: 100% 100%;
  opacity: 0.8;
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}