/* Page Layout Improvements */

.bulk-actions-sidebar {
  position: sticky;
  top: 20px;
  z-index: 10;
}

/* Make search bar more prominent */
.header-responsive {
  margin-bottom: 1.5rem;
}

/* Table improvements for selection */
.email-row {
  transition: all 0.3s ease;
}

.email-row.selected {
  background-color: #eff6ff !important;
  border-left: 4px solid #667eea !important;
}

.email-row:hover {
  background-color: #f9fafb;
}

/* Checkbox styling */
.email-checkbox,
.email-select-all {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #667eea;
  border-radius: 4px;
}

.email-checkbox:checked,
.email-select-all:checked {
  background-color: #667eea;
  border-color: #667eea;
}

/* Selection highlight animation */
@keyframes selectHighlight {
  0% {
    background-color: #dbeafe;
  }
  50% {
    background-color: #bfdbfe;
  }
  100% {
    background-color: #eff6ff;
  }
}

.email-row.just-selected {
  animation: selectHighlight 0.5s ease;
}

/* Responsive layout */
@media (max-width: 1200px) {
  .bulk-actions-sidebar {
    position: relative;
    top: 0;
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .bulk-actions-sidebar {
    max-width: 100%;
    margin-top: 1rem;
  }

  .header-responsive {
    flex-direction: column;
    align-items: stretch !important;
  }
}

/* Improve overall spacing */
.row.mb-4 {
  margin-bottom: 2rem !important;
}

/* Table header checkbox */
.form-check {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Selection banner (when items selected) */
.selection-banner {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border-left: 4px solid #667eea;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Beautiful Bulk Action Buttons - Modern Design */

/* Base button styling */
.bulk-action-btn {
  border: none;
  font-size: 1rem;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bulk-action-btn:active:not(:disabled) {
  transform: scale(0.98);
}

/* Start Button - Vibrant Teal/Green */
.bulk-start-btn {
  background: linear-gradient(135deg, #06d6a0 0%, #00c896 100%);
  color: white;
}

.bulk-start-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #05c794 0%, #00b585 100%);
  box-shadow: 0 6px 20px rgba(6, 214, 160, 0.4);
  transform: translateY(-2px);
}

.bulk-start-btn:disabled {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

/* Pause Button - Vibrant Yellow */
.bulk-pause-btn {
  background: linear-gradient(135deg, #ffd60a 0%, #ffc300 100%);
  color: #1f2937;
}

.bulk-pause-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #ffc300 0%, #ffb700 100%);
  box-shadow: 0 6px 20px rgba(255, 214, 10, 0.4);
  transform: translateY(-2px);
}

.bulk-pause-btn:disabled {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

/* Delete Button - Hot Pink/Magenta */
.bulk-delete-btn {
  background: linear-gradient(135deg, #f72585 0%, #e91e63 100%);
  color: white;
}

.bulk-delete-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #e91e63 0%, #d81b60 100%);
  box-shadow: 0 6px 20px rgba(247, 37, 133, 0.4);
  transform: translateY(-2px);
}

.bulk-delete-btn:disabled {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

/* Clear Button - Subtle Gray */
.bulk-clear-btn {
  background: white;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bulk-clear-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

/* Add Email Button - Purple Gradient */
.bulk-add-btn {
  background: #1519FA;
  color: white;
}

.bulk-add-btn:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}

/* Selection Count Badge */
#selection-count-badge {
  animation: fadeInDown 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icon styling */
.bulk-action-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.bulk-action-btn:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Ripple effect on click */
.bulk-action-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.bulk-action-btn:active:not(:disabled)::after {
  width: 300px;
  height: 300px;
}

/* Loading state */
.bulk-action-btn.loading {
  pointer-events: none;
}

.bulk-action-btn.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bulk-action-btn {
    font-size: 0.9rem;
    padding: 0.7rem 1rem !important;
  }

  .bulk-action-btn i {
    font-size: 1rem;
  }
}

/* Enhanced disabled state */
.bulk-action-btn:disabled {
  pointer-events: none;
}
/* Invitations and Team specific styles */

.invitation-form {
  max-width: 600px;
  margin: 0 auto;
}

.invitation-role-descriptions {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  padding: 1rem;
}

.invitation-role-descriptions .role-item {
  margin-bottom: 0.75rem;
}

.invitation-role-descriptions .role-item:last-child {
  margin-bottom: 0;
}

.invitation-role-descriptions ul {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.invitation-role-descriptions ul li {
  margin-bottom: 0.25rem;
}

.invitation-info-card {
  margin-top: 1.5rem;
}

.invitation-info-card ul {
  color: #6c757d;
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.invitation-info-card ul li {
  margin-bottom: 0.5rem;
}

.invitation-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 576px) {
  .invitation-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  
  .invitation-form-actions .btn {
    width: 100%;
  }
}

/* Avatar styles for invitation list */
.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-title {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Team page specific styles */
.team-stats .card {
  transition: transform 0.2s ease-in-out;
}

.team-stats .card:hover {
  transform: translateY(-2px);
}

.team-member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.invitation-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.team-table .btn-group-sm .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}
/* Team Memberships styles */

/* User Avatars */
.user-avatar {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.user-avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

/* Tab Navigation */
.nav-tabs {
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
  color: #6c757d;
  padding: 0.75rem 1rem;
  font-weight: 500;
}

.nav-tabs .nav-link:hover {
  border-color: #e9ecef #e9ecef #dee2e6;
  isolation: isolate;
}

.nav-tabs .nav-link.active {
  color: #0d6efd;
  background-color: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
}

.nav-tabs .nav-link .badge {
  font-weight: normal;
}

/* Tables */
.table {
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  padding: 1rem 0.75rem;
  vertical-align: middle;
}

.table thead th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.025em;
  color: #4b5563;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Card styles */
.card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-body {
  padding: 1.5rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #6c757d;
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.4em 0.7em;
}

/* Dropdown menu */
.dropdown-menu {
  font-size: 0.875rem;
  padding: 0.5rem 0;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
  padding: 0.5rem 1rem;
}

.dropdown-item i {
  opacity: 0.7;
  width: 1.25rem;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 *

 * It is generally better to create a new file per style scope.
 *


 */

/* Modern Typography & Enhanced Color Palette */
[x-cloak] { display: none !important; }

:root {
  --font-primary: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial,
    sans-serif;
  --font-size-base: 0.95rem;
  --line-height-base: 1.6;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Beautiful Color Palette */
  --primary-gradient: #1519fa;
  --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

  /* Soft Background Colors */
  --bg-soft-purple: #f5f3ff;
  --bg-soft-blue: #eff6ff;
  --bg-soft-green: #f0fdf4;
  --bg-soft-yellow: #fefce8;
  --bg-soft-red: #fef2f2;

  /* Shadow Levels */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Base font styles */
body {
  font-family: var(--font-primary) !important;
  font-size: var(--font-size-base) !important;
  line-height: var(--line-height-base) !important;
  font-weight: var(--font-weight-normal) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  max-width: 100vw !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

html {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Aggressive horizontal scroll prevention */
*,
*::before,
*::after {
  box-sizing: border-box !important;
}

/* Limit max-width only on non-modal content to prevent horizontal scroll */
body > *:not([x-show]):not([x-data]),
.container,
.container-fluid,
img,
video,
iframe {
  max-width: 100% !important;
}

body,
html {
  width: 100% !important;
  overflow-x: hidden !important;
  position: relative !important;
}

.container,
.container-fluid {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
}

.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
}

.col,
[class*="col-"] {
  max-width: 100% !important;
}

/* Heading improvements */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-weight-semibold) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em;
}

.h1,
h1 {
  font-size: 2.25rem !important;
}
.h2,
h2 {
  font-size: 1.875rem !important;
}
.h3,
h3 {
  font-size: 1.5rem !important;
}

/* =======================================
   EMAIL MODAL STYLING - PRODUCTION READY
   =======================================
   
   Professional modal styling for email account connection:
   - Multi-step modal with gradient headers
   - Compact form design with proper spacing
   - Account type cards with hover effects
   - Responsive design for all screen sizes
   - Clean, maintainable CSS structure
   
   Features:
   - Purple gradient theme (#667eea to #764ba2)
   - Card hover animations and transitions
   - Professional form styling
   - Email provider hint styling
   - Compact layout optimizations
   
   Modified: Removed advanced toggle animations
   ======================================= */

/* ===== MODAL MAX-WIDTH PROTECTION =====
   Prevents the global * { max-width:100% } from breaking modals.
   Inline styles on the Alpine modal use !important too, 
   but this covers Bootstrap modals site-wide.              */
.modal-dialog,
.modal-content,
[x-show] > div > div[x-data] {
  max-width: none !important;
}

/* Modal enhancements */
#addEmailModal .modal-dialog {
  max-width: 900px;
}

#addEmailModal .modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

#addEmailModal .modal-header {
  background: #1519fa;
  color: white;
  border-bottom: none;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  position: relative;
}

#addEmailModal .btn-back-main-modal {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-right: 1rem;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-10px);
}

#addEmailModal .btn-back-main-modal:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-2px);
}

#addEmailModal .btn-back-main-modal:active {
  transform: translateX(-4px) scale(0.95);
}

/* Back button for Step 2 modals (Google, Microsoft, SMTP form) */
.btn-back-step2 {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-right: 1rem;
  flex-shrink: 0;
}

.btn-back-step2:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  transform: translateX(-2px);
}

.btn-back-step2:active {
  transform: translateX(-4px) scale(0.95);
}

#addEmailModal .modal-title {
  font-weight: 600;
  font-size: 1.25rem;
  flex: 1;
}

#addEmailModal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

#addEmailModal .btn-close:hover {
  opacity: 1;
}

#addEmailModal .modal-body {
  padding: 2rem;
  background-color: #fafbfc;
}

