html {
  overflow-x: hidden;
}

body {
  background: #f7f9fb;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  background: #fff !important; /* sky blue */
  box-shadow: 0 2px 8px rgba(37,99,235,0.06);
  border-bottom: 1px solid #fff;
}

.card, .table, .form-control, .form-select, .btn, .navbar, .tab-content {
  border-radius: 0.75rem !important;
}

.card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: none;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  animation: cardFadeIn 0.5s cubic-bezier(.4,0,.2,1) 0.1s forwards;
}

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.table {
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.03);
}

.table th, .table td {
  vertical-align: middle;
}

.btn-primary, .btn-success, .btn-warning, .btn-danger, .btn-info {
  border: none;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

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

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

.btn-warning:hover {
  background: #f59e42;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-info:hover {
  background: #0ea5e9;
}

.form-control, .form-select {
  background: #f3f6fa;
  border: 1px solid #e5e7eb;
  box-shadow: none;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-control:focus, .form-select:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 2px #2563eb22;
}

.alert {
  border-radius: 0.5rem;
  animation: fadeInAlert 0.4s cubic-bezier(.4,0,.2,1);
}

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

.tab-content {
  background: #fff;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.nav-tabs .nav-link.active {
  background: #2563eb;
  color: #fff !important;
  border: none;
}

.nav-tabs .nav-link {
  color: #2563eb;
  border: none;
  background: #e0e7ff;
  margin-right: 0.25rem;
  transition: background 0.2s, color 0.2s;
}

.nav-tabs .nav-link:hover {
  background: #c7d2fe;
  color: #1e40af;
}

footer {
  font-size: 0.95rem;
  color: #888;
}

@media (max-width: 768px) {
  .tab-content {
    padding: 1rem 0.5rem;
  }
  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 0.5rem 0.75rem;
  }
  .navbar-brand {
    font-size: 1.1rem;
  }
}

/* Animations and transitions */
.tab-pane {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
}
.tab-pane.active, .tab-pane.show.active {
  opacity: 1 !important;
  transform: none !important;
}

.btn {
  transition: box-shadow 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}
.btn:active {
  transform: scale(0.97);
}

/* Subtle hover for cards */
.card:hover {
  box-shadow: 0 6px 24px rgba(37,99,235,0.08), 0 1.5px 6px rgba(0,0,0,0.03);
  transform: translateY(-2px) scale(1.01);
}

