/* ==================== VARIABLES (copied from styles.css) ==================== */
:root {
    /* Original Pastel Colors */
    --rose: #FFB6D9;
    --rose-deep: #E85D9F;
    --lavender: #D4B5E8;
    --lavender-deep: #A672C5;
    --peach: #FFCBA4;
    --peach-light: #FFE4D0;
    --mint: #B4D4FF;
    --gold: #F0D89A;
    --gold-light: #F5E6BE;
    --sky: #B4D4FF;
    --cream: #F9F7F4;
    --warm-white: #FDFCFA;
    --blush: #FFF0F3;

    /* Darker accents */
    --dark-blue: #5B9FD4;
    --dark-gold: #C4A244;

    /* Neutrals */
    --white: #FFFFFF;
    --dark: #4A4A4A;
    --dark-muted: #5C5C5C;
    --medium-gray: #E8E6E1;

    /* Shadows */
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);

    /* Admin-specific */
    --sidebar-width: 260px;
    --sidebar-bg: #2D2640;
    --sidebar-hover: #3D3555;
    --sidebar-active: #4D4570;
    --sidebar-text: #E8E0F0;
    --mobile-header-height: 56px;

    /* Functional */
    --radius: 24px;
    --radius-sm: 12px;
    --radius-lg: 32px;
    --transition: all 0.3s ease;
}

/* ==================== BASE ==================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--cream);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ==================== LOGIN VIEW ==================== */
.login-view {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--lavender) 0%, var(--rose) 50%, var(--peach-light) 100%);
    padding: 1rem;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.logo-red { color: var(--rose-deep); }
.logo-dot { color: var(--lavender-deep); margin: 0 2px; }
.logo-mx { color: var(--lavender-deep); }

.login-subtitle {
    color: var(--dark-muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 0.35rem;
}

.form-control {
    border: 1.5px solid var(--medium-gray);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--lavender-deep);
    box-shadow: 0 0 0 3px rgba(166, 114, 197, 0.15);
    outline: none;
}

.btn-admin-primary {
    background: linear-gradient(135deg, var(--lavender-deep), var(--rose-deep));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-admin-primary:hover {
    opacity: 0.9;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-admin-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.alert-error {
    background: #E85D5D;
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.login-back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--dark-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.login-back-link:hover {
    color: var(--lavender-deep);
}

/* ==================== DASHBOARD LAYOUT ==================== */
.dashboard-view {
    min-height: 100vh;
}

/* ==================== MOBILE HEADER ==================== */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-header-height);
    background: var(--sidebar-bg);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    z-index: 1001;
    gap: 1rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sidebar-text);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--sidebar-text);
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1002;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--white);
}

.sidebar-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: var(--white);
}

.nav-item.active {
    background: var(--sidebar-active);
    color: var(--white);
}

.nav-icon {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.sidebar-user-icon {
    font-size: 1.25rem;
}

.sidebar-user-name {
    color: var(--sidebar-text);
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    color: var(--sidebar-text);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: center;
}

.btn-logout:hover {
    background: rgba(232, 93, 93, 0.3);
    border-color: rgba(232, 93, 93, 0.5);
    color: var(--white);
}

/* ==================== SIDEBAR OVERLAY (MOBILE) ==================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
}

/* ==================== CONTENT SECTIONS ==================== */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.section-placeholder {
    color: var(--dark-muted);
    font-size: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 2px dashed var(--medium-gray);
}

/* ==================== STAT CARDS ==================== */
.stat-card {
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card-rose { background: linear-gradient(135deg, var(--rose), var(--peach-light)); }
.stat-card-lavender { background: linear-gradient(135deg, var(--lavender), var(--blush)); }
.stat-card-mint { background: linear-gradient(135deg, var(--mint), var(--cream)); }
.stat-card-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); }

.stat-card-body {
    text-align: center;
}

.stat-placeholder {
    width: 60px;
    height: 32px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin: 0 auto 0.75rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.stat-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    margin: 0;
}

/* ==================== BLOG SECTION ==================== */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

.btn-admin-outline {
    background: transparent;
    color: var(--lavender-deep);
    border: 1.5px solid var(--lavender-deep);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-admin-outline:hover {
    background: var(--lavender-deep);
    color: var(--white);
}

.btn-admin-outline:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Blog Table */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.blog-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.blog-table thead {
    background: linear-gradient(135deg, var(--lavender), var(--blush));
}

.blog-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.blog-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--dark);
    border-bottom: 1px solid var(--medium-gray);
    vertical-align: middle;
}

.blog-table tbody tr:hover {
    background: var(--cream);
}

.blog-table tbody tr:last-child td {
    border-bottom: none;
}

