/* 
  Dashboard Design System - Modern Magazine Extension
  Entreparágrafos Dashboard
*/

:root {
    /* Shared Tokens (Mirroring style.css) */
    --dash-primary: #0D3B47;
    --dash-accent: #1F6672;
    --dash-secondary: #B0B0B0;
    --dash-text: #333333;
    --dash-bg: #FFFFFF;
    --dash-bg-alt: #F8F8F8;

    --dash-sidebar-w: 260px;
    --dash-sidebar-bg: #0D3B47;
    --dash-sidebar-text: #FFFFFF;
    --dash-border: #E5E7EB;
    --dash-radius: 2px;

    /* Status Colors */
    --color-success: #166534;
    --color-warning: #92400E;
    --color-error: #991B1B;
    --color-info: #075985;

    --dash-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --dash-shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --dash-transition: all 0.2s ease-in-out;

    /* Article Typography & Spacing */
    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Lora', serif;
    --article-line-height: 1.8;
}

.hidden {
    display: none !important;
}

/* Selection color */
::selection {
    background-color: var(--dash-primary);
    color: #fff;
}

/* Dashboard Body Layout */
.dashboard-body {
    display: flex;
    min-height: 100vh;
    background-color: var(--dash-bg-alt);
    color: var(--dash-text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.sidebar-header h2 {
    font-family: 'Lora', serif;
    font-weight: 600;
}

/* Global Element Overrides - Eliminating the "2010" look */
button,
input[type="button"],
input[type="submit"] {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--dash-transition);
}

input,
select,
textarea {
    font-family: inherit;
    border: 1px solid #D1D5DB;
    border-radius: var(--dash-radius);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: var(--dash-text);
    background: #fff;
    transition: var(--dash-transition);
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
    outline: none;
    border-color: var(--dash-accent);
    box-shadow: 0 0 0 3px rgba(31, 102, 114, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    color: var(--dash-primary);
}

.form-control {
    width: 100%;
}

/* Navigation Back Button */
.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dash-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    padding: 0.4rem 0.8rem;
    border-radius: var(--dash-radius);
    background: #fff;
    border: 1px solid var(--dash-border);
    transition: var(--dash-transition);
}

.nav-back:hover {
    color: var(--dash-primary);
    border-color: var(--dash-accent);
    background: var(--dash-bg-alt);
}

/* Sidebar Styling - Refined */
.sidebar {
    width: var(--dash-sidebar-w);
    background-color: var(--dash-sidebar-bg);
    color: var(--dash-sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    transition: var(--dash-transition);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header h2 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: var(--dash-transition);
    border-left: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(255, 255, 255, 0.03);
    color: #fff;
    border-left-color: var(--dash-accent);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

#btn-logout {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: var(--dash-radius);
    font-size: 0.75rem;
    font-weight: 500;
    width: 100%;
    margin-top: 10px;
    transition: var(--dash-transition);
}

#btn-logout:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--dash-sidebar-w);
    padding: 4rem;
    max-width: 1200px;
}

.dashboard-header,
.dash-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--dash-border);
    padding-bottom: 1.5rem;
}

.dash-header h1 {
    font-size: 2.2rem;
    color: var(--dash-primary);
    margin-bottom: 0.5rem;
}

.text-muted {
    color: var(--dash-secondary);
    font-size: 0.95rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--dash-radius);
    box-shadow: var(--dash-shadow);
    border: 1px solid var(--dash-border);
}

.stat-card .label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dash-secondary);
    letter-spacing: 1px;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dash-primary);
    margin-top: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

/* Common Dashboard Components */
.dash-card {
    background: #fff;
    border-radius: var(--dash-radius);
    box-shadow: var(--dash-shadow);
    border: 1px solid var(--dash-border);
    padding: 2rem;
    margin-bottom: 2rem;
}

.context-box {
    background: var(--dash-bg-alt);
    border-radius: 4px;
    padding: 1.5rem;
    border-left: 4px solid var(--dash-accent);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Data Tables */
.table-wrapper {
    background: #fff;
    border-radius: var(--dash-radius);
    box-shadow: var(--dash-shadow);
    border: 1px solid var(--dash-border);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: var(--dash-bg-alt);
    text-align: left;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--dash-border);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dash-primary);
}