/* Fade in for alerts */
.alert {
  animation: fadeInAlert 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeInAlert {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

/* Custom Navbar Styles for EmailBulk - Sky Blue Modern Look */
.navbar-brand {
  letter-spacing: 1px;
  font-size: 1.6rem;
  color: #2563eb !important;
}
.navbar .navbar-nav .nav-link {
  color: #0a2540;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  border-radius: 0.5rem;
  margin-right: 0.25rem;
  padding: 0.5rem 1rem;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: #2563eb;
  background: #bae6fd;
}
.navbar .navbar-nav .dropdown-menu {
  background: #e0f2fe;
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px rgba(37,99,235,0.08);
  border: 1px solid #bae6fd;
  min-width: 180px;
}
.navbar .navbar-nav .dropdown-item {
  color: #0a2540;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
}
.navbar .navbar-nav .dropdown-item:hover {
  background: #2563eb;
  color: #fff;
}
.navbar-user {
  color: #2563eb;
  font-weight: 600;
  margin-right: 1rem;
}
.navbar .navbar-toggler {
  border: none;
}

/* --- Bulk Email Send Page Professional Enhancements --- */
.bulk-section-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: #2563eb;
  letter-spacing: 1.5px;
  margin-bottom: 0.7rem;
  text-shadow: 0 2px 8px rgba(37,99,235,0.07);
}
.bulk-section-desc {
  color: #64748b;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}
.bulk-card {
  border-radius: 1.5rem !important;
  box-shadow: 0 6px 32px rgba(37,99,235,0.10);
  border: none;
  background: #fafdff;
  margin-bottom: 2.5rem;
  padding: 2.5rem 2.2rem !important;
  transition: box-shadow 0.2s;
}
.bulk-card h5, .bulk-card h6 {
  color: #2563eb;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.bulk-upload-btn, .bulk-send-btn {
  font-size: 1.08rem;
  padding: 0.6rem 1.5rem;
  border-radius: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  margin-top: 0.5rem;
}
.bulk-upload-btn:hover, .bulk-send-btn:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
.bulk-table th, .bulk-table td {
  vertical-align: middle;
  font-size: 1.13rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.bulk-table th {
  font-size: 1.18rem;
  font-weight: 800;
  background: #e0f2fe !important;
  border-top-left-radius: 0.7rem;
  border-top-right-radius: 0.7rem;
}
.bulk-table tr {
  transition: background 0.18s;
}
.bulk-table tr.selected, .bulk-table tr:hover {
  background: #e0f2fe;
}
.bulk-table input[type="checkbox"] {
  width: 1.25em;
  height: 1.25em;
  accent-color: #2563eb;
  border-radius: 0.3em;
  margin-right: 0.2em;
}
.bulk-action-btn {
  border-radius: 0.7rem !important;
  font-size: 1.15rem;
  margin-right: 0.22rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  padding: 0.55rem 0.95rem;
}
.bulk-email-list .list-group-item {
  border: none;
  border-bottom: 1px solid #f1f5f9;
  font-size: 1.13rem;
  padding-left: 0.7rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.bulk-email-list .list-group-item:last-child {
  border-bottom: none;
}
/* Alerts */
.alert {
  border-radius: 1rem;
  font-size: 1.18rem;
  box-shadow: 0 4px 16px rgba(37,99,235,0.07);
  border: none;
  padding: 1.1rem 1.5rem;
}
/* Responsive tweaks */
@media (max-width: 991px) {
  .bulk-section-title { font-size: 1.7rem; }
  .bulk-section-desc { font-size: 1.05rem; }
  .bulk-card { padding: 1.2rem 0.7rem !important; }
  .bulk-table th, .bulk-table td { font-size: 1rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
} 

/* --- Single Email Page Responsive Enhancements --- */
@media (max-width: 991px) {
  .single-email-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  .signature-preview {
    font-size: 0.98rem;
    padding: 0.7rem 0.7rem;
  }
  .row.g-4 > [class^="col-"] {
    margin-bottom: 1.2rem;
  }
  #singleEmailForm .form-control, #singleEmailForm .form-select {
    font-size: 1rem;
    padding: 0.6rem 0.7rem;
  }
  .card.p-4 {
    padding: 1.2rem 0.7rem !important;
  }
  .btn-primary.w-100 {
    font-size: 1rem;
    padding: 0.7rem 0.5rem;
  }
}
@media (max-width: 575px) {
  .single-email-title {
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
  }
  .card.p-4 {
    padding: 0.7rem 0.3rem !important;
  }
  .signature-preview {
    font-size: 0.92rem;
    padding: 0.5rem 0.3rem;
  }
} 

/* --- Dashboard (index.php) Responsive Enhancements --- */
@media (max-width: 991px) {
  .row.g-4 > [class^="col-"] {
    margin-bottom: 1.2rem;
  }
  .card.text-bg-primary,
  .card.text-bg-success,
  .card.text-bg-warning {
    min-width: 100%;
    margin-bottom: 1rem;
  }
  .display-6 {
    font-size: 2rem;
  }
}
@media (max-width: 575px) {
  .display-6 {
    font-size: 1.3rem;
  }
  .card.text-bg-primary,
  .card.text-bg-success,
  .card.text-bg-warning {
    padding: 0.7rem 0.3rem !important;
  }
  .row.mb-4 h2 {
    font-size: 1.2rem;
  }
} 

/* --- Bulk Email Send Page UI/UX Enhancements --- */
.bulk-section-title {
  color: #2563eb;
  font-weight: 900;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(37,99,235,0.07);
}
.bulk-section-desc {
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.bulk-card {
  border-radius: 1.2rem !important;
  box-shadow: 0 4px 24px rgba(37,99,235,0.10);
  border: none;
  background: #fff;
  margin-bottom: 2rem;
  padding: 2rem 1.5rem !important;
  transition: box-shadow 0.2s;
}
.bulk-card h5 {
  color: #2563eb;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}
.bulk-upload-btn, .bulk-send-btn {
  font-size: 1.08rem;
  padding: 0.7rem 1.5rem;
  border-radius: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.bulk-upload-btn:hover, .bulk-send-btn:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
#bulkSendForm .form-label, #bulkSendForm label.form-label {
  font-weight: 500;
  color: #1e293b;
}
#bulkSendForm .form-control, #bulkSendForm .form-select {
  border-radius: 0.5rem;
  border: 1px solid #e0e7ef;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#bulkSendForm .form-control:focus, #bulkSendForm .form-select:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 2px #2563eb22;
}
#bulkSendForm textarea.form-control {
  min-height: 120px;
  resize: vertical;
}
#bulkSendForm .btn-success.bulk-upload-btn {
  background: linear-gradient(90deg, #22c55e 0%, #2563eb 100%);
  border: none;
  color: #fff;
}
#bulkSendForm .btn-success.bulk-upload-btn:hover {
  background: linear-gradient(90deg, #2563eb 0%, #22c55e 100%);
}
#bulkSendForm .border.bg-light {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #334155;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.table-responsive {
  border-radius: 0.7rem;
  background: #fafdff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.04);
  padding: 0.5rem 0.5rem 0 0.5rem;
}
.bulk-table th, .bulk-table td {
  font-size: 1.05rem;
  padding: 0.7rem 0.5rem;
}
.bulk-table th {
  background: #e0f2fe !important;
  color: #2563eb;
  font-weight: 700;
}
.bulk-table tr.selected, .bulk-table tr:hover {
  background: #e0f2fe;
}
.bulk-table input[type="checkbox"] {
  width: 1.15em;
  height: 1.15em;
  accent-color: #2563eb;
  border-radius: 0.3em;
  margin-right: 0.2em;
}
#recipients-table-container {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1rem;
}
#view-all-btn {
  margin-top: 0.5rem;
  font-size: 0.98rem;
  border-radius: 0.5rem;
  padding: 0.4rem 1.2rem;
}
/* Modal styling */
#viewAllModal .modal-content {
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px rgba(37,99,235,0.10);
}
#viewAllModal .modal-title {
  color: #2563eb;
  font-weight: 700;
}
#viewAllModal .form-control {
  border-radius: 0.5rem;
  border: 1px solid #e0e7ef;
  background: #f8fafc;
}
#viewAllModal .form-control:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 2px #2563eb22;
}
#viewAllModal .table {
  background: #fff;
  border-radius: 0.7rem;
}
#viewAllModal .modal-footer .btn-secondary {
  border-radius: 0.5rem;
  padding: 0.4rem 1.2rem;
}
/* Alerts */
.alert {
  border-radius: 1rem;
  font-size: 1.08rem;
  box-shadow: 0 4px 16px rgba(37,99,235,0.07);
  border: none;
  padding: 1.1rem 1.5rem;
}
/* Responsive tweaks for bulk email send */
@media (max-width: 991px) {
  .bulk-section-title { font-size: 1.3rem; text-align: center; }
  .bulk-section-desc { font-size: 1rem; text-align: center; }
  .bulk-card { padding: 1.2rem 0.7rem !important; }
  .row.g-4 > [class^="col-"] { margin-bottom: 1.2rem; }
  #bulkSendForm .form-control, #bulkSendForm .form-select { font-size: 1rem; padding: 0.6rem 0.7rem; }
  #recipients-table-container { max-height: 200px; }
}
@media (max-width: 575px) {
  .bulk-section-title { font-size: 1.05rem; }
  .bulk-section-desc { font-size: 0.95rem; }
  .bulk-card { padding: 0.7rem 0.3rem !important; }
  #bulkSendForm .form-control, #bulkSendForm .form-select { font-size: 0.95rem; }
  #recipients-table-container { max-height: 120px; }
} 