/* Account type cards */
.account-type-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.account-type-card:hover {
  transform: translateY(-2px);
}

.account-type-card .card {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.account-type-card:hover .card {
  border-color: #6c5ce7;
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.15);
}

.account-type-card .card.border-primary {
  border-color: #6c5ce7 !important;
  background: linear-gradient(
    135deg,
    rgba(108, 92, 231, 0.1) 0%,
    rgba(108, 92, 231, 0.05) 100%
  );
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.2);
}

/* Step indicators */
.step-item {
  position: relative;
  padding-left: 0;
}

.step-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 40px;
  width: 2px;
  height: calc(100% - 20px);
  background: linear-gradient(180deg, #6c5ce7 0%, #a29bfe 100%);
  opacity: 0.3;
}

.step-item .badge {
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Step number badges */
.step-number {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Form enhancements */
.form-control,
.form-select {
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: white;
}

.form-control:focus,
.form-select:focus {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
  background-color: white;
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: #00b894;
  background-image: none;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #e17055;
  background-image: none;
}

.invalid-feedback {
  color: #e17055;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.valid-feedback {
  color: #00b894;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Button enhancements */
.btn {
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  border-width: 1px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-primary {
  background: #1519fa;
  border: none;
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-success {
  background: #1519fa;
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-danger {
  background: #1519fa;
  border: none;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-outline-primary {
  border-color: #667eea;
  color: #667eea;
}

.btn-outline-primary:hover {
  background: #667eea;
  border-color: #667eea;
  transform: translateY(-1px);
}

.btn-outline-secondary {
  border-color: #667eea;
  color: #667eea;
}

.btn-outline-secondary:hover {
  background: #667eea;
  border-color: #667eea;
  transform: translateY(-1px);
}

/* Alert enhancements */
.alert {
  border: none;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}

.alert-info {
  background: linear-gradient(
    135deg,
    rgba(116, 185, 255, 0.1) 0%,
    rgba(116, 185, 255, 0.05) 100%
  );
  color: #0984e3;
  border-left: 4px solid #74b9ff;
}

.alert-warning {
  background: linear-gradient(
    135deg,
    rgba(253, 203, 110, 0.1) 0%,
    rgba(253, 203, 110, 0.05) 100%
  );
  color: #e17055;
  border-left: 4px solid #fdcb6e;
}

/* Code blocks */
code {
  background: #f8f9fa;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.85rem;
  border: 1px solid #e9ecef;
}

/* Form sections */
.border.rounded {
  border: 1px solid #e1e8ed !important;
  border-radius: 12px !important;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Input groups */
.input-group .btn {
  border-color: #e1e8ed;
}

.input-group .form-control:focus + .btn {
  border-color: #6c5ce7;
}

/* Checkboxes */
.form-check-input {
  width: 1.2em;
  height: 1.2em;
  border: 2px solid #667eea;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.form-check-input:checked {
  background: #1519fa !important;
  border-color: #667eea;
}

.form-check-input:hover {
  border-color: #1519fa;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
  border-color: #667eea;
}

/* Email table checkbox styles */
.email-checkbox,
.email-select-all {
  width: 1.2em;
  height: 1.2em;
  cursor: pointer;
}

.email-row:hover {
  background-color: rgba(102, 126, 234, 0.05);
}

/* Loading states */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Responsive improvements */
@media (max-width: 768px) {
  #addEmailModal .modal-dialog {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }

  #addEmailModal .modal-body {
    padding: 1.5rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
  }

  .btn-group .btn:last-child {
    margin-bottom: 0;
  }
}

/* Animation for step transitions */
.modal-step {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress indicator enhancement */
.steps-container {
  position: relative;
}

/* Tooltip-like hint styling */
#providerHint {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.h4,
h4 {
  font-size: 1.25rem !important;
}
.h5,
h5 {
  font-size: 1.125rem !important;
}
.h6,
h6 {
  font-size: 1rem !important;
}

/* Button typography */
.btn {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-weight-medium) !important;
  font-size: 0.9rem !important;
  letter-spacing: -0.01em;
}

/* Navbar improvements */
.navbar-brand {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-weight-bold) !important;
  font-size: 1.35rem !important;
  letter-spacing: -0.02em;
}

.nav-link {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-weight-medium) !important;
  font-size: 0.95rem !important;
}

/* Table typography */
.table {
  font-family: var(--font-primary) !important;
  font-size: 0.9rem !important;
}

.table th {
  font-weight: var(--font-weight-semibold) !important;
  font-size: 0.85rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table td {
  font-weight: var(--font-weight-normal) !important;
}

/* Badge improvements */
.badge {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-weight-medium) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.02em;
}

/* Form improvements */
.form-label {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-weight-medium) !important;
  font-size: 0.9rem !important;
}

.form-control,
.form-select {
  font-family: var(--font-primary) !important;
  font-size: 0.9rem !important;
  font-weight: var(--font-weight-normal) !important;
}

/* Modal improvements */
.modal-title {
  font-family: var(--font-primary) !important;
  font-weight: var(--font-weight-semibold) !important;
}

/* Card improvements */
.card-header h5 {
  font-weight: var(--font-weight-semibold) !important;
}

/* Small text improvements */
small,
.small {
  font-size: 0.8rem !important;
  font-weight: var(--font-weight-normal) !important;
}

/* Text utilities override */
.fw-semibold {
  font-weight: var(--font-weight-semibold) !important;
}
.fw-medium {
  font-weight: var(--font-weight-medium) !important;
}
.fw-small {
  min-width: 30px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
}
.fw-bold {
  font-weight: var(--font-weight-bold) !important;
}

/* Beautiful Modern Cards */
.card {
  border-radius: 20px !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-xl);
  border-color: rgba(102, 126, 234, 0.2) !important;
}

.card-body {
  padding: 1.75rem !important;
}

.card-header {
  background: linear-gradient(135deg, var(--bg-soft-purple), white) !important;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1) !important;
  padding: 1.5rem !important;
  font-weight: 600;
}

/* Stunning Buttons */
.btn {
  border-radius: 12px !important;
  padding: 0.75rem 1.5rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--primary-gradient) !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-success {
  background: var(--success-gradient) !important;
  box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.btn-success:hover {
  box-shadow: 0 8px 25px rgba(17, 153, 142, 0.4);
}

.btn-warning {
  background: var(--warning-gradient) !important;
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

/* Custom Page Padding */
.main-contain-padding {
    padding: 20px 80px 98px 80px !important;
}

.btn-warning:hover {
  box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
}

.btn-danger {
  background: var(--danger-gradient) !important;
  box-shadow: 0 4px 15px rgba(250, 112, 154, 0.3);
}

.btn-danger:hover {
  box-shadow: 0 8px 25px rgba(250, 112, 154, 0.4);
}

/* Beautiful Badges */
.badge {
  border-radius: 10px !important;
  padding: 0.55rem 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Warmup Status Badge Colors - Using Project Theme */
/* Status badges - non-interactive indicators */
.badge.bg-success {
  background: linear-gradient(135deg, #1519fa 0%, #0d11c7 100%) !important;
  color: white !important;
  border: none !important;
  cursor: default !important;
  pointer-events: none;
}

.badge.bg-warning {
  background: linear-gradient(135deg, #667eea 0%, #4f5dd8 100%) !important;
  color: white !important;
  border: none !important;
  cursor: default !important;
  pointer-events: none;
}

.badge.bg-primary {
  background: linear-gradient(135deg, #1519fa 0%, #0d11c7 100%) !important;
  color: white !important;
  border: none !important;
  cursor: default !important;
  pointer-events: none;
}

.badge.bg-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white !important;
  border: none !important;
  cursor: default !important;
  pointer-events: none;
}

.badge.bg-secondary {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%) !important;
  color: white !important;
  border: none !important;
  cursor: default !important;
  pointer-events: none;
}

/* Remove hover effects from status badges */
.badge.bg-success:hover,
.badge.bg-warning:hover,
.badge.bg-primary:hover,
.badge.bg-danger:hover,
.badge.bg-secondary:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Modern Table Styling */
.table {
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.table thead {
  background: linear-gradient(
    135deg,
    var(--bg-soft-purple),
    var(--bg-soft-blue)
  );
}

.table thead th {
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem !important;
  color: #667eea !important;
  border-bottom: 2px solid rgba(102, 126, 234, 0.2) !important;
  padding: 1rem !important;
}

.table tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.table tbody tr:hover {
  background: linear-gradient(
    90deg,
    rgba(102, 126, 234, 0.03),
    rgba(118, 75, 162, 0.03)
  );
  transform: scale(1.005);
}

.table tbody td {
  padding: 1.25rem 1rem !important;
  vertical-align: middle;
}

.navbar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1030 !important;
  position: relative;
}

.nav-link {
  transition: all 0.2s ease;
}

.nav-link:hover {
  /* Removed background color change for navbar */
  transform: none;
}

/* Keep navbar navigation links with their original colors */
.navbar-nav .nav-link.bg-primary:hover {
  background-color: var(--bs-primary) !important;
  color: white !important;
}

.navbar-nav .nav-link:hover {
  background-color: #1519fa !important;
  color: #ffffff !important;
}

.dropdown-menu {
  border: none !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999 !important;
}

.form-control,
.form-select {
  border-radius: 12px !important;
  border: 2px solid #e9ecef !important;
  transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #667eea !important;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15) !important;
  transform: translateY(-1px);
}

.progress {
  border-radius: 10px !important;
  background-color: rgba(0, 0, 0, 0.05) !important;
}

.progress-bar {
  border-radius: 10px !important;
}

/* Modern animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.6s ease;
}

/* Glassmorphism effects */
.bg-glass {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Search field styling */
.search-field {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s ease;
}

.search-field:focus {
  background: rgba(255, 255, 255, 1);
  border-color: #667eea !important;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15) !important;
  transform: translateY(-2px);
}

/* Clear search button styling */
#clearSearchBtn {
  background: transparent !important;
  border: none !important;
  color: #6c757d !important;
  font-size: 1rem;
  padding: 4px !important;
  border-radius: 50% !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

#clearSearchBtn:hover {
  color: #dc3545 !important;
  background-color: rgba(220, 53, 69, 0.1) !important;
  transform: scale(1.1);
}

#clearSearchBtn:active {
  transform: scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-responsive {
    min-width: 200px !important;
  }

  .header-responsive {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  .header-responsive .d-flex:first-child {
    flex-direction: column !important;
    gap: 1rem !important;
  }
}

/* Refresh button styling */
.btn-refresh {
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(0, 0, 0, 0.05) !important;
}

.btn-refresh:hover {
  transform: rotate(180deg) !important;
  background: rgba(102, 126, 234, 0.1);
  border-color: #667eea !important;
}

/* Clickable row styling */
.clickable-row {
  transition: all 0.2s ease;
  cursor: pointer !important;
}

.clickable-row:hover {
  /* Removed background and color changes */
  transform: none;
  box-shadow: none;
}

/* Removed .clickable-row:hover .fw-semibold color change */

/* Ensure checkbox area doesn't inherit cursor */
.clickable-row td:first-child {
  cursor: default !important;
}

/* Upgrade plan link styling */
.nav-link.text-warning {
  transition: all 0.3s ease;
  border-radius: 25px;
}

.nav-link.text-warning:hover {
  background: rgba(255, 193, 7, 0.1) !important;
  transform: translateY(-1px);
}

.nav-link.text-warning .badge {
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.nav-link.text-warning:hover .badge {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* Pulse animation for upgrade badge */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

/* Avatar styling */
.user-avatar {
  width: 36px;
  height: 36px;
}

.user-avatar-icon {
  font-size: 14px;
}

/* Custom Tab Styling */
.nav-tabs {
  border-bottom: none !important;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.nav-tabs .nav-link {
  border: none !important;
  background: transparent;
  color: #6c757d;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 0 !important;
}

.nav-tabs .nav-link:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border-color: transparent !important;
  transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
  background: white !important;
  color: #667eea !important;
  border-color: transparent !important;
  box-shadow: 0 -3px 0 0 #667eea, 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.nav-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: #1519fa;
}

/* Tab Content Styling */
.tab-content {
  background: white;
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Enhanced Form Controls */
.form-control-lg,
.form-select-lg {
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control-lg:focus,
.form-select-lg:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
  transform: translateY(-1px);
}

/* Enhanced Buttons */
.btn {
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

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

/* Quick Action Cards */
.quick-action-btn {
  transition: all 0.3s ease;
  background: white;
}

.quick-action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Enhanced Card Styling */
.card {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.rounded-4 {
  border-radius: 1.5rem !important;
}

/* Account Info Grid */
.account-info-item {
  transition: all 0.3s ease;
  border-radius: 0.75rem;
}

.account-info-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

/* Enhanced Alert Styling */
.alert {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Danger Zone Enhancements */
.border-danger {
  border-color: #dc3545 !important;
  border-width: 2px !important;
}

/* Header Background Pattern */
.card-header {
  border-radius: 1.5rem 1.5rem 0 0 !important;
}

/* Form Label Enhancements */
.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.75rem;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

/* Button Gradient Animations */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.btn[style*="gradient"]:hover {
  background-size: 200% 200%;
  animation: gradientShift 2s ease infinite;
}

/* Tab Icon Styling */
.nav-tabs .nav-link i {
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover i,
.nav-tabs .nav-link.active i {
  transform: scale(1.1);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .nav-tabs .nav-link {
    padding: 1rem 0.5rem !important;
    font-size: 0.9rem;
  }

  .nav-tabs .nav-link small {
    display: none;
  }

  .card-header {
    padding: 2rem 1rem !important;
  }

  .tab-content > div {
    padding: 2rem 1rem !important;
  }
}

/* OAuth Button Styling */
.btn-oauth {
  transition: all 0.3s ease;
  font-weight: 600;
  border-radius: 0.75rem;
  position: relative;
  overflow: hidden;
}

.btn-oauth:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-oauth::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;
}

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

/* Google Button Styling */
.btn-outline-danger.btn-oauth:hover {
  background-color: #ea4335;
  border-color: #ea4335;
  color: white;
}

/* Microsoft Button Styling */
.btn-outline-primary.btn-oauth:hover {
  background-color: #0078d4;
  border-color: #0078d4;
  color: white;
}

/* OAuth Divider */
.oauth-divider {
  position: relative;
  text-align: center;
  margin: 2rem 0;
}

.oauth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #dee2e6;
}

.oauth-divider span {
  background: white;
  padding: 0 1rem;
  color: #6c757d;
  font-size: 0.875rem;
}

/* Enhanced OAuth Icons */
.oauth-icon {
  transition: transform 0.3s ease;
}

.btn-oauth:hover .oauth-icon {
  transform: scale(1.1);
}

/* Navbar Dropdown Z-Index Fixes */
.navbar .dropdown {
  position: static;
}

.navbar .dropdown-menu {
  position: absolute !important;
  z-index: 9999 !important;
  min-width: 200px;
}

/* Ensure dropdown is above all content including tables */
.dropdown-menu.show {
  z-index: 9999 !important;
  position: absolute !important;
}

/* Fix for sticky/fixed positioned elements that might interfere */
.navbar-nav .dropdown-menu {
  z-index: 9999 !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
}

/* Ensure navbar dropdowns work properly on all devices */
@media (min-width: 992px) {
  .navbar-nav .dropdown-menu {
    left: auto !important;
    right: 0 !important;
  }
}

/* Email Modal Styles */
.account-type-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.account-type-card:hover .card {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.account-card {
  transition: all 0.3s ease;
  border: 2px solid #e9ecef !important;
}

.account-card:hover {
  border-color: #0d6efd !important;
}

.modal-step {
  min-height: 400px;
}

.step-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 40px;
  width: 2px;
  height: calc(100% - 40px);
  background: linear-gradient(to bottom, #e9ecef, transparent);
}

.step-item .badge {
  font-size: 0.75rem;
  font-weight: 600;
}

/* ================================
   COMPACT FORM STYLING
   ================================ */

/* Compact form sections */
.border.rounded.p-2 {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border: 1px solid #e3e8ed !important;
  margin-bottom: 0.5rem !important;
}

/* Add spacing between form elements without mb-3 */
#smtpImapForm > div:not(:last-child) {
  margin-bottom: 0.75rem;
}

/* Provider preset sections spacing */
.alert.alert-primary + div {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Compact form controls */
.form-control-sm,
.form-select-sm {
  font-size: 0.875rem;
  padding: 0.375rem 0.5rem;
}

/* Small labels */
.form-label.small {
  font-size: 0.8rem;
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.25rem;
}

/* Compact section headers */
h6.small {
  font-size: 0.9rem !important;
  color: #343a40;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 0.25rem;
}

/* Compact checkboxes */
.form-check-sm .form-check-input {
  margin-top: 0.125rem;
}

.form-check-sm .form-check-label {
  font-size: 0.825rem;
}

/* Compact buttons */
.btn-sm {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
}

/* Compact alerts */
.alert.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  font-size: 0.875rem;
}

/* Reduce spacing between form rows */
.row.g-2 > * {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

/* Compact test connection section */
.bg-light.border.rounded.p-2 {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef) !important;
}

/* Responsive compact layout */
@media (max-width: 768px) {
  .border.rounded.p-2 {
    padding: 1rem !important;
  }

  .form-control-sm,
  .form-select-sm {
    font-size: 0.9rem;
  }
}

/* Compact form row alignment */
.row.g-2.align-items-end {
  align-items: end !important;
}

/* Password toggle button styling */
.btn-outline-secondary.btn-sm {
  border-color: #ced4da;
  color: #6c757d;
  height: calc(1.5em + 0.75rem + 2px);
}

.btn-outline-secondary.btn-sm:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}

/* Ensure consistent input heights in rows */
.row.g-2.align-items-end .form-control-sm,
.row.g-2.align-items-end .form-select-sm,
.row.g-2.align-items-end .btn-sm {
  height: calc(1.5em + 0.75rem + 2px);
}

/* Provider hint styling */
#providerHint {
  font-size: 0.75rem;
  border: 1px solid #bee5eb;
  background: linear-gradient(145deg, #d1ecf1, #b3d4fc);
  border-radius: 0.375rem;
  line-height: 1.2;
}

#providerHint .fas {
  color: #0c5460;
}

#providerHint strong {
  color: #0c5460;
}

#providerHint a {
  color: #0c5460;
  text-decoration: none;
}

#providerHint a:hover {
  color: #084954;
  text-decoration: underline;
}

/* Email provider dropdown styling */
#emailProvider {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

#emailProvider:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Clickable Table Rows */
.clickable-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.clickable-row:hover {
  background-color: rgba(0, 123, 255, 0.05) !important;
}

/* Dashboard Action Buttons */
.warmup-dashboard .header-responsive {
  flex-wrap: wrap;
  gap: 1rem;
}

.warmup-dashboard .btn-lg {
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
}

.warmup-dashboard .btn-lg:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Custom Gray Color for Icons */
.text-custom-gray {
  color: rgb(115, 124, 132) !important;
}

/* Empty State Styling */
.warmup-dashboard .empty-state {
  padding: 3rem 2rem;
}

.warmup-dashboard .empty-state .btn-lg {
  min-width: 200px;
}

/* Responsive Action Buttons */
@media (max-width: 992px) {
  .warmup-dashboard .header-responsive {
    flex-wrap: wrap;
  }

  .warmup-dashboard .header-responsive .d-flex.gap-3 {
    gap: 0.5rem !important;
  }

  .warmup-dashboard .btn-lg {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .warmup-dashboard .header-responsive {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .warmup-dashboard .header-responsive > div:last-child {
    align-self: stretch;
  }

  .warmup-dashboard .header-responsive .d-flex.gap-3 {
    flex-wrap: wrap;
    justify-content: center;
  }

  .warmup-dashboard .empty-state .d-flex {
    flex-direction: column;
  }

  .warmup-dashboard .empty-state .btn-lg {
    width: 100%;
    max-width: 300px;
  }

  .warmup-dashboard .btn-lg {
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    min-width: auto;
  }
}

/* Button Loading States */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Delete Confirmation Modal */
#deleteConfirmationModal .modal-content {
  border-radius: 0.75rem;
  overflow: hidden;
}

#deleteConfirmationModal .modal-header {
  background: #1519fa !important;
}

#deleteConfirmationModal .btn-danger:hover {
  background-color: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 100%
  ) !important;
  border-color: #1519fa !important;
  transform: none;
}

#deleteConfirmationModal .btn-outline-secondary {
  border-width: 2px;
}

#deleteConfirmationModal .btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  transform: none;
}

/* Delete button loading state */
#deleteConfirmationModal .btn-danger:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* Enhanced Colorful Sign Out Button Styling - Override Bootstrap */
.btn.btn-outline-danger.sign-out-btn,
.sign-out-btn.btn,
.sign-out-btn {
  color: white !important;
  background: #1519fa !important;
  background: #1519fa !important;
  border-radius: 10px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3) !important;
}

.btn.btn-outline-danger.sign-out-btn::before,
.sign-out-btn.btn::before,
.sign-out-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #1519fa !important;
  transition: left 0.5s;
}

