/* Summernote Frontend Styles - Add these to your global.css */


.sn-content {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  color: #374151;
}

.sn-content .sn-heading-1,
.sn-content h1.sn-heading-1 {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 2.5em;
  font-weight: 700;
  margin: 1.2em 0 0.8em 0;
  line-height: 1.2;
  color: #0B6D76;
  border-bottom: 3px solid #3b82f6;
  padding-bottom: 0.5em;
}

.sn-content .sn-heading-2,
.sn-content h2.sn-heading-2 {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 2em;
  font-weight: 600;
  margin: 1.5em 0 0.6em 0;
  line-height: 1.3;
  color: #0B6D76;
}

.sn-content .sn-heading-3,
.sn-content h3.sn-heading-3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5em;
  font-weight: 600;
  margin: 1.3em 0 0.5em 0;
  line-height: 1.4;
  color: #0B6D76;
}

.sn-content .sn-heading-4,
.sn-content h4.sn-heading-4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25em;
  font-weight: 600;
  margin: 1.2em 0 0.4em 0;
  line-height: 1.4;
  color: #0B6D76;
}

.sn-content .sn-paragraph,
.sn-content p.sn-paragraph {
  margin-bottom: 1.2em;
  line-height: 1.7;
  font-size: 16px;
  color: #4b5563;
}

.sn-content .sn-blockquote,
.sn-content blockquote.sn-blockquote {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1.3em;
  font-style: italic;
  margin: 2em 0;
  padding: 2em 2em 2em 3em;
  background: #f8fafc;
  border-left: 6px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  color: #475569;
}

/* ===== ENHANCED TABLE STYLES WITH SCROLL ===== */

.sn-table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: all 0.3s ease;
  table-layout: fixed;
  position: relative;
  
  /* Scroll container properties applied directly to table */
  min-height: 200px; /* Minimum height */
  max-height: 400px; /* Maximum height before scroll */
  overflow: auto; /* Both horizontal and vertical scroll */
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  
  /* Scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.sn-table::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.sn-table::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.sn-table::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.sn-table::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.sn-table th,
.sn-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
  box-sizing: border-box;
}

.sn-table th {
  font-weight: 600;
  color: #374151;
  white-space: normal;
  position: sticky;
  top: 0;
  z-index: 10;
  background: inherit; /* Will be overridden by specific styles */
}

/* Force equal column distribution */
.sn-table th,
.sn-table td {
  width: 1% !important; /* Equal width distribution */
  min-width: 120px;
  max-width: none;
}

/* Modern Table (Default) - WITH SCROLL - UPDATED COLORS */
.sn-table.sn-table-modern {
  border: none;
  border-radius: 8px; /* Keep border radius on the table itself */
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sn-table.sn-table-modern th {
  background: linear-gradient(135deg, #1F4E79 0%, #2D7F99 100%);
  color: white;
  font-weight: 600;
  padding: 16px 20px;
  border: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: normal;
  line-height: 1.4;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sn-table.sn-table-modern td {
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: white;
  line-height: 1.6;
}

.sn-table.sn-table-modern tr:last-child td {
  border-bottom: none;
}

/* Elegant Table - WITH SCROLL - UPDATED COLORS */
.sn-table.sn-table-elegant {
  border: none;
  background: linear-gradient(135deg, #1F4E79 0%, #2D7F99 100%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.sn-table.sn-table-elegant th {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 500;
  padding: 18px 24px;
  border: none;
  backdrop-filter: blur(10px);
  font-size: 15px;
  white-space: normal;
  line-height: 1.4;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sn-table.sn-table-elegant td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  backdrop-filter: blur(5px);
  line-height: 1.6;
}

.sn-table.sn-table-elegant tr:hover td {
  background: rgba(255, 255, 255, 0.1);
}

/* Minimal Table - WITH SCROLL - UPDATED COLORS */
.sn-table.sn-table-minimal {
  border: none;
  background: transparent;
  border-radius: 8px;
}

.sn-table.sn-table-minimal th {
  background: transparent;
  color: #1F4E79;
  font-weight: 500;
  padding: 12px 20px;
  border-bottom: 2px solid #2D7F99;
  font-size: 13px;
  white-space: normal;
  line-height: 1.4;
  position: sticky;
  top: 0;
  z-index: 10;
  background: white; /* Ensure sticky header has background */
}

.sn-table.sn-table-minimal td {
  padding: 12px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
  line-height: 1.6;
}

.sn-table.sn-table-minimal tr:last-child td {
  border-bottom: 2px solid #f1f5f9;
}

/* Corporate Table - WITH SCROLL - UPDATED COLORS */
.sn-table.sn-table-corporate {
  border: none;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.sn-table.sn-table-corporate th {
  background: #1F4E79;
  color: white;
  font-weight: 600;
  padding: 14px 20px;
  border: none;
  font-size: 13px;
  white-space: normal;
  line-height: 1.4;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sn-table.sn-table-corporate td {
  padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6;
  background: white;
  font-size: 14px;
  line-height: 1.6;
}

.sn-table.sn-table-corporate tr:nth-child(even) {
  background: #f9fafb;
}

/* Creative Table - WITH SCROLL - UPDATED COLORS */
.sn-table.sn-table-creative {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #1F4E79 0%, #2D7F99 100%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.sn-table.sn-table-creative th {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
  padding: 16px 24px;
  border: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: normal;
  line-height: 1.4;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sn-table.sn-table-creative td {
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  line-height: 1.6;
}

.sn-table.sn-table-creative tr:hover td {
  background: rgba(255, 255, 255, 0.2);
}

/* Dark Table - WITH SCROLL - UPDATED COLORS */
.sn-table.sn-table-dark {
  border: none;
  background: #1f2937;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.sn-table.sn-table-dark th {
  background: #1F4E79;
  color: #f3f4f6;
  font-weight: 600;
  padding: 16px 20px;
  border: none;
  font-size: 14px;
  white-space: normal;
  line-height: 1.4;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sn-table.sn-table-dark td {
  padding: 14px 20px;
  color: #d1d5db;
  border-bottom: 1px solid #374151;
  background: #1f2937;
  line-height: 1.6;
}

.sn-table.sn-table-dark tr:hover td {
  background: #374151;
}

/* Gradient Table - WITH SCROLL - UPDATED COLORS */
.sn-table.sn-table-gradient {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sn-table.sn-table-gradient th {
  background: linear-gradient(135deg, #1F4E79 0%, #2D7F99 50%, #3b82f6 100%);
  color: white;
  font-weight: 600;
  padding: 16px 20px;
  border: none;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  white-space: normal;
  line-height: 1.4;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sn-table.sn-table-gradient td {
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: white;
  line-height: 1.6;
}

.sn-table.sn-table-gradient tr:nth-child(even) td {
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

/* Material Design Table - WITH SCROLL - UPDATED COLORS */
.sn-table.sn-table-material {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: white;
}

.sn-table.sn-table-material th {
  background: #1F4E79;
  color: white;
  font-weight: 500;
  padding: 16px 24px;
  border: none;
  font-size: 14px;
  white-space: normal;
  line-height: 1.4;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sn-table.sn-table-material td {
  padding: 16px 24px;
  border-bottom: 1px solid #e0e0e0;
  background: white;
  transition: background 0.3s ease;
  line-height: 1.6;
}

.sn-table.sn-table-material tr:hover td {
  background: #f5f5f5;
}

/* Striped Table - WITH SCROLL - UPDATED COLORS */
.sn-table.sn-table-striped {
  border-radius: 8px;
}

.sn-table.sn-table-striped tbody tr:nth-child(odd) {
  background-color: #f9fafb;
}

.sn-table.sn-table-striped tbody tr:nth-child(even) {
  background-color: white;
}

.sn-table.sn-table-striped th {
  background: linear-gradient(135deg, #1F4E79 0%, #2D7F99 100%);
  color: white;
  border: none;
  white-space: normal;
  line-height: 1.4;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Bordered Table - WITH SCROLL - UPDATED COLORS */
.sn-table.sn-table-bordered {
  border: 2px solid #1F4E79;
  border-radius: 8px;
}

.sn-table.sn-table-bordered th,
.sn-table.sn-table-bordered td {
  border: 1px solid #d1d5db;
}

.sn-table.sn-table-bordered th {
  background: #1F4E79;
  color: white;
  border-color: #1F4E79;
  white-space: normal;
  line-height: 1.4;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Hover Table - WITH SCROLL - UPDATED COLORS */
.sn-table.sn-table-hover {
  border-radius: 8px;
}

.sn-table.sn-table-hover tbody tr:hover {
  background-color: #f0f9ff;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

/* Rounded Table - WITH SCROLL - UPDATED COLORS */
.sn-table.sn-table-rounded {
  border-radius: 20px;
  overflow: hidden;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sn-table.sn-table-rounded th {
  border-radius: 0;
  white-space: normal;
  line-height: 1.4;
  background: linear-gradient(135deg, #1F4E79 0%, #2D7F99 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Table Responsive Design - HORIZONTAL AND VERTICAL SCROLL */
@media (max-width: 768px) {
  .sn-table {
    min-height: 150px;
    max-height: 300px;
    overflow-x: auto; /* Horizontal scroll */
    overflow-y: auto; /* Vertical scroll */
    margin: 1em 0;
    font-size: 14px;
    width: 100% !important;
    table-layout: fixed; /* Keep fixed layout for consistency */
  }
  
  .sn-table th,
  .sn-table td {
    padding: 10px 12px;
    min-width: 100px;
    white-space: normal; /* Allow text wrapping in mobile */
  }
  
  /* Keep all the same styling for mobile */
  .sn-table.sn-table-modern th,
  .sn-table.sn-table-elegant th,
  .sn-table.sn-table-corporate th,
  .sn-table.sn-table-creative th,
  .sn-table.sn-table-dark th,
  .sn-table.sn-table-gradient th,
  .sn-table.sn-table-material th,
  .sn-table.sn-table-striped th,
  .sn-table.sn-table-bordered th,
  .sn-table.sn-table-rounded th {
    white-space: normal;
    font-size: 12px;
    padding: 12px 14px;
    line-height: 1.3;
    position: sticky;
    top: 0;
    z-index: 10;
    /* Keep all original background colors and styles */
  }
  
  .sn-table.sn-table-modern td,
  .sn-table.sn-table-elegant td,
  .sn-table.sn-table-corporate td,
  .sn-table.sn-table-creative td,
  .sn-table.sn-table-dark td,
  .sn-table.sn-table-gradient td,
  .sn-table.sn-table-material td {
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
    /* Keep all original background colors and styles */
  }
}

/* Extra small devices - HORIZONTAL AND VERTICAL SCROLL */
@media (max-width: 480px) {
  .sn-table {
    border-radius: 4px;
    min-height: 120px;
    max-height: 400px;
    overflow-x: auto; /* Horizontal scroll */
    overflow-y: auto; /* Vertical scroll */
    font-size: 12px;
    width: 100% !important;
    table-layout: fixed; /* Keep fixed layout */
  }
  
  .sn-table th,
  .sn-table td {
    padding: 8px 10px;
    min-width: 80px;
    white-space: normal; /* Allow text wrapping */
  }
  
  /* Keep table layout - no stacking */
  .sn-table thead {
    display: table-header-group;
  }
  
  .sn-table tr {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    padding: 0;
    position: static;
  }
  
  .sn-table td {
    text-align: left !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    position: static;
    border: 1px solid #e5e7eb !important;
    width: auto !important;
    display: table-cell;
    box-sizing: border-box;
  }
  
  /* Remove any mobile stacking styles */
  .sn-table td:before {
    content: none;
  }
  
  .sn-table td:last-child {
    border-bottom: 1px solid #e5e7eb !important;
  }
  
  /* Keep all original styling */
  .sn-table.sn-table-modern,
  .sn-table.sn-table-elegant,
  .sn-table.sn-table-corporate,
  .sn-table.sn-table-creative,
  .sn-table.sn-table-dark,
  .sn-table.sn-table-gradient,
  .sn-table.sn-table-material,
  .sn-table.sn-table-striped,
  .sn-table.sn-table-bordered,
  .sn-table.sn-table-rounded {
    background: inherit !important;
    box-shadow: inherit !important;
    border-radius: inherit !important;
  }
  
  .sn-table.sn-table-modern td,
  .sn-table.sn-table-elegant td,
  .sn-table.sn-table-corporate td,
  .sn-table.sn-table-creative td,
  .sn-table.sn-table-dark td,
  .sn-table.sn-table-gradient td,
  .sn-table.sn-table-material td,
  .sn-table.sn-table-striped td,
  .sn-table.sn-table-bordered td,
  .sn-table.sn-table-rounded td {
    background: inherit !important;
    color: inherit !important;
    border-bottom: inherit !important;
  }
}

/* Custom Buttons */
.sn-content .custom-btn {
  display: inline-block;
  padding: 12px 24px;
  margin: 8px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 120px;
  font-family: 'Inter', sans-serif;
}

.sn-content .custom-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sn-content .custom-btn-blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.sn-content .custom-btn-green {
  background: linear-gradient(135deg, #10b981, #047857);
  color: white;
}

.sn-content .custom-btn-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.sn-content .custom-btn-orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.sn-content .custom-btn-gray {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: white;
}

.sn-content .custom-btn-purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

/* Lists */
.sn-content .sn-list {
  margin: 1.2em 0;
  padding-left: 2.5em;
}

.sn-content .sn-ul {
  list-style-type: disc;
}

.sn-content .sn-ol {
  list-style-type: decimal;
}

.sn-content .sn-list li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

/* Images */
.sn-content .sn-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Links */
.sn-content .sn-link,
.sn-content a.sn-link {
  color: #2563eb;
  border-bottom-color: 2px solid #3b82f6;
  transition: all 0.3s ease;
  padding-bottom: 1px;
}

.sn-content a {
  color: #2563eb;
  border-bottom-color: 2px solid #3b82f6;
  transition: all 0.3s ease;
  padding-bottom: 1px;
}

.sn-content a:hover {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
  background-color: #f0f9ff;
}

.sn-content .sn-link:hover,
.sn-content a.sn-link:hover {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
  background-color: #f0f9ff;
}
.sn-table-container .sn-table-container {
  /* Reset nested container styles */
  all: unset;
  display: contents;
}
.sn-table-wrapper .sn-table-wrapper {
  /* Reset nested wrapper styles */
  all: unset;
  display: contents;
}
