/* ========================================
   GLOBAL STYLES & RESET
   ======================================== */

:root {
  /* Apple Light Mode Colors */
  --primary-color: #0071E3;
  --secondary-color: #555555;
  --text-color-black: #000000;
  --text-color-white: #FFFFFF;
  --text-color-dark: #000000;
  --text-color-light: #555555;
  --text-color-muted: #86868B;
  --text-color-placeholder: #A1A1A6;
  --text-color-primary: #000000;
  --text-color-secondary: #86868B;
  --text-color-tertiary: #A1A1A6;
  --bg-color: #FFFFFF;
  --container-bg: #FFFFFF;
  --bg-color-secondary: #F5F5F7;
  --bg-color-tertiary: #FFFFFF;
  --border-light: #E5E5EA;
  --border-light-alt: #D5D5D9;
  --border-light-subtle: #F5F5F7;
  --input-bg: #F5F5F7;
  --input-focus-shadow: rgba(0, 113, 227, 0.1);
  --info-bg: #F5F5F7;
  --success-color: #34C759;
  --error-color: #FF3B30;
  --warning-color: #FF9500;
  --info-color: #0071E3;
  --red-color: #FF3B30;
  --orange-color: #FF9500;
  --yellow-color: #FFCC00;
  --green-color: #34C759;
  --blue-color: #0071E3;
  --purple-color: #AF52DE;
  --toolbar-bg: #F5F5F7;
  --toolbar-hover-bg: #E5E5EA;
  --button-hover-color: #0071E3;
  --neutral-text-light: #555555;
  --neutral-text-secondary: #86868B;
  /* Apple Grayscale - Light */
  --apple-gray-1: #F5F5F7;
  --apple-gray-2: #E5E5EA;
  --apple-gray-3: #D5D5D9;
  --apple-gray-4: #A2AAAD;
  --apple-gray-5: #8E8E93;
  --apple-gray-6: #555555;
  /* Apple Accent Colors - Light */
  --apple-red: #FF3B30;
  --apple-orange: #FF9500;
  --apple-yellow: #FFCC00;
  --apple-green: #34C759;
  --apple-cyan: #32B5F6;
  --apple-blue: #0071E3;
  --apple-purple: #AF52DE;
  --apple-pink: #FF2D55;
}

html.dark {
  /* Apple Dark Mode Colors */
  --primary-color: #0A84FF;
  --secondary-color: #A1A1A6;
  --text-color-black: #FFFFFF;
  --text-color-white: #A1A1A6;
  --text-color-dark: #FFFFFF;
  --text-color-light: #A1A1A6;
  --text-color-muted: #8E8E93;
  --text-color-placeholder: #72767B;
  --text-color-primary: #FFFFFF;
  --text-color-secondary: #A1A1A6;
  --text-color-tertiary: #8E8E93;
  --bg-color: #000000;
  --container-bg: #1D1D1D;
  --bg-color-secondary: #1D1D1D;
  --bg-color-tertiary: #2D2D2D;
  --border-light: #424245;
  --border-light-alt: #545456;
  --border-light-subtle: #2D2D2D;
  --input-bg: #2D2D2D;
  --input-focus-shadow: rgba(10, 132, 255, 0.2);
  --info-bg: #1D1D1D;
  --success-color: #32DC12;
  --error-color: #FF453A;
  --warning-color: #FF9500;
  --info-color: #0A84FF;
  --red-color: #FF453A;
  --orange-color: #FF9500;
  --yellow-color: #FFD60A;
  --green-color: #32DC12;
  --blue-color: #0A84FF;
  --purple-color: #BF5AF0;
  --toolbar-bg: #2D2D2D;
  --toolbar-hover-bg: #424245;
  --button-hover-color: #0A84FF;
  --neutral-text-light: #A1A1A6;
  --neutral-text-secondary: #8E8E93;
  /* Apple Grayscale - Dark */
  --apple-gray-1: #1D1D1D;
  --apple-gray-2: #2D2D2D;
  --apple-gray-3: #424245;
  --apple-gray-4: #545456;
  --apple-gray-5: #72767B;
  --apple-gray-6: #A1A1A6;
  /* Apple Accent Colors - Dark */
  --apple-red: #FF453A;
  --apple-orange: #FF9500;
  --apple-yellow: #FFD60A;
  --apple-green: #32DC12;
  --apple-cyan: #32B5F6;
  --apple-blue: #0A84FF;
  --apple-purple: #BF5AF0;
  --apple-pink: #FF375F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--container-bg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* ========================================
   HEADER
   ======================================== */

.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color-white);
    padding: 40px 30px;
    text-align: center;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 300;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.dashboard-main {
    padding: 40px 30px;
}

/* ========================================
   FORM SECTIONS
   ======================================== */

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-light-subtle);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.6rem;
    color: var(--text-color-dark);
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========================================
   FORM GROUPS & INPUTS
   ======================================== */

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    font-weight: 600;
    color: var(--text-color-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="date"],
textarea,
select {
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--input-bg);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--container-bg);
    box-shadow: 0 0 0 3px var(--input-focus-shadow);
}