/* --- SMTP Page Styles --- */
.smtp-list-bg {
  background: #f7f9fb;
  min-height: 100vh;
  padding: 1rem 0;
  overflow-x: hidden;
}

.smtp-card {
  border-radius: 1.5rem !important;
  box-shadow: 0 8px 32px 0 rgba(80,120,200,0.13) !important;
  max-width: 2100px;
  width: 100%;
  margin: 2.5rem auto;
  border: none;
  background: #fff;
}

.smtp-header {
  background: #fafdff !important;
  border-bottom: 1px solid #f0f2f7 !important;
  padding: 2.2rem 2.5rem 1.2rem 2.5rem;
  border-radius: 1.5rem 1.5rem 0 0;
}

.add-smtp-btn {
  font-size: 1.15rem;
  padding: 0.7rem 2.2rem;
  box-shadow: 0 2px 8px 0 rgba(80,120,200,0.09);
  border-radius: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.2s, box-shadow 0.2s;
}
.add-smtp-btn:hover, .add-smtp-btn:focus {
  background: #2d6cdf;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(80,120,200,0.18);
}

.smtp-card .table {
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  margin-bottom: 0;
}

.smtp-card .table thead th {
  font-size: 1.08rem;
  background: #fafdff;
  border-bottom: 2px solid #e9f0ff;
  color: #2d3954;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.smtp-card .table td, .smtp-card .table th {
  vertical-align: middle !important;
  word-break: break-word;
  white-space: normal;
  padding: 1rem 0.7rem;
}

.smtp-card .table-hover tbody tr:hover {
  background: #f6f9ff;
  transition: background 0.2s;
}

.smtp-card .badge.bg-primary, .smtp-card .badge.bg-success {
  font-size: 1rem;
  border-radius: 0.6rem;
  font-weight: 600;
  padding: 0.5em 1.1em;
}