td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--dash-border);
    font-size: 0.95rem;
}

tr:hover {
    background-color: rgba(13, 59, 71, 0.02);
}

/* WYSIWYG Editor Styles */
.editor-wrapper {
    position: relative;
    background: #fff;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius);
    padding: 2rem;
    box-shadow: var(--dash-shadow);
    margin-top: 1rem;
}

.floating-toolbar {
    background: var(--dash-sidebar-bg);
    padding: 8px;
    border-radius: var(--dash-radius);
    display: flex;
    gap: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: var(--dash-transition);
    z-index: 1001;
    border: 1px solid var(--dash-accent);
}

.floating-toolbar.active {
    opacity: 1;
    pointer-events: auto;
}

.toolbar-btn {
    background: transparent;
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--dash-transition);
}

.toolbar-btn:hover,
.toolbar-btn.active-format {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dash-accent);
}

.wysiwyg-editor {
    min-height: 500px;
    outline: none;
    line-height: 1.8;
    color: var(--dash-text);
    padding: 2.5rem;
    background: #fff;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius);
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    transition: border-color 0.2s ease;
}

.wysiwyg-editor:focus {
    border-color: var(--status-approved-text);
    box-shadow: 0 15px 40px rgba(13, 59, 71, 0.12);
}

.wysiwyg-editor[data-placeholder]:empty:before {
    content: attr(data-placeholder);
    color: var(--dash-secondary);
    opacity: 0.6;
    font-style: italic;
}

/* Co-author management styles */
.coauthor-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1.5rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--dash-border);
    border-radius: 6px;
    margin-bottom: 1rem;
    align-items: center;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coauthor-row input {
    background: var(--dash-bg-alt);
    border: 1px solid transparent;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.coauthor-row input:focus {
    background: #fff;
    border-color: var(--dash-accent);
}

.btn-remove-coauthor {
    background: none;
    border: none;
    color: var(--color-error);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pexels Gallery Integration */
.pexels-search-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pexels-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.pexels-item {
    cursor: pointer;
    border-radius: var(--dash-radius);
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--dash-transition);
}

.pexels-item:hover {
    transform: scale(1.05);
}

.pexels-item.selected {
    border-color: var(--dash-accent);
    box-shadow: 0 0 0 3px rgba(31, 102, 114, 0.2);
}

.pexels-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

/* Spinner Animation */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(13, 59, 71, 0.1);
    border-top-color: var(--dash-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
    color: var(--dash-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Modal Polish */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 59, 71, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-content {
    background: #fff;
    border-radius: var(--dash-radius);
    box-shadow: var(--dash-shadow-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
}

.modal-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--dash-border);
    padding-bottom: 1rem;
}

/* Button Refinement */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--dash-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--dash-transition);
}

.btn-primary {
    background-color: var(--dash-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--dash-accent);
    transform: translateY(-1px);
    box-shadow: var(--dash-shadow);
}

.action-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: var(--dash-bg-alt);
    border: 1px solid var(--dash-border);
    border-radius: 4px;
    color: var(--dash-primary);
    transition: var(--dash-transition);
}

.action-btn:hover {
    background: var(--dash-accent);
    color: #fff;
    border-color: var(--dash-accent);
}

.action-btn-pill {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--dash-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.btn-primary-outline {
    background: transparent;
    border-color: var(--dash-primary);
    color: var(--dash-primary);
}

.btn-primary-outline:hover {
    background: var(--dash-primary);
    color: #fff;
}

.btn-danger-outline {
    background: transparent;
    border-color: var(--color-error);
    color: var(--color-error);
}

.btn-danger-outline:hover {
    background: var(--color-error);
    color: #fff;
}

.wysiwyg-toolbar {
    background: var(--dash-primary);
    padding: 8px 12px;
    border-radius: 8px 8px 0 0;
    display: flex;
    gap: 5px;
    align-items: center;
    border-bottom: 2px solid var(--dash-accent);
}

.toolbar-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--dash-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.toolbar-btn.active {
    background: var(--dash-accent);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border-color: var(--dash-border);
    color: var(--dash-text);
}

.btn-outline:hover {
    border-color: var(--dash-accent);
    color: var(--dash-accent);
}

.btn-danger {
    background: var(--color-error);
    color: #fff;
}

.btn-danger:hover {
    background: #d32f2f;
}

.access-denied {
    text-align: center;
    padding: 5rem 2rem;
}

.access-denied h1 {
    color: var(--color-error);
    font-size: 3rem;
}

/* Modals - Fixed and Premium */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 59, 71, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--dash-border);
    padding-bottom: 1rem;
}