.btn.btn-outline-danger.sign-out-btn:hover::before,
.sign-out-btn.btn:hover::before,
.sign-out-btn:hover::before {
  left: 100%;
}

.btn.btn-outline-danger.sign-out-btn:hover,
.sign-out-btn.btn:hover,
.sign-out-btn:hover {
  background: #1519fa !important;
  background-color: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 100%
  ) !important;
  color: white !important;
  border-color: #c0392b !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4) !important;
}

.btn.btn-outline-danger.sign-out-btn:active,
.sign-out-btn.btn:active,
.sign-out-btn:active {
  transform: translateY(-1px) scale(1.01) !important;
  box-shadow: 0 3px 12px rgba(231, 76, 60, 0.3) !important;
  background-color: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 100%
  ) !important;
}

.btn.btn-outline-danger.sign-out-btn:focus,
.sign-out-btn.btn:focus,
.sign-out-btn:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3) !important;
}

.btn.btn-outline-danger.sign-out-btn i,
.sign-out-btn.btn i,
.sign-out-btn i {
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

.btn.btn-outline-danger.sign-out-btn:hover i,
.sign-out-btn.btn:hover i,
.sign-out-btn:hover i {
  transform: scale(1.1) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  color: white !important;
}

.btn.btn-outline-danger.sign-out-btn span,
.sign-out-btn.btn span,
.sign-out-btn span {
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Improve dropdown appearance for sign out section */
.dropdown-menu li:last-child {
  margin-top: 4px;
}

.dropdown-menu .sign-out-btn {
  margin: 0;
}

/* Custom Success Notification */
.success-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
  z-index: 9999;
  font-weight: 500;
  font-size: 0.95rem;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  min-width: 280px;
}

.success-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.success-notification.fade-out {
  transform: translateX(400px);
  opacity: 0;
}

.success-notification i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.success-notification::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  border-radius: 12px 12px 0 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .success-notification {
    right: 10px;
    left: 10px;
    min-width: auto;
    transform: translateY(-100px);
  }

  .success-notification.show {
    transform: translateY(0);
  }

  .success-notification.fade-out {
    transform: translateY(-100px);
  }
}