.smtp-card .badge.bg-primary {
  background: linear-gradient(90deg, #2d6cdf 60%, #4e8cff 100%);
}

.smtp-card .badge.bg-success {
  background: linear-gradient(90deg, #3ecf8e 60%, #2dbd6c 100%);
}

.smtp-card .alert {
  border-radius: 0.7rem;
  font-size: 1.08rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 8px 0 rgba(80,120,200,0.07);
}

.modal-content {
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px 0 rgba(80,120,200,0.13);
}

.modal-header {
  border-radius: 1.2rem 1.2rem 0 0;
  background: #fafdff;
}

.modal-title {
  font-weight: 700;
  letter-spacing: 1px;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.btn-close:hover {
  opacity: 1;
}

.text-nowrap {
  white-space: nowrap !important;
}

input.form-control-lg, select.form-select-lg {
  font-size: 1.08rem;
  padding: 0.7rem 1.1rem;
  border-radius: 0.7rem !important;
  background: #f6f8fb !important;
  border: 1px solid #e0e6f0;
  transition: border 0.2s, box-shadow 0.2s;
  font-family: 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
}
input.form-control-lg:focus, select.form-select-lg:focus {
  border-color: #2d6cdf;
  box-shadow: 0 0 0 2px #e9f0ff;
  background: #fff !important;
}

@media (max-width: 768px) {
  .smtp-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 1.5rem 1.2rem 1rem 1.2rem;
  }
  .smtp-card .table thead th, .smtp-card .table td {
    font-size: 0.98rem;
    padding: 0.7rem 0.4rem;
  }
  .smtp-card {
    max-width: 98vw;
    margin: 1.5rem 1vw 0 1vw;
  }
} 

/* --- SMTP Mobile Card Styles --- */
.smtp-mobile-card {
  border-radius: 1.2rem;
  box-shadow: 0 4px 16px rgba(80,120,200,0.10);
  border: 1px solid #f0f2f7;
  background: #fff;
  margin-bottom: 1.2rem;
  padding: 1.2rem 1rem;
  font-size: 1.05rem;
}
.smtp-mobile-card strong {
  min-width: 110px;
  display: inline-block;
  color: #2d3954;
  font-weight: 600;
}
.smtp-mobile-card .badge {
  font-size: 0.98rem;
}
.smtp-mobile-card .btn {
  font-size: 0.98rem;
  padding: 0.5rem 0.7rem;
}
.smtp-mobile-card .d-flex {
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .smtp-mobile-card { display: none !important; }
} 

/* --- Settings Page UI/UX Enhancements --- */
.settings-card {
  border-radius: 1.3rem !important;
  box-shadow: 0 6px 32px rgba(37,99,235,0.10);
  border: none;
  background: #fff;
  margin-bottom: 2.5rem;
  padding: 2.5rem 2.2rem !important;
  transition: box-shadow 0.2s;
}
.settings-card h2, .settings-card h4 {
  color: #2563eb;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.settings-card .form-label {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.3rem;
}
.settings-card .form-control {
  border-radius: 0.7rem;
  border: 1px solid #e0e7ef;
  background: #f8fafc;
  font-size: 1.08rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.settings-card .form-control:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 2px #2563eb22;
}
.settings-card .btn-primary, .settings-card .btn-success, .settings-card .btn-warning {
  font-size: 1.08rem;
  border-radius: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
  padding: 0.7rem 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
}
.settings-card .btn-primary:hover, .settings-card .btn-success:hover, .settings-card .btn-warning:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
.settings-card .alert {
  border-radius: 0.7rem;
  font-size: 1.08rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 8px 0 rgba(80,120,200,0.07);
}
.settings-card .signature-preview {
  background: #f6f8fb;
  border: 1.5px dashed #2563eb44;
  border-radius: 0.7rem;
  padding: 1.1rem 1rem;
  color: #334155;
  font-size: 1.08rem;
  margin-top: 0.5rem;
}
@media (max-width: 991px) {
  .settings-card {
    padding: 1.2rem 0.7rem !important;
  }
  .settings-card h2 {
    font-size: 1.3rem;
  }
}
@media (max-width: 575px) {
  .settings-card {
    padding: 0.7rem 0.3rem !important;
  }
  .settings-card h2 {
    font-size: 1.05rem;
  }
} 

/* --- SMTP Table Actions Column: Compact Buttons --- */
.smtp-card .table td .d-flex {
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}
/* --- SMTP Table Actions Column: Slightly Larger Buttons with Bigger Background --- */
.smtp-card .table td .btn {
  min-width: 70px;
  min-height: 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.8rem;
  box-shadow: 0 1px 4px rgba(37,99,235,0.08);
  padding: 0.4rem 1.1rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s, transform 0.13s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
} 

/* === Add SMTP Page Styles === */
.fullpage-form-wrapper {
  width: 100vw;
  min-height: 80vh;
  background: #f6f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.full-width-form {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.smtp-hero-header {
  background: linear-gradient(90deg, #fafdff 60%, #e0f2fe 100%);
  border-radius: 0 0 2.5rem 2.5rem;
  box-shadow: 0 4px 24px rgba(37,99,235,0.07);
  margin-bottom: 1.2rem;
}
.smtp-hero-header h1 {
  font-size: 2.2rem;
  letter-spacing: 1px;
  font-weight: 700;
}
.smtp-hero-header .btn {
  font-size: 1.1rem;
  padding: 0.7rem 2.2rem;
  border-radius: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.card.full-width-form {
  padding: 2.5rem 2.5rem;
  border-radius: 1.5rem !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}
@media (max-width: 991px) {
  .full-width-form {
    max-width: 98vw;
    padding: 1.5rem !important;
  }
  .smtp-hero-header h1 {
    font-size: 1.5rem;
  }
}
.form-control-xl, .form-select-xl {
  font-size: 1.18rem;
  min-height: 3.2rem;
  border-radius: 0.75rem !important;
  background: #f8f9fa !important;
  border: 1px solid #e3e6ed !important;
}
.form-control-xl:focus, .form-select-xl:focus {
  box-shadow: 0 0 0 0.15rem rgba(13,110,253,.15);
  border-color: #86b7fe !important;
  background: #fff !important;
}
.btn-xl {
  font-size: 1.25rem;
  min-height: 3.2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(13,110,253,0.08);
} 

/* === SMTP Accounts Page Styles === */
.smtp-card {
  border-radius: 1.5rem !important;
  box-shadow: 0 8px 32px 0 rgba(80,120,200,0.13) !important;
  max-width: 1200px;
  width: 100%;
  margin: 2rem auto;
  border: none;
  background: #fff;
}

.smtp-header {
  background: #fafdff !important;
  border-bottom: 1px solid #f0f2f7 !important;
  padding: 2.2rem 2.5rem 1.2rem 2.5rem;
  border-radius: 1.5rem 1.5rem 0 0;
}

.add-smtp-btn {
  font-size: 1.15rem;
  padding: 0.7rem 2.2rem;
  box-shadow: 0 2px 8px 0 rgba(80,120,200,0.09);
  border-radius: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.2s, box-shadow 0.2s;
}
.add-smtp-btn:hover, .add-smtp-btn:focus {
  background: #2d6cdf;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(80,120,200,0.18);
}

.smtp-card .table {
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  margin-bottom: 0;
}

.smtp-card .table thead th {
  font-size: 1.08rem;
  background: #fafdff;
  border-bottom: 2px solid #e9f0ff;
  color: #2d3954;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.smtp-card .table td, .smtp-card .table th {
  vertical-align: middle !important;
  word-break: break-word;
  padding: 1rem 0.7rem;
}

.smtp-card .table-hover tbody tr:hover {
  background: #f6f9ff;
  transition: background 0.2s;
}

.smtp-card .badge.bg-primary, .smtp-card .badge.bg-success {
  font-size: 1rem;
  border-radius: 0.6rem;
  font-weight: 600;
  padding: 0.5em 1.1em;
}

.smtp-card .badge.bg-primary {
  background: linear-gradient(90deg, #2d6cdf 60%, #4e8cff 100%);
}

.smtp-card .badge.bg-success {
  background: linear-gradient(90deg, #3ecf8e 60%, #2dbd6c 100%);
}

.smtp-card .alert {
  border-radius: 0.7rem;
  font-size: 1.08rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 8px 0 rgba(80,120,200,0.07);
}

.smtp-table-responsive {
  width: 100%;
  overflow-x: hidden;
}

.smtp-mobile-card {
  border-radius: 1.2rem;
  box-shadow: 0 4px 16px rgba(80,120,200,0.10);
  border: 1px solid #f0f2f7;
  background: #fff;
  margin-bottom: 1.2rem;
  padding: 1.2rem 1rem;
  font-size: 1.05rem;
}
.smtp-mobile-card strong {
  min-width: 110px;
  display: inline-block;
  color: #2d3954;
  font-weight: 600;
}
.smtp-mobile-card .badge {
  font-size: 0.98rem;
}
.smtp-mobile-card .btn {
  font-size: 0.98rem;
  padding: 0.5rem 0.7rem;
}
.smtp-mobile-card .d-flex {
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .smtp-mobile-card { display: none !important; }
}

/* SMTP Table Actions Column: Compact Buttons */
.smtp-card .table td .d-flex {
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

/* SMTP Table Actions Column: Proper Button Sizing */
.smtp-card .table td .btn {
  min-width: 80px;
  min-height: 36px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0.6rem;
  box-shadow: 0 2px 6px rgba(37,99,235,0.1);
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}

.smtp-card .table td .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.15);
}

.smtp-card .table td .btn-outline-primary {
  background: #f8fafc;
  color: #2563eb;
  border: 1px solid #93c5fd;
}

.smtp-card .table td .btn-outline-primary:hover {
  background: #2563eb;
  color: white;
}

.smtp-card .table td .btn-danger {
  background: #dc2626;
  color: white;
  border: 1px solid #dc2626;
}

.smtp-card .table td .btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
} 

/* Bulk History Modal Styles */
.recipients-modal-badges {
  background: #f8f9fa;
  border: 1px solid #e3e6ed;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
@media (max-width: 600px) {
  .recipients-modal-badges {
    font-size: 0.95rem;
    padding: 1rem 0.5rem;
  }
}
.modal-backdrop.show {
  background-color: rgba(200, 200, 200, 0.5) !important;
}

/* ===================== SMTP ACCOUNTS PAGE (smtp.php) ===================== */
.smtp-list-bg {
  background: #f6f8fb !important;
  min-height: 100vh;
  font-family: 'Inter', Arial, sans-serif;
}

.smtp-title {
  letter-spacing: 1px;
  font-size: 2.1rem;
}

.smtp-th {
  min-width: auto;
  font-size: 1.08rem;
  font-weight: 600;
  background: #fafdff;
  color: #2d3954;
  letter-spacing: 0.2px;
  border-bottom: 2px solid #e9f0ff;
}
.smtp-th:nth-child(2) { min-width: auto; }
.smtp-th:nth-child(3) { min-width: auto; }
.smtp-th:nth-child(4) { min-width: auto; }
.smtp-th:nth-child(5), .smtp-th:nth-child(6), .smtp-th:nth-child(7) { min-width: auto; }
.smtp-th:nth-child(8) { min-width: 160px; }

.smtp-td {
  font-size: 1.05rem;
  padding: 0.7rem 0.5rem;
}

/* Username Badge Design */
.smtp-username-badge {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #334155;
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  word-break: break-all;
  max-width: 100%;
}

.smtp-username-badge:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.smtp-username-badge i {
  color: #64748b;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .smtp-username-badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
  }
  
  .smtp-username-badge i {
    font-size: 0.8rem;
    margin-right: 0.4rem;
  }
}

@media (max-width: 575px) {
  .smtp-username-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
  }
  
  .smtp-username-badge i {
    font-size: 0.75rem;
    margin-right: 0.3rem;
  }
}

.smtp-status-badge {
  font-size: 1.01rem;
  padding: 0.4rem 1.1rem;
  border-radius: 0.7rem;
  font-weight: 600;
}

.smtp-action-btn {
  font-size: 1.01rem;
  padding: 0.35rem 1.1rem;
  border-radius: 0.6rem;
  font-weight: 500;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.smtp-alert {
  font-size: 1.05rem;
  padding: 1.1rem 1.5rem;
  border-radius: 0.7rem;
  box-shadow: 0 4px 16px rgba(37,99,235,0.07);
  border: none;
}

.smtp-alert-icon {
  font-size: 1.3rem;
}

@media (max-width: 991px) {
  .smtp-title { font-size: 1.3rem; }
  .smtp-th { font-size: 0.98rem; }
  .smtp-td { font-size: 0.95rem; }
  .smtp-header { padding: 1.2rem 1rem 1rem 1rem !important; }
}

/* ===================== END SMTP ACCOUNTS PAGE ===================== */

/* ===================== EMAIL HISTORY MOBILE STYLES ===================== */
.mobile-email-card {
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e9ecef;
  transition: box-shadow 0.2s ease;
}

.mobile-email-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.mobile-email-card .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2563eb;
}

.mobile-email-card .card-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #374151;
  word-break: break-word;
}

.mobile-email-card .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
}

.mobile-email-card small {
  font-size: 0.8rem;
  line-height: 1.3;
}

.mobile-email-card .btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}