.modal-header h2 {
    color: var(--dash-primary);
    margin: 0;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.status-badge.pending {
    background: #E3F2FD;
    color: #1976D2;
}

.status-badge.approved {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-badge.rejected {
    background: #FFEBEE;
    color: #C62828;
}

.status-badge.revision {
    background: #FFF3E0;
    color: #E65100;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.pending {
    background: #F2994A;
    color: #fff;
}

.badge.approved {
    background: #27AE60;
    color: #fff;
}

.badge.rejected {
    background: #EB5757;
    color: #fff;
}

/* Process Guide / Admin UI */
.process-guide {
    background: #fff;
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.process-guide summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--dash-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    background: var(--dash-bg-alt);
}

.process-guide summary::-webkit-details-marker {
    display: none;
}

.guide-body {
    padding: 2rem;
    background: #fff;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.guide-step {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--dash-border);
}

.guide-step-num {
    font-family: var(--font-heading);
    color: var(--dash-primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    opacity: 0.5;
}

.guide-step-content strong {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--dash-primary);
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.guide-step-content p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--dash-secondary);
}

.guide-note {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(31, 102, 114, 0.05);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--dash-primary);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }

    .nav-item span,
    .sidebar-header h2 {
        display: none;
    }

    .main-content {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .dashboard-body {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
    }

    .nav-item {
        border-left: none;
        border-bottom: 4px solid transparent;
    }

    .nav-item.active {
        border-bottom-color: var(--dash-accent);
    }
}

/* --- Dark Mode Overrides --- */
.dark-mode {
    --dash-bg: #0A1116;
    --dash-bg-alt: #101920;
    --dash-sidebar-bg: #05080A;
    --dash-sidebar-text: rgba(255, 255, 255, 0.7);
    --dash-primary: #f0f2f5;
    --dash-secondary: #94a3b8;
    --dash-text: #e2e8f0;
    --dash-text-muted: #64748b;
    --dash-border: rgba(255, 255, 255, 0.1);
    --dash-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.dark-mode .dash-card,
.dark-mode .stat-card {
    background: #101920;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .nav-item {
    color: rgba(255, 255, 255, 0.5);
}

.dark-mode .nav-item:hover,
.dark-mode .nav-item.active {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

.dark-mode .wysiwyg-editor {
    background: #0A1116;
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .toolbar {
    background: #162129;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .toolbar-btn {
    color: #94a3b8;
}

.dark-mode .toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.dark-mode input,
.dark-mode select,
.dark-mode textarea {
    background: #162129;
    color: #f0f2f5;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .article-list th {
    background: #162129;
    color: #94a3b8;
}

.dark-mode .article-list td {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* --- Article Page Premium Minimalist Styling --- */
.article-page {
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--dash-border);
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-meta {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dash-accent);
    margin-bottom: 1rem;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dash-primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-abstract {
    background: #fbfbfc;
    border-left: 4px solid var(--dash-accent);
    border-radius: 0 8px 8px 0;
    padding: 1.8rem 2rem;
    margin-bottom: 3rem;
    color: var(--dash-text);
    line-height: 1.7;
    font-size: 1.05rem;
}

.dark-mode .article-abstract {
    background: rgba(255, 255, 255, 0.02);
}

.article-content {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: var(--article-line-height);
    color: var(--dash-text);
    text-align: justify;
}

.article-content p {
    margin-bottom: 1.8rem;
}

.article-content h2,
.article-content h3 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: var(--dash-primary);
}

.article-content blockquote {
    border-left: 3px solid var(--dash-accent);
    padding-left: 1.5rem;
    margin: 3rem 0;
    color: #555;
}

/* Author Section - Minimalist */
.author-profile-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--dash-border);
}

.author-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-card-initial {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--dash-bg-alt);
    color: var(--dash-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    border: 1px solid var(--dash-border);
}

.author-card-info h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.author-card-info p {
    font-size: 0.95rem;
    color: var(--dash-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Recent Articles Box */
#recent-articles-box {
    margin-top: 4rem;
    background: #fbfbfc !important;
    border: 1px solid var(--dash-border) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .article-page {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .author-profile-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Comment Section Styles */
.comment-card {
    background: #fff;
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--dash-transition);
}

.comment-card.is-reply {
    margin-left: 3rem;
    background: #f9fafb;
    border-left: 3px solid var(--dash-accent);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dash-primary);
}

.comment-meta {
    font-size: 0.8rem;
    color: var(--dash-secondary);
}

.comment-body {
    line-height: 1.6;
    color: var(--dash-text);
    margin-bottom: 1rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-action-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dash-accent);
    cursor: pointer;
    transition: var(--dash-transition);
}

.comment-action-btn:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.reply-form-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--dash-border);
    border-radius: 6px;
}

