html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Premium Table Styling for Blog Content */
.prose table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
    font-family: inherit;
}

.prose thead {
    background-color: #f8fafc;
}

.prose thead th {
    color: #475569 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    letter-spacing: 0.1em;
    padding: 1.25rem 1rem !important;
    text-align: left;
    border-bottom: 2px solid #e2e8f0 !important;
}

.prose tbody td {
    padding: 1rem !important;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    font-size: 0.95rem;
}

.prose tbody tr:last-child td {
    border-bottom: none;
}

.prose tbody tr:nth-child(even) {
    background-color: #fcfdfe;
}

.prose tbody tr:hover {
    background-color: #f1f5f9;
    transition: background-color 0.2s ease;
}

/* Dark Mode Support */
.dark .prose table {
    border-color: #334155;
    background-color: #1e293b;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.dark .prose thead {
    background-color: #0f172a;
}

.dark .prose thead th {
    color: #94a3b8 !important;
    border-bottom-color: #334155 !important;
}

.dark .prose tbody td {
    border-bottom-color: #334155;
    color: #e2e8f0;
}

.dark .prose tbody tr:nth-child(even) {
    background-color: #1a2330;
}

.dark .prose tbody tr:hover {
    background-color: #262f3f;
}

/* Ensure horizontal scrolling on mobile */
.prose .table-container {
    overflow-x: auto;
    border-radius: 1rem;
    margin: 2rem 0;
    border: 1px solid transparent;
}

/* Quill alignment support */
.ql-align-center, .prose .ql-align-center {
    text-align: center !important;
}

.ql-align-right, .prose .ql-align-right {
    text-align: right !important;
}

.ql-align-justify, .prose .ql-align-justify {
    text-align: justify !important;
}

/* Ensure images and videos also follow alignment if possible */
.ql-align-center img, .prose .ql-align-center img,
.ql-align-center iframe, .prose .ql-align-center iframe {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

.ql-align-right img, .prose .ql-align-right img,
.ql-align-right iframe, .prose .ql-align-right iframe {
    margin-left: auto !important;
    margin-right: 0 !important;
    display: block !important;
}