/* Beautiful Email Details Header */
.email-details-header {
  position: relative;
  overflow: hidden;
}

.email-details-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><path d="M0,160L48,138.7C96,117,192,75,288,80C384,85,480,139,576,144C672,149,768,107,864,96C960,85,1056,107,1152,117.3L1248,128L1248,300L1152,300C1056,300,960,300,864,300C768,300,672,300,576,300C480,300,384,300,288,300C192,300,96,300,48,300L0,300Z" fill="rgba(255,255,255,0.1)"/></svg>')
    bottom center/cover no-repeat;
  opacity: 0.5;
}

.email-details-header .card-body {
  position: relative;
  z-index: 2;
}

/* Hover effects for header buttons */
.email-details-header .btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.email-details-header .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.email-details-header .btn:active {
  transform: translateY(0);
}

/* Elegant Email Details Header Enhancements */
.card .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.card .btn:active {
  transform: translateY(0);
}

.card .btn-light:hover {
  background-color: #f8f9fa !important;
  border-color: #dee2e6 !important;
}

.card .btn-light:hover i,
.card .btn-light:hover span {
  color: #495057 !important;
}

/* Icon container hover effect */
.bg-primary.bg-opacity-10 {
  transition: all 0.3s ease;
}

.bg-primary.bg-opacity-10:hover {
  background-color: rgba(13, 110, 253, 0.15) !important;
  transform: scale(1.05);
}