/* --- Manual do Parecerista Styles --- */
.manual-container {
    background: #ffffff;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    padding: 3rem 4rem;
    box-shadow: var(--dash-shadow);
    max-width: 900px;
    margin: 0 auto 3rem;
    font-family: var(--font-serif);
    line-height: 1.8;
    color: var(--dash-text);
}

.manual-header {
    text-align: center;
    border-bottom: 2px solid var(--dash-accent);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.manual-header p:first-child {
    font-family: var(--font-heading);
    color: var(--dash-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.manual-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--dash-primary);
    margin-bottom: 0.5rem;
}

.manual-header p:last-child {
    color: var(--dash-secondary);
    font-style: italic;
}

.manual-section {
    margin-bottom: 2.5rem;
}

.manual-section h2 {
    font-family: var(--font-heading);
    color: var(--dash-primary);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--dash-border);
    padding-bottom: 0.5rem;
}

.manual-section h3 {
    font-family: var(--font-heading);
    color: var(--dash-accent);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.manual-section p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.manual-section ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    font-size: 1.05rem;
}

.manual-section li {
    margin-bottom: 0.8rem;
    list-style-type: square;
}

.manual-section li strong {
    color: var(--dash-accent);
}

.manual-footer {
    border-top: 1px solid var(--dash-border);
    padding-top: 2rem;
    text-align: center;
    font-style: italic;
    color: var(--dash-primary);
    font-size: 1.1rem;
    background: var(--dash-bg-alt);
    margin: 0 -4rem -3rem;
    padding: 2rem 4rem;
    border-radius: 0 0 12px 12px;
}

@media (max-width: 768px) {
    .manual-container {
        padding: 2rem;
    }

    .manual-footer {
        margin: 0 -2rem -2rem;
        padding: 1.5rem 2rem;
    }
}

/* Editorial Timeline Styles */
.editorial-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    padding-left: 2rem;
    margin-top: 1.5rem;
}

.editorial-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--dash-border);
}

.timeline-step {
    position: relative;
    font-size: 0.9rem;
    color: var(--dash-secondary);
    line-height: 1.4;
    transition: var(--dash-transition);
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--dash-border);
    z-index: 1;
    transition: var(--dash-transition);
}

.timeline-step.completed {
    color: var(--dash-text);
    font-weight: 500;
}

.timeline-step.completed::before {
    background: var(--dash-accent);
    border-color: var(--dash-accent);
    box-shadow: 0 0 0 4px rgba(31, 102, 114, 0.1);
}

.timeline-step.active {
    color: var(--dash-primary);
    font-weight: 600;
}

.timeline-step.active::before {
    background: #fff;
    border-color: var(--dash-accent);
    border-width: 4px;
}

.timeline-step.rejected {
    color: var(--color-error);
    font-weight: 600;
}

.timeline-step.rejected::before {
    background: var(--color-error);
    border-color: var(--color-error);
}