.mobile-email-card .btn i {
  margin-right: 0.3rem;
}

/* Mobile filter improvements */
@media (max-width: 767px) {
  #filterForm .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }
  
  #filterForm .form-select {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }
  
  #filterForm .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  .card.p-4 {
    padding: 1rem !important;
  }
  
  h2.fw-bold {
    font-size: 1.5rem;
  }
}

/* Ensure proper spacing on very small screens */
@media (max-width: 575px) {
  .mobile-email-card .card-body {
    padding: 1rem;
  }
  
  .mobile-email-card .d-flex.gap-2 {
    flex-direction: column;
    gap: 0.5rem !important;
  }
  
  .mobile-email-card .btn {
    width: 100%;
  }
}

/* ===================== SMTP MOBILE ENHANCEMENTS ===================== */
.smtp-mobile-card {
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: none;
  transition: all 0.3s ease;
  background: #fff;
  overflow: hidden;
}

.smtp-mobile-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* Header Section */
.smtp-card-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1rem;
}

.smtp-provider-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.25rem;
}

.smtp-host-info {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.smtp-status-badge .badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  font-weight: 600;
}

/* Connection Details Section */
.smtp-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.smtp-details-list {
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 1rem;
}

.smtp-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.smtp-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.smtp-detail-row:first-child {
  padding-top: 0;
}

