/* === BUTTON COMPONENTS - Complete refactored button system === */

/* === PRIMARY ACTION BUTTONS === */

/* Compose Message Button - Translucent dark blue styling */
.btn.btn-compose,
.btn.btn-compose:link,
.btn.btn-compose:visited {
  background: rgba(59, 130, 246, 0.15) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  color: #60a5fa !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1.25rem !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1) !important;
  text-decoration: none !important;
}

.btn.btn-compose:hover,
.btn.btn-compose:focus {
  background: rgba(59, 130, 246, 0.25) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  color: #93c5fd !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.2) !important;
  text-decoration: none !important;
}

.btn.btn-compose i {
  color: inherit !important;
}

/* Upload File Button - Matches Compose Message styling */
.btn.btn-card-action-upload,
.btn.btn-card-action-upload:link,
.btn.btn-card-action-upload:visited {
  background: rgba(59, 130, 246, 0.15) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  color: #60a5fa !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1) !important;
  text-decoration: none !important;
}

.btn.btn-card-action-upload:hover,
.btn.btn-card-action-upload:focus {
  background: rgba(59, 130, 246, 0.25) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #93c5fd !important;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2) !important;
  transform: translateY(-1px) !important;
  text-decoration: none !important;
}

/* === SECONDARY ACTION BUTTONS (per secondary-buttons.md) === */