textarea {
    resize: vertical;
    font-family: 'Courier New', monospace;
}

/* ========================================
   RICH TEXT EDITOR
   ======================================== */

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 15px;
    background-color: var(--toolbar-bg);
    border: 2px solid var(--border-light);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    align-items: center;
}

.toolbar-btn {
    background-color: var(--container-bg);
    border: 1px solid var(--border-light-alt);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toolbar-btn:hover {
    background-color: var(--toolbar-hover-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.toolbar-btn:active {
    background-color: var(--primary-color);
    color: var(--text-color-white);
    border-color: var(--primary-color);
}

/* Active formatting button state (shows what's currently applied) */
.toolbar-btn.active {
    background-color: var(--primary-color);
    color: var(--text-color-white);
    border-color: var(--primary-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Disabled state for undo/redo buttons when no history available */
.toolbar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--toolbar-bg);
    color: var(--text-color-muted);
}

.toolbar-btn.enabled {
    opacity: 1;
    background-color: var(--container-bg);
    cursor: pointer;
}

.toolbar-select {
    padding: 8px 12px;
    border: 1px solid var(--border-light-alt);
    border-radius: 4px;
    cursor: pointer;
    background-color: var(--container-bg);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 1em;
    padding-right: 28px;
}

.toolbar-select:hover {
    border-color: var(--primary-color);
    background-color: var(--toolbar-hover-bg);
}

.toolbar-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--input-focus-shadow);
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background-color: var(--border-light-alt);
    margin: 0 4px;
}

.toolbar-color-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-color {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-light-alt);
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
}

.toolbar-color:hover {
    border-color: var(--primary-color);
}

.color-label {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin: 0;
}

.rich-text-editor {
    min-height: 300px;
    padding: 15px;
    border: 2px solid var(--border-light);
    border-radius: 0 0 6px 6px;
    background-color: var(--input-bg);
    font-size: 0.95rem;
    line-height: 1.8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-y: auto;
    max-height: 600px;
}

.rich-text-editor:focus {
    outline: none;
    background-color: var(--container-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--input-focus-shadow);
}

.rich-text-editor:empty:before {
    content: attr(data-placeholder);
    color: var(--text-color-placeholder);
    pointer-events: none;
    font-style: italic;
}

.rich-text-editor h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 20px 0 10px 0;
}

.rich-text-editor h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 15px 0 8px 0;
}

.rich-text-editor h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 12px 0 6px 0;
}

.rich-text-editor p {
    margin: 0 0 12px 0;
}

.rich-text-editor a {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

.rich-text-editor a:hover {
    color: var(--secondary-color);
}

.rich-text-editor strong {
    font-weight: 700;
}

.rich-text-editor em {
    font-style: italic;
}

.rich-text-editor u {
    text-decoration: underline;
}

/* ========================================
   EXTERNAL IMAGE STYLING
   ======================================== */

.article-image,
.external-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.article-image:hover,
.external-image:hover {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.25);
    transform: scale(1.01);
}

.article-image-figure,
figure {
    margin: 30px 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-image-figure img,
figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.article-image-figure img:hover,
figure img:hover {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.25);
    transform: scale(1.01);
}

figcaption {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--text-color-light);
    font-style: italic;
    line-height: 1.4;
}

/* Image container with spacing and color blocks */
.article-image-figure::before {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin-bottom: 15px;
    border-radius: 2px;
}

/* Alternative image classes for different contexts */
.image-small {
    max-width: 50%;
    height: auto;
}

.image-medium {
    max-width: 75%;
    height: auto;
}

.image-large {
    max-width: 100%;
    height: auto;
}

.image-thumbnail {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
}

/* Responsive image sizing */
@media (max-width: 768px) {
    .article-image,
    .external-image {
        margin: 15px 0;
    }
    
    .article-image-figure,
    figure {
        margin: 20px 0;
    }
}

/* ========================================
   ARTICLE & BLOG LAYOUT STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-color-dark);
    background-color: var(--bg-color);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: var(--container-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

article {
    background: var(--container-bg);
}

article header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-light-subtle);
}

article h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color-dark);
}

article h2 {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color-dark);
}

article h3 {
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-color-dark);
}

article > section {
    margin-bottom: 40px;
}

article section h2 {
    margin-top: 0;
}

article p {
    margin-bottom: 15px;
}

article img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

time {
    color: var(--text-color-muted);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 10px;
}

.summary {
    font-size: 1.1rem;
    color: var(--neutral-text-light);
    font-weight: 500;
    margin-bottom: 15px;
}

#related-articles,
#faq {
    background-color: var(--info-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.faq-item {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--container-bg);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.faq-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

article footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--border-light-subtle);
    background-color: var(--info-bg);
    padding: 25px;
    border-radius: 8px;
}

article footer h3 {
    margin-top: 0;
}

.related-article-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 15px;
    margin-bottom: 10px;
}

.related-article-link:hover {
    text-decoration: underline;
}

.cta {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color-white);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    article h1 {
        font-size: 1.8rem;
    }
    article h2 {
        font-size: 1.4rem;
    }
}

/* ========================================
   TEXT COLOR UTILITIES
   ======================================== */