.smtp-detail-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 80px;
}

.smtp-detail-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  text-align: right;
  flex: 1;
}



.smtp-rate-limit {
  color: #059669;
  font-weight: 600;
}

/* Action Buttons */
.smtp-actions {
  margin-top: 1.5rem;
}

.smtp-actions .btn {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

  .smtp-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  /* Additional mobile fixes */
  .smtp-mobile-card {
    margin: 0 0.5rem;
  }
  
  .smtp-mobile-card .card-body {
    padding: 1.5rem;
  }
  
  .smtp-details-list {
    margin: 0 -0.5rem;
  }

/* SMTP Header mobile improvements */
@media (max-width: 767px) {
  .smtp-card {
    margin: 1rem auto;
    border-radius: 1rem !important;
  }
  
  .smtp-header {
    padding: 1.5rem 1rem !important;
    border-radius: 1rem 1rem 0 0 !important;
  }
  
  .smtp-title {
    font-size: 1.5rem !important;
    text-align: center;
  }
  
  .add-smtp-btn {
    font-size: 0.95rem !important;
    padding: 0.6rem 1.2rem !important;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
  
  .smtp-card .card-body {
    padding: 1rem !important;
  }
  
  .smtp-mobile-card .card-body {
    padding: 1.5rem !important;
  }
  
  .smtp-details-list {
    padding: 1rem;
  }
  
  .smtp-detail-row {
    padding: 0.75rem 0;
  }
  
  .smtp-detail-label {
    font-size: 0.8rem;
    min-width: 80px;
  }
  
  .smtp-detail-value {
    font-size: 0.9rem;
  }
  
  .smtp-actions {
    margin-top: 2rem;
  }
  
  .smtp-actions .btn {
    padding: 0.85rem 1.2rem;
  }
}

/* Very small screen adjustments */
@media (max-width: 575px) {
  .smtp-mobile-card .card-body {
    padding: 1.25rem !important;
  }
  
  .smtp-actions .d-flex.gap-2 {
    flex-direction: column;
    gap: 0.75rem !important;
  }
  
  .smtp-actions .btn {
    width: 100%;
  }
  
  .smtp-title {
    font-size: 1.3rem !important;
  }
  
  .smtp-details-list {
    padding: 0.75rem;
  }
  
  .smtp-detail-row {
    padding: 0.6rem 0;
  }
  
  .smtp-detail-label {
    font-size: 0.75rem;
    min-width: 70px;
  }
  
  .smtp-detail-value {
    font-size: 0.85rem;
  }
  
  .smtp-provider-name {
    font-size: 1.05rem;
  }
  
  .smtp-host-info {
    font-size: 0.85rem;
  }
  
  .smtp-actions {
    margin-top: 1.5rem;
  }
} 

/* ===================== SCHEDULED EMAILS PAGE ===================== */
.scheduled-emails-bg {
  background: #f7f9fb;
  min-height: 100vh;
  padding: 1rem 0;
}

.scheduled-emails-card {
  border-radius: 1.5rem !important;
  box-shadow: 0 8px 32px 0 rgba(80,120,200,0.13) !important;
  max-width: 2100px;
  width: 100%;
  margin: 2.5rem auto;
  border: none;
  background: #fff;
}

.scheduled-emails-header {
  background: #fafdff !important;
  border-bottom: 1px solid #f0f2f7 !important;
  padding: 2.2rem 2.5rem 1.2rem 2.5rem;
  border-radius: 1.5rem 1.5rem 0 0;
}

.scheduled-emails-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.5px;
}

.scheduled-emails-count .badge {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border: none;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.scheduled-emails-card .table {
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  margin-bottom: 0;
}

.scheduled-emails-card .table thead th {
  font-size: 1.08rem;
  background: #fafdff;
  border-bottom: 2px solid #e9f0ff;
  color: #2d3954;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 1.2rem 0.7rem;
}

.scheduled-emails-card .table td {
  vertical-align: middle !important;
  word-break: break-word;
  padding: 1rem 0.7rem;
  font-size: 0.95rem;
}

.scheduled-emails-card .table-hover tbody tr:hover {
  background: #f6f9ff;
  transition: background 0.2s;
}

/* Scheduled Email Badges and Elements */
.scheduled-recipients-badge {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #334155;
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  word-break: break-all;
  max-width: 100%;
}

.scheduled-recipients-badge i {
  color: #64748b;
  font-size: 0.7rem;
  margin-right: 0.3rem;
  flex-shrink: 0;
}

.scheduled-subject-text {
  font-weight: 600;
  color: #1e293b;
  max-width: 200px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scheduled-status-badge {
  font-weight: 600;
  border-radius: 0.7rem;
  letter-spacing: 0.2px;
}

.scheduled-action-btn {
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.6rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.scheduled-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

/* Mobile Card Design */
.scheduled-mobile-card {
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: none;
  transition: all 0.3s ease;
  background: #fff;
  overflow: hidden;
}

.scheduled-mobile-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.scheduled-card-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1rem;
}

.scheduled-type-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.25rem;
}

.scheduled-time-info {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.scheduled-status-badge .badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  font-weight: 600;
}

.scheduled-details-list {
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 1rem;
}

.scheduled-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.scheduled-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.scheduled-detail-row:first-child {
  padding-top: 0;
}

.scheduled-detail-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 80px;
}

.scheduled-detail-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  text-align: right;
  flex: 1;
}