/* Beautiful Sign In Page Styles */
.btn:hover {
  transform: translateY(-2px) !important;
}

.btn:active {
  transform: translateY(0) !important;
}

/* Clean Sign In Form Styles */
.form-control:focus {
  border-color: #667eea !important;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15) !important;
}

/* Icon positioning in forms */
.position-relative .fas {
  pointer-events: none;
}

/* Ensure proper input styling */
.form-control {
  transition: all 0.2s ease;
}

.form-control:focus {
  transform: translateY(-1px);
}

/* OAuth button hover effects */
.btn-light:hover {
  background-color: #f8f9fa !important;
  border-color: #667eea !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Sign in button enhanced hover */
.btn[style*="gradient"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
}

/* Login card animation */
.card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments for email details header */
@media (max-width: 768px) {
  .header-responsive {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
  }

  .header-responsive .d-flex:last-child {
    width: 100%;
    justify-content: center;
  }

  .header-responsive .gap-4 {
    gap: 1rem !important;
  }

  /* Mobile sign in adjustments */
  .min-vh-100 .card {
    margin: 20px !important;
  }
}

/* Comprehensive overflow fix for sign-in page */
.min-vh-100 {
  overflow-x: hidden !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
}

.min-vh-100 .container {
  padding-left: 20px !important;
  padding-right: 20px !important;
  max-width: 100vw !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.min-vh-100 .card {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* Force all form elements to stay within bounds */

/* Remove any min-width constraints */
.form-control,
.btn,
input,
button {
  min-width: 0 !important;
}

/* Ensure card doesn't exceed container */
@media (max-width: 576px) {
  .min-vh-100 .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .min-vh-100 .card-body {
    padding: 2rem 1.5rem !important;
  }
}

/* Complete viewport control - eliminate all scrolling */
.min-vh-100 {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: 100vh !important;
  max-height: 100vh !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
}

/* Container and row adjustments */
.container,
.container-fluid {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* ================================
   BOOTSTRAP FORM-SWITCH STYLES
   ================================ */
/* Ensure Bootstrap form-switch styles are available even if CDN fails */
.form-switch {
  position: relative;
  display: block;
  min-height: 1.5rem;
  padding-left: 2.5em;
}

.form-switch .form-check-input {
  width: 2em;
  margin-left: -2.5em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e") !important;
  background-position: left center !important;
  border-radius: 2em !important;
  border: 1px solid #ced4da !important;
  background-color: #fff !important;
  transition: background-position 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 !important;
}

.form-switch .form-check-input:focus {
  border-color: #86b7fe !important;
  outline: 0 !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%2813, 110, 253, 0.25%29'/%3e%3c/svg%3e") !important;
}

.form-switch .form-check-input:checked {
  background-position: right center !important;
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 1.0%29'/%3e%3c/svg%3e") !important;
}

.form-switch .form-check-input:disabled {
  pointer-events: none;
  filter: none;
  opacity: 0.5;
}

.form-switch .form-check-input[disabled] ~ .form-check-label,
.form-switch .form-check-input:disabled ~ .form-check-label {
  opacity: 0.5;
}

/* Beautiful warmup toggle styling */
.warmup-toggle-container {
  position: relative;
  display: flex;
  align-items: center;
}

.warmup-toggle {
  width: 2.5em !important;
  height: 1.25em !important;
  cursor: pointer !important;
  border-radius: 2em !important;
  border: 2px solid #dee2e6 !important;
  background-color: #f8f9fa !important;
  transition: all 0.3s ease !important;
  position: relative;
}

.warmup-toggle:checked {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 1.0%29'/%3e%3c/svg%3e") !important;
  background-position: right center !important;
}

.warmup-toggle:not(:checked) {
  background-color: #adb5bd !important;
  border-color: #adb5bd !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 1.0%29'/%3e%3c/svg%3e") !important;
  background-position: left center !important;
}

.warmup-toggle:focus {
  box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25) !important;
  border-color: #28a745 !important;
}

.warmup-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Form switch container styling */
.form-check.form-switch {
  display: flex !important;
  align-items: center !important;
  min-height: auto !important;
  padding-left: 2.8em !important;
}

.form-switch .form-check-input {
  margin-left: -2.8em !important;
}

/* Disconnected state styling */
.toggle-placeholder {
  width: 2.5em;
  height: 1.25em;
  border: 2px solid #dee2e6;
  border-radius: 2em;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
  opacity: 0.6;
}

.toggle-placeholder i {
  font-size: 0.7em;
  color: #adb5bd !important;
}

/* Animation for toggle changes */
.warmup-toggle {
  animation: none;
}

.warmup-toggle:checked {
  animation: toggleOn 0.3s ease;
}

@keyframes toggleOn {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Tooltip enhancement */
.warmup-toggle[title]:hover::after {
  content: attr(title);
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
}

.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.col,
[class*="col-"] {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

/* Force all elements to stay within viewport */
input,
button,
div,
span,
p,
a,
form {
  max-width: 100% !important;
}

/* Keep button text on one line */
.btn {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Specific styling for action buttons */
.btn-primary,
.btn-success,
.btn-outline-secondary {
  white-space: nowrap !important;
  min-width: fit-content !important;
}

/* ================================
   REAL-TIME ANALYTICS ANIMATIONS
   ================================ */

/* Flash animation for updated statistics */
.stat-updated {
  animation: flash-update 1s ease-out;
}

@keyframes flash-update {
  0% {
    background-color: rgba(40, 167, 69, 0.2);
    transform: scale(1);
  }
  50% {
    background-color: rgba(40, 167, 69, 0.4);
    transform: scale(1.05);
  }
  100% {
    background-color: transparent;
    transform: scale(1);
  }
}

/* Update notification styling */
.update-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
  z-index: 9999;
  font-weight: 500;
  font-size: 0.95rem;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  min-width: 280px;
}

.update-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.update-notification.fade-out {
  transform: translateX(400px);
  opacity: 0;
}

.update-notification::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  border-radius: 12px 12px 0 0;
}

/* Connection status indicator */
.connection-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.connection-status.connected {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.connection-status.disconnected {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Pulse animation for live stats */
.stat-live {
  position: relative;
}

.stat-live::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  background: #28a745;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* Recent activity animation */
.activity-item.new-activity {
  animation: slide-in-activity 0.5s ease-out;
  background: rgba(40, 167, 69, 0.05);
  border-left: 3px solid #28a745;
}

@keyframes slide-in-activity {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Analytics card glow effect on update */
.analytics-updated {
  animation: glow-update 2s ease-out;
}

.border-radius {
  border: 1px solid #d7d7d752;
  border-radius: 8px;
}

@keyframes glow-update {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(40, 167, 69, 0.2);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* Progress bar animation for provider stats */
.provider-progress {
  transition: width 1s ease-out;
}

/* Mobile responsive for notifications */
@media (max-width: 768px) {
  .update-notification {
    right: 10px;
    left: 10px;
    min-width: auto;
    transform: translateY(-100px);
  }

  .update-notification.show {
    transform: translateY(0);
  }

  .update-notification.fade-out {
    transform: translateY(-100px);
  }
}

/* Remove modal backdrop (gray background) - ALL VARIATIONS */
.modal-backdrop,
.modal-backdrop.fade,
.modal-backdrop.show,
.modal-backdrop.fade.show {
  display: none !important;
  opacity: 0 !important;
  background-color: transparent !important;
  visibility: hidden !important;
}

/* Ensure modal itself has no background */
.modal {
  background-color: transparent !important;
}

.modal.show,
.modal.fade,
.modal.fade.show {
  background-color: transparent !important;
}

/* Ensure body doesn't get backdrop styling when modal is open */
body.modal-open {
  overflow: auto !important;
}

/* ================================================
   BEAUTIFUL DASHBOARD KPI CARDS
   ================================================ */

.kpi-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-card .card {
  border: none !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.98)
  );
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.kpi-card .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.kpi-card:hover .card::before {
  left: 100%;
}

.kpi-card:hover .card {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.kpi-card .card-body {
  position: relative;
  z-index: 1;
}

.kpi-card .rounded-circle {
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.kpi-card:hover .rounded-circle {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Specific KPI Card Colors */
.kpi-card:nth-child(1) .rounded-circle {
  background: linear-gradient(135deg, #e8f3ff, #cee5ff) !important;
}

.kpi-card:nth-child(1) .fa-inbox {
  color: #4facfe !important;
}

.kpi-card:nth-child(2) .rounded-circle {
  background: linear-gradient(135deg, #e8f5e8, #cef5ce) !important;
}

.kpi-card:nth-child(2) .fa-check-circle {
  color: #11998e !important;
}

.kpi-card:nth-child(3) .rounded-circle {
  background: linear-gradient(135deg, #e8f5ff, #d0ecff) !important;
}

.kpi-card:nth-child(3) .fa-paper-plane {
  color: #00f2fe !important;
}

.kpi-card:nth-child(4) .rounded-circle {
  background: linear-gradient(135deg, #e8f5e8, #d4f5d4) !important;
}

.kpi-card:nth-child(4) .fa-envelope-open {
  color: #38ef7d !important;
}

.kpi-card:nth-child(5) .rounded-circle {
  background: linear-gradient(135deg, #fff5e0, #ffe8b3) !important;
}

.kpi-card:nth-child(5) .fa-star {
  color: #fbbf24 !important;
}

/* KPI Card Icons */
.kpi-card .fa-inbox,
.kpi-card .fa-check-circle,
.kpi-card .fa-paper-plane,
.kpi-card .fa-envelope-open,
.kpi-card .fa-star {
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

.kpi-card:hover .fa-inbox,
.kpi-card:hover .fa-check-circle,
.kpi-card:hover .fa-paper-plane,
.kpi-card:hover .fa-envelope-open,
.kpi-card:hover .fa-star {
  transform: scale(1.2);
}

/* KPI Card Typography */
.kpi-card .fw-bold {
  font-size: 2rem !important;
  font-weight: 800 !important;
  background: #1519fa;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

.kpi-card .text-muted {
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.3px;
  color: #6c757d !important;
}

/* Shimmer Animation for Numbers */
@keyframes shimmer {
  0%,
  100% {
    background-position: -200% center;
  }
  50% {
    background-position: 200% center;
  }
}

/* Responsive KPI Cards */
@media (max-width: 1400px) {
  .kpi-card {
    min-width: 180px;
  }
}

@media (max-width: 992px) {
  .kpi-card {
    min-width: 150px;
  }

  .kpi-card .fw-bold {
    font-size: 1.75rem !important;
  }
}

@media (max-width: 768px) {
  .kpi-card {
    min-width: 100%;
  }
}

/* ================================================
   ENHANCED TABLE STYLING
   ================================================ */

.table-responsive {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.email-checkbox {
  width: 20px !important;
  height: 20px !important;
  border: 2px solid #667eea !important;
  border-radius: 6px !important;
  cursor: pointer;
  transition: all 0.3s ease;
}

.email-checkbox:checked {
  background: #1519fa !important;
  border-color: #667eea !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.email-checkbox:hover {
  transform: scale(1.1);
  border-color: #764ba2 !important;
}

/* Email Row Styling */
.table tbody tr {
  position: relative;
}

.table tbody tr.selected {
  background: linear-gradient(
    90deg,
    rgba(102, 126, 234, 0.08),
    rgba(118, 75, 162, 0.08)
  ) !important;
  border-left: 4px solid #667eea !important;
}

.table tbody tr.just-selected {
  animation: rowSelectPulse 0.5s ease-out;
}

@keyframes rowSelectPulse {
  0% {
    transform: scale(1);
    box-shadow: none;
  }
  50% {
    transform: scale(1.01);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: none;
  }
}

/* Enhanced Toggles */
.form-switch .form-check-input {
  width: 2.5em !important;
  height: 1.25em !important;
  border-radius: 2em !important;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-switch .form-check-input:checked {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
  border-color: #11998e !important;
  box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3);
}

.form-switch .form-check-input:hover {
  transform: scale(1.05);
}

/* ================================================
   BEAUTIFUL SCROLLBAR
   ================================================ */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #1519fa;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* ================================================
   PAGE TRANSITIONS
   ================================================ */

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================
   ENHANCED SEARCH BAR
   ================================================ */

.search-field {
  border-radius: 50px !important;
  padding: 0.75rem 1.5rem !important;
  border: 2px solid rgba(102, 126, 234, 0.2) !important;
  background: white !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.search-field:focus {
  border-color: #667eea !important;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 6px 20px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px);
}

#clearSearchBtn {
  border-radius: 50% !important;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#clearSearchBtn:hover {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
  color: white !important;
  transform: rotate(90deg) scale(1.1);
}