.blog-table .td-title {
    font-weight: 500;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-table .td-slug {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--dark-muted);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-table .td-actions {
    white-space: nowrap;
    display: flex;
    gap: 0.5rem;
}

.badge-published {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-published.yes {
    background: #D4EDDA;
    color: #155724;
}

.badge-published.no {
    background: #F8D7DA;
    color: #721C24;
}

.btn-table-action {
    background: transparent;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark);
}

.btn-table-action:hover {
    background: var(--lavender);
    border-color: var(--lavender-deep);
}

.btn-table-action.delete:hover {
    background: #F8D7DA;
    border-color: #E85D5D;
    color: #721C24;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.page-info {
    font-size: 0.9rem;
    color: var(--dark-muted);
    font-weight: 500;
}

/* Blog Form Layout */
.blog-form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.blog-form-fields {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.blog-form-preview {
    position: sticky;
    top: 1rem;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--dark-muted);
    margin-top: 0.25rem;
}

.form-check-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-group .form-check-input {
    width: 1.15em;
    height: 1.15em;
    margin-right: 0.5rem;
    accent-color: var(--lavender-deep);
}

.form-check-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* Markdown Input */
.markdown-input {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
}

/* Markdown Preview */
.markdown-preview {
    background: var(--white);
    border: 1.5px solid var(--medium-gray);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    min-height: 350px;
    max-height: 600px;
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
}

.markdown-preview h1 { font-family: 'Fraunces', serif; font-size: 1.75rem; font-weight: 700; margin: 1rem 0 0.5rem; color: var(--dark); }
.markdown-preview h2 { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 600; margin: 0.85rem 0 0.4rem; color: var(--dark); }
.markdown-preview h3 { font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 600; margin: 0.75rem 0 0.35rem; color: var(--dark); }
.markdown-preview p { margin: 0.5rem 0; line-height: 1.7; }
.markdown-preview ul, .markdown-preview ol { padding-left: 1.5rem; margin: 0.5rem 0; }
.markdown-preview li { margin: 0.25rem 0; }
.markdown-preview blockquote {
    border-left: 4px solid var(--lavender-deep);
    margin: 0.75rem 0;
    padding: 0.5rem 1rem;
    background: var(--cream);
    color: var(--dark-muted);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.markdown-preview code {
    background: var(--cream);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'Courier New', Consolas, monospace;
}
.markdown-preview pre {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 1rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 0.75rem 0;
}
.markdown-preview pre code {
    background: none;
    padding: 0;
    color: inherit;
}
.markdown-preview img { max-width: 100%; border-radius: 8px; }
.markdown-preview a { color: var(--lavender-deep); text-decoration: underline; }
.markdown-preview hr { border: none; border-top: 2px solid var(--medium-gray); margin: 1rem 0; }

/* Cover Image Preview */
.cover-image-preview {
    margin-top: 0.75rem;
    position: relative;
    display: inline-block;
}

.cover-image-preview img {
    max-width: 300px;
    max-height: 200px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--medium-gray);
    object-fit: cover;
}

.btn-cover-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E85D5D;
    color: white;
    border: none;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding-top: calc(var(--mobile-header-height) + 1.5rem);
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .sidebar-header {
        display: none;
    }

    .sidebar {
        padding-top: var(--mobile-header-height);
    }

    /* Blog responsive */
    .blog-form-layout {
        grid-template-columns: 1fr;
    }

    .blog-form-preview {
        position: static;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header-row .btn {
        width: 100%;
    }

    .blog-table .td-slug {
        max-width: 120px;
    }
}

@media (min-width: 992px) {
    .mobile-header {
        display: none !important;
    }
}

/* ==================== DASHBOARD STAT CARDS (Enhanced) ==================== */
.stat-icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-number {
    font-family: 'Fraunces', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.25rem;
    line-height: 1.1;
}

/* ==================== ADMIN TABLE (shared) ==================== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-table thead {
    background: linear-gradient(135deg, var(--lavender), var(--blush));
}

.admin-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--dark);
    border-bottom: 1px solid var(--medium-gray);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: var(--cream);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table .td-actions {
    white-space: nowrap;
    display: flex;
    gap: 0.5rem;
}

/* ==================== USUARIOS SECTION ==================== */
.role-select {
    border: 1.5px solid var(--medium-gray);
    border-radius: 8px;
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    min-width: 100px;
}

.role-select:focus {
    border-color: var(--lavender-deep);
    box-shadow: 0 0 0 2px rgba(166, 114, 197, 0.15);
    outline: none;
}

.role-select.role-admin {
    border-color: var(--lavender-deep);
    background: #F3E8FF;
}

.role-select.role-member {
    border-color: var(--mint);
    background: #EFF6FF;
}

.td-date {
    font-size: 0.8rem;
    color: var(--dark-muted);
    white-space: nowrap;
}

/* ==================== TESTS SECTION ==================== */
.test-form-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.questions-panel {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.questions-panel-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--dark);
    margin: 0;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.question-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--cream);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.question-item:hover {
    background: var(--blush);
}

.question-item-order {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark-muted);
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    border: 1.5px solid var(--medium-gray);
}

.question-item-text {
    flex: 1;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.type-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.type-badge-text {
    background: #D4EDDA;
    color: #155724;
}

.type-badge-multiple_choice {
    background: #CCE5FF;
    color: #004085;
}

.type-badge-scale {
    background: #FFF3CD;
    color: #856404;
}

.question-item-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.question-item-actions .btn-table-action {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
}

.btn-reorder {
    background: transparent;
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-muted);
    line-height: 1;
}

.btn-reorder:hover {
    background: var(--lavender);
    border-color: var(--lavender-deep);
    color: var(--dark);
}

.badge-active {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-active.yes {
    background: #D4EDDA;
    color: #155724;
}

.badge-active.no {
    background: #F8D7DA;
    color: #721C24;
}

/* ==================== RESPUESTAS SECTION ==================== */
.respuestas-selectors {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.respuestas-selectors .form-group {
    flex: 1;
    min-width: 200px;
}

.respuestas-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.answer-row {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    align-items: flex-start;
}

.answer-question {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.answer-value {
    flex: 1;
    font-size: 0.9rem;
    color: var(--dark-muted);
    word-break: break-word;
}

.answer-type {
    flex-shrink: 0;
}

.btn-export-csv {
    background: linear-gradient(135deg, #5B9FD4, #4A8BC2);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.45rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-export-csv:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ==================== RESPONSIVE (Stage 4 additions) ==================== */
@media (max-width: 991.98px) {
    .respuestas-selectors {
        flex-direction: column;
        gap: 0.75rem;
    }

    .answer-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .question-item {
        flex-wrap: wrap;
    }

    .question-item-text {
        white-space: normal;
        min-width: 0;
    }

    .test-form-layout {
        gap: 1rem;
    }
}