/* Card Action Buttons - Updated to match documentation */
.btn-card-action {
  background: rgba(45, 55, 72, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem !important;
  transition: all 0.3s ease !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.btn-card-action:hover {
  background: rgba(45, 55, 72, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  text-decoration: none !important;
}

.btn-card-action:focus {
  background: rgba(45, 55, 72, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
  outline: none !important;
}

.btn-card-action:active {
  background: rgba(45, 55, 72, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  transform: translateY(0) !important;
}

/* Small variant */
.btn-sm.btn-card-action {
  padding: 0.375rem 0.75rem !important;
  font-size: 0.8125rem !important;
  line-height: 1.125rem !important;
  border-radius: 0.375rem !important;
}

/* Large variant */
.btn-lg.btn-card-action {
  padding: 0.75rem 1.5rem !important;
  font-size: 1rem !important;
  line-height: 1.5rem !important;
  border-radius: 0.75rem !important;
}

/* Icon spacing */
.btn-card-action i {
  font-size: 1em !important;
  opacity: 0.9 !important;
}

.btn-card-action:hover i {
  opacity: 1 !important;
}

/* Disabled state */
.btn-card-action:disabled,
.btn-card-action.disabled {
  background: rgba(45, 55, 72, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* === MESSAGES ACTION BUTTONS === */

/* Primary messages action buttons */
.btn.btn-sm.messages-action-btn.primary-messages-action,
.btn.btn-sm.messages-action-btn.primary-messages-action:link,
.btn.btn-sm.messages-action-btn.primary-messages-action:visited {
  background: rgba(59, 130, 246, 0.15) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  color: #60a5fa !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1) !important;
}

.btn.btn-sm.messages-action-btn.primary-messages-action:hover,
.btn.btn-sm.messages-action-btn.primary-messages-action:focus {
  background: rgba(59, 130, 246, 0.25) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  color: #93c5fd !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.2) !important;
  text-decoration: none !important;
}

/* Secondary messages action buttons */
.btn.btn-sm.messages-action-btn.secondary-messages-action,
.btn.btn-sm.messages-action-btn.secondary-messages-action:link,
.btn.btn-sm.messages-action-btn.secondary-messages-action:visited {
  background: rgba(156, 163, 175, 0.15) !important;
  border: 1px solid rgba(156, 163, 175, 0.3) !important;
  color: #9ca3af !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(156, 163, 175, 0.1) !important;
}

.btn.btn-sm.messages-action-btn.secondary-messages-action:hover,
.btn.btn-sm.messages-action-btn.secondary-messages-action:focus {
  background: rgba(156, 163, 175, 0.25) !important;
  border-color: rgba(156, 163, 175, 0.5) !important;
  color: #d1d5db !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(156, 163, 175, 0.2) !important;
  text-decoration: none !important;
}

/* Regular size (non-sm) primary messages action buttons - for prominent CTAs like "Send Your First Message" */
.btn.messages-action-btn.primary-messages-action:not(.btn-sm),
.btn.messages-action-btn.primary-messages-action:not(.btn-sm):link,
.btn.messages-action-btn.primary-messages-action:not(.btn-sm):visited {
  background: rgba(59, 130, 246, 0.15) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  color: #60a5fa !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
}

.btn.messages-action-btn.primary-messages-action:not(.btn-sm):hover,
.btn.messages-action-btn.primary-messages-action:not(.btn-sm):focus {
  background: rgba(59, 130, 246, 0.25) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  color: #93c5fd !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25) !important;
  text-decoration: none !important;
}

/* Compose Modal Primary Button */
.btn.btn-card-action.btn-primary-compose,
.btn.btn-card-action.btn-primary-compose:link,
.btn.btn-card-action.btn-primary-compose:visited {
  background: rgba(59, 130, 246, 0.15) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  color: #60a5fa !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
  text-decoration: none !important;
}

.btn.btn-card-action.btn-primary-compose:hover,
.btn.btn-card-action.btn-primary-compose:focus {
  background: rgba(59, 130, 246, 0.25) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  color: #93c5fd !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25) !important;
  text-decoration: none !important;
}

.btn.btn-card-action.btn-primary-compose:active {
  background: rgba(59, 130, 246, 0.3) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.2) !important;
}

/* === BUTTON GROUPS === */
/* Bootstrap Override - Higher specificity to override Bootstrap 5.3.3 */

/* Button Group Container - Override Bootstrap defaults */
.btn-group[role="group"] {
  display: inline-flex !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Reset button styling within groups - Override Bootstrap .btn-group > .btn */
.btn-group[role="group"] > .btn.btn-sm.messages-action-btn {
  border-radius: 0 !important;
  margin: 0 !important;
  border-right: none !important;
  position: relative !important;
  flex: 1 1 auto !important;
}

.btn-group[role="group"] > .btn.btn-sm.messages-action-btn:first-child {
  border-top-left-radius: 6px !important;
  border-bottom-left-radius: 6px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.btn-group[role="group"] > .btn.btn-sm.messages-action-btn:last-child {
  border-top-right-radius: 6px !important;
  border-bottom-right-radius: 6px !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-right: 1px solid rgba(75, 85, 99, 0.4) !important;
}

/* Remove any gaps between buttons */
.btn-group[role="group"] > .btn.btn-sm.messages-action-btn:not(:first-child) {
  margin-left: -1px !important;
}

/* Override individual button styles for grouped buttons - Higher specificity */
.btn-group[role="group"] > .btn.btn-sm.messages-action-btn.primary-messages-action {
  background: rgba(59, 130, 246, 0.2) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #93c5fd !important;
  border-left: 1px solid rgba(59, 130, 246, 0.4) !important;
  border-top: 1px solid rgba(59, 130, 246, 0.4) !important;
  border-bottom: 1px solid rgba(59, 130, 246, 0.4) !important;
}

.btn-group[role="group"] > .btn.btn-sm.messages-action-btn.primary-messages-action:hover {
  background: rgba(59, 130, 246, 0.3) !important;
  border-color: rgba(59, 130, 246, 0.6) !important;
  color: #bfdbfe !important;
  border-left: 1px solid rgba(59, 130, 246, 0.6) !important;
  border-top: 1px solid rgba(59, 130, 246, 0.6) !important;
  border-bottom: 1px solid rgba(59, 130, 246, 0.6) !important;
}

.btn-group[role="group"] > .btn.btn-sm.messages-action-btn.secondary-messages-action {
  background: rgba(45, 55, 72, 0.4) !important;
  border-color: rgba(75, 85, 99, 0.4) !important;
  color: #9ca3af !important;
  border-left: 1px solid rgba(75, 85, 99, 0.4) !important;
  border-top: 1px solid rgba(75, 85, 99, 0.4) !important;
  border-bottom: 1px solid rgba(75, 85, 99, 0.4) !important;
}

.btn-group[role="group"] > .btn.btn-sm.messages-action-btn.secondary-messages-action:hover {
  background: rgba(45, 55, 72, 0.6) !important;
  border-color: rgba(75, 85, 99, 0.6) !important;
  color: #d1d5db !important;
  border-left: 1px solid rgba(75, 85, 99, 0.6) !important;
  border-top: 1px solid rgba(75, 85, 99, 0.6) !important;
  border-bottom: 1px solid rgba(75, 85, 99, 0.6) !important;
}



/* === GENERAL BUTTON STYLES === */

.btn {
  display: inline-block;
  font-weight: 500;
  line-height: 1.5;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn:hover {
  color: #ffffff;
  text-decoration: none;
}

.btn:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.btn:disabled,
.btn.disabled {
  pointer-events: none;
  opacity: 0.65;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  border-radius: 0.375rem;
}

.btn-lg {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 0.75rem;
}

/* Specific button variants */
.btn-primary {
  color: #ffffff;
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.btn-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
}

.btn-primary:focus {
  background-color: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.5);
}

.btn-primary:active {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-secondary {
  color: #ffffff;
  background-color: #6b7280;
  border-color: #6b7280;
}

.btn-secondary:hover {
  background-color: #4b5563;
  border-color: #4b5563;
}

/* Missing Bootstrap Button Variants for Dark Theme */
.btn-warning {
  color: #ffffff;
  background-color: #f59e0b;
  border-color: #f59e0b;
}

.btn-warning:hover {
  background-color: #d97706;
  border-color: #d97706;
}

.btn-warning:focus {
  background-color: #d97706;
  border-color: #d97706;
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.5);
}

.btn-warning:active {
  background-color: #b45309;
  border-color: #b45309;
}

.btn-success {
  color: #ffffff;
  background-color: #10b981;
  border-color: #10b981;
}

.btn-success:hover {
  background-color: #059669;
  border-color: #059669;
}

.btn-success:focus {
  background-color: #059669;
  border-color: #059669;
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.5);
}

.btn-success:active {
  background-color: #047857;
  border-color: #047857;
}

.btn-outline-secondary {
  color: #6b7280;
  border-color: #6b7280;
  background-color: transparent;
}

.btn-outline-secondary:hover {
  color: #ffffff;
  background-color: #6b7280;
  border-color: #6b7280;
}

.btn-outline-danger {
  color: #ef4444;
  border-color: #ef4444;
}

.btn-outline-danger:hover {
  color: #ffffff;
  background-color: #ef4444;
  border-color: #ef4444;
}

.btn-outline-info {
  color: #06b6d4;
  border-color: #06b6d4;
}

.btn-outline-info:hover {
  color: #ffffff;
  background-color: #06b6d4;
  border-color: #06b6d4;
}

/* Icon-only buttons */
.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Insight Buttons */
.btn-insight,
.btn-insight-dark {
  background-color: #3f2c6e;
  border: 1px solid #8b5cf6;
  color: #d8b4fe;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-insight:hover,
.btn-insight-dark:hover {
  background-color: #4c3792;
  border-color: #a78bfa;
  color: #ffffff;
}

/* Close Buttons */
.btn-close {
  background: none;
  border: none;
  color: #9ca3af;
  opacity: 0.8;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close:hover {
  color: #d1d5db;
  opacity: 1;
  transform: scale(1.1);
}

/* Auth Layout Buttons */
.btn-primary-modern {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-primary-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary-modern:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-primary-modern:hover::before {
  left: 100%;
}

.btn-primary-modern:active {
  transform: translateY(-1px);
}

.btn-primary-modern:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.btn-primary-modern:disabled {
  background: rgba(156, 163, 175, 0.3);
  border-color: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
  cursor: not-allowed;
}

.btn-primary-modern:disabled:hover {
  background: rgba(156, 163, 175, 0.3);
  border-color: rgba(156, 163, 175, 0.2);
  transform: none;
  box-shadow: none;
}

/* Message Action Buttons (smaller inline actions) */
.message-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.message-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.message-action-btn.reply-all {
  color: #3b82f6;
}

.message-action-btn.reply-all:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

/* === RESPONSIVE ADJUSTMENTS === */

@media (max-width: 768px) {
  .btn-card-action {
    font-size: 0.8125rem !important;
    padding: 0.375rem 0.75rem !important;
  }
  
  .btn-group[role="group"] > .btn {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.8rem !important;
  }
  
  .btn-group[role="group"] > .btn.btn-sm.messages-action-btn {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.8rem !important;
  }
  
  .messages-action-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .btn-primary-modern {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .btn-primary-modern {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .messages-action-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .btn-group[role="group"] > .btn.btn-sm.messages-action-btn {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.75rem !important;
  }
  
  .btn-group[role="group"] {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
  }
}

/* Group spacing */
.btn-card-action + .btn-card-action {
  margin-left: 0.5rem !important;
}

/* Button group styles are defined above in the enhanced button groups section */ 

/* Missing Button Styles that should have been moved from application.css */

/* Compose Modal Button Styles */
@media (max-width: 768px) {
  #composeModal .btn {
    width: 100% !important;
  }
}

/* Floating Attachment Container Button Styles */
.floating-attachment-container .btn-outline-secondary {
  background: rgba(59, 130, 246, 0.1) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  color: #60a5fa !important;
  font-weight: 500 !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-size: 0.875rem !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.floating-attachment-container .btn-outline-secondary:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  border: 1px solid rgba(59, 130, 246, 0.5) !important;
  color: #3b82f6 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25) !important;
}

/* Thread Actions Button Styles */
.thread-actions .btn {
  padding: 0.25rem 0.5rem !important;
  font-size: 0.75rem !important;
}

.thread-actions .btn:hover {
  transform: translateY(-1px) !important;
}

/* Notification Permission Modal Button Styles */
#notificationPermissionModal .btn-primary-notification {
  background: rgba(59, 130, 246, 0.2) !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
  color: #3b82f6 !important;
}

#notificationPermissionModal .btn-primary-notification:hover {
  background: rgba(59, 130, 246, 0.3) !important;
  border: 1px solid rgba(59, 130, 246, 0.6) !important;
  color: #60a5fa !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

#notificationPermissionModal .btn-later {
  background: rgba(107, 114, 128, 0.2) !important;
  border: 1px solid rgba(107, 114, 128, 0.4) !important;
  color: #6b7280 !important;
}

#notificationPermissionModal .btn-later:hover {
  background: rgba(107, 114, 128, 0.3) !important;
  border: 1px solid rgba(107, 114, 128, 0.6) !important;
  color: #9ca3af !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3) !important;
}

/* PDF Viewer Button Styles */
.pdf-viewer-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pdf-viewer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.pdf-viewer-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.pdf-viewer-btn:hover::before {
  left: 100%;
}

/* PDF Viewer Modal Button Styles */
#pdfViewerModal .btn-group .btn {
  border-color: rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#pdfViewerModal .btn-group .btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

#pdfViewerModal .btn-group .btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  #pdfViewerModal .btn-group .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }
}

#pdfViewerModal .btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.5);
  outline: none;
}

/* Vault File Item Button Styles */
.vault-file-item .btn {
  padding: 0.25rem 0.5rem !important;
  font-size: 0.75rem !important;
}

.vault-file-item .btn:hover {
  transform: translateY(-1px) !important;
}

/* Auth Layout Button Styles - moved from application.css */
/* Old body.auth-layout .btn-primary-modern styles removed - replaced with btn-vault-modern and btn-questionnaire-modern */

/* Registration Page Button Styles removed - using specific classes instead */
/* Password Reset Button Styles removed - using specific classes instead */

/* General Modern Button Styles removed - using specific btn-vault-modern and btn-questionnaire-modern instead */

/* === AUTH LAYOUT BUTTON STYLES === */

/* Messages Compose Style Button - Test Style for Sign In Button */
body.auth-layout .btn.btn-vault-modern {
  background: rgba(59, 130, 246, 0.15) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  color: #60a5fa !important;
  font-weight: 500 !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

body.auth-layout .btn.btn-vault-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

body.auth-layout .btn.btn-vault-modern:hover {
  background: rgba(59, 130, 246, 0.25) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  color: #93c5fd !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25) !important;
}

body.auth-layout .btn.btn-vault-modern:hover::before {
  opacity: 1;
}

body.auth-layout .btn.btn-vault-modern:active {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.2) !important;
}

body.auth-layout .btn.btn-vault-modern:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), 0 4px 12px rgba(59, 130, 246, 0.15) !important;
}

body.auth-layout .btn.btn-vault-modern:disabled {
  background: rgba(75, 85, 99, 0.5) !important;
  border-color: rgba(75, 85, 99, 0.5) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

body.auth-layout .btn.btn-vault-modern:disabled:hover {
  background: rgba(75, 85, 99, 0.5) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Dashboard Questionnaire Style Button - Translucent Green for Passkey */
body.auth-layout .btn.btn-questionnaire-modern {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.25) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: #34d399 !important;
  font-weight: 600 !important;
  padding: 0.875rem 1.5rem !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

body.auth-layout .btn.btn-questionnaire-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

body.auth-layout .btn.btn-questionnaire-modern:hover {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.25) 0%, rgba(4, 120, 87, 0.35) 100%) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: #6ee7b7 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35) !important;
}

body.auth-layout .btn.btn-questionnaire-modern:hover::before {
  opacity: 1;
}

body.auth-layout .btn.btn-questionnaire-modern:active {
  transform: translateY(0) !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25) !important;
}

body.auth-layout .btn.btn-questionnaire-modern:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3), 0 4px 16px rgba(16, 185, 129, 0.25) !important;
}

body.auth-layout .btn.btn-questionnaire-modern:disabled {
  background: rgba(75, 85, 99, 0.5) !important;
  border-color: rgba(75, 85, 99, 0.5) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

body.auth-layout .btn.btn-questionnaire-modern:disabled:hover {
  background: rgba(75, 85, 99, 0.5) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Back Button Styles */
body.auth-layout .btn.btn-outline-secondary {
  background: transparent !important;
  border: 1px solid rgba(156, 163, 175, 0.3) !important;
  color: #9ca3af !important;
  font-weight: 500 !important;
  padding: 0.875rem 1.5rem !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.95rem !important;
}

body.auth-layout .btn.btn-outline-secondary:hover {
  background: rgba(156, 163, 175, 0.1) !important;
  border-color: rgba(156, 163, 175, 0.5) !important;
  color: #d1d5db !important;
  transform: translateY(-1px) !important;
}

/* === ELEGANT LOGIN DIVIDER === */

/* Modern Login Divider with Gradient Lines and Refined Typography */
body.auth-layout .login-divider {
  position: relative;
  text-align: center;
  margin: 2rem 0;
  padding: 0.5rem 0;
}

body.auth-layout .login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(156, 163, 175, 0.2) 15%, rgba(156, 163, 175, 0.4) 50%, rgba(156, 163, 175, 0.2) 85%, transparent 100%);
  transform: translateY(-50%);
}

body.auth-layout .login-divider::after {
  display: none;
}

body.auth-layout .login-divider span {
  position: relative;
  z-index: 2;
  background: rgba(31, 41, 55, 1);
  padding: 0.5rem 1.25rem;
  color: #9ca3af;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 12px;
  border: 1px solid rgba(156, 163, 175, 0.2);
  transition: all 0.3s ease;
}

body.auth-layout .login-divider span:hover {
  color: #d1d5db;
  background: rgba(31, 41, 55, 1);
  border-color: rgba(156, 163, 175, 0.3);
  transform: none;
}

/* Alternative Style - Dots Divider */
body.auth-layout .login-divider.dots-style::before {
  background: none;
}

body.auth-layout .login-divider.dots-style::after {
  content: '• • •';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  color: rgba(156, 163, 175, 0.4);
  font-size: 0.6rem;
  letter-spacing: 0.5rem;
  background: transparent;
  width: auto;
  height: auto;
  border-radius: 0;
}

/* Alternative Style - Icon Divider */
body.auth-layout .login-divider.icon-style span::before {
  content: '\F62C'; /* Bootstrap Icons key icon */
  font-family: 'bootstrap-icons';
  margin-right: 0.5rem;
  opacity: 0.6;
  font-size: 0.75rem;
}

body.auth-layout .login-divider.icon-style span::after {
  content: '\F62C'; /* Bootstrap Icons key icon */
  font-family: 'bootstrap-icons';
  margin-left: 0.5rem;
  opacity: 0.6;
  font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  body.auth-layout .login-divider {
    margin: 1.5rem 0;
  }
  
  body.auth-layout .login-divider span {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }
} 