.scheduled-actions {
  margin-top: 1.5rem;
}

.scheduled-actions .btn {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.scheduled-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
  .scheduled-emails-card {
    margin: 1rem auto;
    border-radius: 1rem !important;
  }
  
  .scheduled-emails-header {
    padding: 1.5rem 1rem !important;
    border-radius: 1rem 1rem 0 0 !important;
  }
  
  .scheduled-emails-title {
    font-size: 1.5rem !important;
    text-align: center;
  }
  
  .scheduled-emails-card .card-body {
    padding: 1rem !important;
  }
  
  .scheduled-mobile-card .card-body {
    padding: 1.5rem !important;
  }
  
  .scheduled-details-list {
    padding: 1rem;
  }
  
  .scheduled-detail-row {
    padding: 0.75rem 0;
  }
  
  .scheduled-detail-label {
    font-size: 0.8rem;
    min-width: 80px;
  }
  
  .scheduled-detail-value {
    font-size: 0.9rem;
  }
  
  .scheduled-recipients-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  .scheduled-recipients-badge i {
    font-size: 0.65rem;
    margin-right: 0.25rem;
  }
  
  .scheduled-actions {
    margin-top: 2rem;
  }
  
  .scheduled-actions .btn {
    padding: 0.85rem 1.2rem;
  }
}

@media (max-width: 575px) {
  .scheduled-mobile-card .card-body {
    padding: 1.25rem !important;
  }
  
  .scheduled-actions .btn {
    width: 100%;
  }
  
  .scheduled-emails-title {
    font-size: 1.3rem !important;
  }
  
  .scheduled-details-list {
    padding: 0.75rem;
  }
  
  .scheduled-detail-row {
    padding: 0.6rem 0;
  }
  
  .scheduled-detail-label {
    font-size: 0.75rem;
    min-width: 70px;
  }
  
  .scheduled-detail-value {
    font-size: 0.85rem;
  }
  
  .scheduled-recipients-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }
  
  .scheduled-recipients-badge i {
    font-size: 0.6rem;
    margin-right: 0.2rem;
  }
  
  .scheduled-type-name {
    font-size: 1.05rem;
  }
  
  .scheduled-time-info {
    font-size: 0.85rem;
  }
  
  .scheduled-actions {
    margin-top: 1.5rem;
  }
}

/* ===================== END SCHEDULED EMAILS PAGE ===================== */ 

/* ===================== DASHBOARD (INDEX.PHP) STYLES - UPDATED ===================== */
:root {
  --primary-color: #0d6efd;
  --primary-light: #e7f1ff;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --border-radius: 12px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dashboard-wrapper {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  min-height: 100vh !important;
  padding: 2rem 0 !important;
}

.dashboard-header {
  background: white !important;
  border-radius: 12px !important;
  padding: 2rem !important;
  margin-bottom: 2rem !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.dashboard-title {
  color: #0d6efd !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
}

.dashboard-subtitle {
  color: #6c757d !important;
  font-size: 1.1rem !important;
  margin-bottom: 0 !important;
}

.stat-card {
  background: white !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07) !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
  position: relative !important;
}

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

.stat-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  background: #0d6efd !important;
}

.stat-card.today::before {
  background: #0d6efd !important;
}

.stat-card.month::before {
  background: #0dcaf0 !important;
}

.stat-card.year::before {
  background: #198754 !important;
}

.stat-card.smtp::before {
  background: #ffc107 !important;
}

.stat-card.performance::before {
  background: #6c757d !important;
}

.stat-card.accounts::before {
  background: #212529 !important;
}

.stat-icon {
  width: 50px !important;
  height: 50px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.25rem !important;
  margin-bottom: 1rem !important;
  background: #e7f1ff !important;
  color: #0d6efd !important;
}

.stat-card.today .stat-icon {
  background: #e7f1ff !important;
  color: #0d6efd !important;
}

.stat-card.month .stat-icon {
  background: rgba(13, 202, 240, 0.1) !important;
  color: #0dcaf0 !important;
}

.stat-card.year .stat-icon {
  background: rgba(25, 135, 84, 0.1) !important;
  color: #198754 !important;
}

.stat-card.smtp .stat-icon {
  background: rgba(255, 193, 7, 0.1) !important;
  color: #ffc107 !important;
}

.stat-card.performance .stat-icon {
  background: rgba(108, 117, 125, 0.1) !important;
  color: #6c757d !important;
}

.stat-card.accounts .stat-icon {
  background: rgba(33, 37, 41, 0.1) !important;
  color: #212529 !important;
}

.stat-number {
  font-size: 2.25rem !important;
  font-weight: 700 !important;
  color: #212529 !important;
  margin-bottom: 0.5rem !important;
  line-height: 1 !important;
}

.stat-label {
  color: #6c757d !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 0 !important;
}

.stat-title {
  color: #212529 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  margin-bottom: 0.5rem !important;
}

.quick-actions {
  background: white !important;
  border-radius: 12px !important;
  padding: 2rem !important;
  margin-top: 2rem !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.action-btn {
  background: #0d6efd !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 0.875rem 1.25rem !important;
  color: white !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 0.9rem !important;
}

.action-btn:hover {
  background: #0b5ed7 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3) !important;
  color: white !important;
  text-decoration: none !important;
}

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

/* Dashboard Mobile Responsive */
@media (max-width: 768px) {
  .dashboard-wrapper {
    padding: 1rem 0 !important;
  }
  
  .dashboard-header {
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .stat-number {
    font-size: 1.75rem !important;
  }
  
  .stat-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
  }
  
  .dashboard-title {
    font-size: 1.5rem !important;
  }
  
  .dashboard-subtitle {
    font-size: 1rem !important;
  }
  
  .quick-actions {
    padding: 1.5rem !important;
  }
  
  .action-btn {
    font-size: 0.85rem !important;
    padding: 0.75rem 1rem !important;
  }
}

@media (max-width: 575px) {
  .dashboard-header {
    padding: 1rem !important;
  }
  
  .dashboard-title {
    font-size: 1.3rem !important;
  }
  
  .stat-number {
    font-size: 1.5rem !important;
  }
  
  .stat-icon {
    width: 35px !important;
    height: 35px !important;
    font-size: 0.9rem !important;
  }
  
  .quick-actions {
    padding: 1rem !important;
  }
  
  .action-btn {
    font-size: 0.8rem !important;
    padding: 0.6rem 0.8rem !important;
  }
}

/* ===================== END DASHBOARD STYLES - UPDATED ===================== */ 

/* SMTP responsive fixes to avoid horizontal scrolling */
@media (max-width: 1200px) {
  .smtp-card {
    max-width: 100%;
    margin: 1rem auto;
    overflow-x: hidden;
  }
  .smtp-card .text-nowrap {
    white-space: normal !important;
  }
  .smtp-th {
    min-width: auto !important;
  }
  .smtp-th:nth-child(8) {
    min-width: 160px !important;
  }
  .smtp-card .table td, .smtp-card .table th {
    padding: 0.6rem 0.5rem;
  }
} 