/* Primary Colors */
.text-primary {
    color: #667eea;
}

.text-secondary {
    color: #764ba2;
}

.text-dark {
    color: #333;
}

.text-light {
    color: #666;
}

.text-muted {
    color: #999;
}

/* Semantic Colors */
.text-success {
    color: #2ed573;
}

.text-error {
    color: #ff4757;
}

.text-warning {
    color: #ffa502;
}

.text-info {
    color: #0984e3;
}

/* Custom Palette */
.text-red {
    color: #e74c3c;
}

.text-orange {
    color: #e67e22;
}

.text-yellow {
    color: #f39c12;
}

.text-green {
    color: #27ae60;
}

.text-blue {
    color: #3498db;
}

.text-purple {
    color: #9b59b6;
}

/* ========================================
   FONT SIZE UTILITIES
   ======================================== */

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

/* Heading sizes */
.text-h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.text-h2 {
    font-size: 2rem;
    font-weight: 700;
}

.text-h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

.text-h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

.text-h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

.text-h6 {
    font-size: 1rem;
    font-weight: 600;
}

/* ========================================
   TEXT WEIGHT UTILITIES
   ======================================== */

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

/* ========================================
   SELECT STYLING
   ======================================== */

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1.2em;
    padding-right: 35px;
}

/* Help text */
.help-text {
    font-size: 0.85rem;
    color: var(--text-color-muted);
    margin-top: 5px;
    font-style: italic;
}

.info-text {
    padding: 15px;
    background-color: var(--info-bg);
    border-left: 4px solid var(--primary-color);
    color: var(--text-color-dark);
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* ========================================
   IMAGE & RELATED ITEMS SECTIONS
   ======================================== */

.images-container,
.related-articles-container,
.faq-container {
    margin-bottom: 20px;
}

.image-item,
.related-item,
.faq-item {
    background-color: var(--toolbar-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border-light);
    position: relative;
}

.image-item h4,
.related-item h4,
.faq-item h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1rem;
}

.item-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.remove-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--error-color);
    color: var(--text-color-white);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.remove-btn:hover {
    background: #ff3838;
}

/* ========================================
   BUTTONS
   ======================================== */

button {
    font-family: inherit;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color-white);
    padding: 12px 24px;
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

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

.btn-secondary {
    background-color: var(--toolbar-bg);
    color: var(--text-color-dark);
    padding: 12px 24px;
    font-size: 0.95rem;
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    background-color: var(--border-light-subtle);
    border-color: var(--primary-color);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.05rem;
    width: 100%;
}

.action-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-bottom: none;
}

/* ========================================
   MODAL DIALOG
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.modal-content > p {
    color: var(--text-color-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* ========================================
   DOWNLOAD OPTIONS
   ======================================== */

.download-options {
    margin: 25px 0;
    padding: 25px;
    background-color: var(--toolbar-bg);
    border-radius: 8px;
}

.divider {
    text-align: center;
    color: var(--text-color-muted);
    margin: 20px 0;
    font-weight: 600;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-download-btn {
    background-color: var(--container-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 20px;
    border-radius: 6px;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-download-btn:hover {
    background-color: var(--toolbar-hover-bg);
    transform: translateX(5px);
}

.file-download-btn strong {
    display: block;
    font-size: 0.9rem;
}

.file-download-btn small {
    display: block;
    color: var(--text-color-muted);
    font-size: 0.8rem;
    margin-top: 3px;
}

/* ========================================
   FOOTER
   ======================================== */

.dashboard-footer {
    background-color: var(--toolbar-bg);
    padding: 20px 30px;
    text-align: center;
    color: var(--text-color-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-light);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .container {
        border-radius: 0;
        margin-top: 80px;
    }

    .dashboard-header {
        padding: 30px 20px;
    }

    .header-content h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .dashboard-main {
        padding: 25px 20px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .item-row {
        grid-template-columns: 1fr;
    }

    label {
        font-size: 0.9rem;
    }

    input,
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Editor responsive */
    .editor-toolbar {
        gap: 6px;
        padding: 10px 12px;
    }

    .toolbar-btn {
        min-width: 32px;
        height: 32px;
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .toolbar-select {
        padding: 6px 10px;
        font-size: 0.85rem;
        padding-right: 24px;
    }

    .toolbar-color {
        width: 32px;
        height: 32px;
    }

    .rich-text-editor {
        min-height: 250px;
        max-height: 500px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .btn-large {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    body {
        
    }

    .image-small {
        max-width: 100%;
    }

    .image-medium {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .dashboard-main,
    .dashboard-header {
        padding: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .modal-content {
        width: 98%;
    }

    .remove-btn {
        position: static;
        width: 100%;
        margin-top: 10px;
    }

    .text-h1 {
        font-size: 1.75rem;
    }

    .text-h2 {
        font-size: 1.5rem;
    }

    .text-h3 {
        font-size: 1.25rem;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

.hidden {
    display: none !important;
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Margin utilities */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-5 { margin: 1.25rem; }
.m-6 { margin: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* Padding utilities */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

/* Display utilities */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }