html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

/* Dark Mode Styles - Using !important to ensure they override framework defaults */
html.dark body {
    background-color: #222 !important;
    color: #fff !important;
}

html.dark .navbar {
    background-color: #333 !important;
}

html.dark .nav-link {
    color: #fff !important;
}

html.dark .footer {
    background-color: #333 !important;
    color: #fff !important;
}

/* Ensure other elements like cards also follow dark mode */
html.dark .card, html.dark .border, html.dark .bg-white {
    background-color: #2b2b2b !important;
    border-color: #444 !important;
    color: #fff !important;
}

html.dark .text-dark {
    color: #fff !important;
}

/* Fullscreen Editor Styles */
.editor-card.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050; /* Higher than most elements */
    margin: 0;
    display: flex;
    flex-direction: column;
    border-radius: 0;
}

.editor-card.fullscreen .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.editor-card.fullscreen .card-body form {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Target the form-group containing the textarea */
.editor-card.fullscreen .card-body form .form-group:has(textarea) {
     flex-grow: 1;
     display: flex;
     flex-direction: column;
     height: 100%;
}

.editor-card.fullscreen .card-body textarea {
    flex-grow: 1;
    height: 100% !important; /* Override inline style */
    resize: none; /* Disable resizing in fullscreen */
}
