/* =========================
   MIND RUSH - PAINEL ADMIN CSS v2.1 (Limpo)
========================= */

/* Import de Fontes e Variáveis Globais */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Cores Mind Rush (importadas do site principal) */
  --primary: #D8328F;
  --secondary: #29D8E4;
  --bg-dark: #1A1A3D;
  --bg-darker: #1F1F45;
  --text: #E0E0E0;
  --text-muted: #9CA3AF;
  --border-glass: rgba(255, 255, 255, 0.1);
  --error: #ef4444;
  --success: #22c55e;
  
  /* Gradientes */
  --hero-gradient: 
    radial-gradient(ellipse 70% 80% at 20% 50%, hsla(300, 75%, 45%, 0.4) 0px, transparent 100%),
    radial-gradient(ellipse 50% 80% at 80% 50%, hsla(185, 85%, 50%, 0.5) 0px, transparent 100%);

  /* Tipografia */
  --font-primary: 'Poppins', system-ui, sans-serif;
  
  /* Animações */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Básico */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilo do Body da Página de Login */
.admin-login-bg {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text);
  background-image: var(--hero-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Container Principal */
.login-container {
  width: 100%;
  max-width: 400px;
  padding: 1rem;
}

/* Logo */
.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.login-logo img {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
  transition: var(--transition);
}
.login-logo img:hover {
    transform: scale(1.05);
}

/* Card de Login (efeito vidro) */
.glass-card {
  background: rgba(35, 35, 79, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.login-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #fff;
}

/* Formulário */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}
.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 0.5rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(41, 216, 228, 0.2);
}
.form-actions {
  margin-top: 1rem;
  text-align: center;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(41, 216, 228, 0.3);
}

/* Alertas de Erro */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  border: 1px solid;
}
.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* =========================
   ESTILOS DO DASHBOARD
========================= */
.admin-dashboard-bg {
    font-family: var(--font-primary);
    background-color: var(--bg-darker);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    display: flex;
}
.admin-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}
.sidebar {
    width: 260px;
    flex-shrink: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    border-right: 1px solid var(--border-glass);
}
.sidebar-header {
    margin-bottom: 2.5rem;
    text-align: center;
}
.sidebar-logo {
    max-width: 150px;
    height: auto;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}
.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text);
}
.nav-link.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(216, 50, 143, 0.3);
}
.nav-icon {
    width: 20px;
    height: 20px;
}
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}
.main-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}
.header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.header-user strong {
    color: var(--secondary);
}
.logout-link {
    color: var(--text-muted);
    transition: var(--transition);
}
.logout-link:hover {
    color: var(--error);
}
.logout-link svg {
    width: 24px;
    height: 24px;
}
.content-area {
    flex-grow: 1;
}

/* =========================
   COMPONENTES DO CONTEÚDO
========================= */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}
.page-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: -1.5rem;
    width: 100%;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.stat-card {
    padding: 1.5rem;
}
.stat-title {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}
.content-card {
    padding: 2rem;
    width: 100%;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}
.data-table th {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}
.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}
.actions-cell {
    text-align: right;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}
.action-btn {
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}
.action-edit { color: var(--secondary); }
.action-edit:hover { color: #5efcfc; }
.action-delete { color: var(--error); }
.action-delete:hover { color: #ff7575; }
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-published {
    background-color: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}
.status-draft {
    background-color: rgba(245, 158, 11, 0.1);
    color: #fcd34d;
}
.empty-state, .error-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.error-state { color: var(--error); }
.btn {
    width: auto;
    padding: 0.7rem 1.5rem;
}
.alert {
    margin-bottom: 2rem;
}

/* =========================
   ESTILOS DE FORMULÁRIOS
========================= */
.form-card {
    padding: 2rem;
    background: rgba(35, 35, 79, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
}
.form-section {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-glass);
}
.form-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.form-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-glass);
}
.form-group-grid {
    display: grid;
    gap: 1.5rem;
}
.form-group-grid.two-columns {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
fieldset {
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}
legend {
    padding: 0 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
}
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

/* Formulários - Estilos adicionais */
.form-help {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: block;
}

/* Link externo na tabela */
.external-link {
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--secondary);
  transition: var(--transition);
}

.external-link:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* SEO Modal */
.seo-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-darker);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.seo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.seo-modal-content {
  padding: 2rem;
}

.seo-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.seo-modal-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.5rem;
}

.seo-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.seo-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.section-title {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-glass);
}
textarea.form-input {
    resize: vertical;
    min-height: 120px;
}
select.form-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' 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 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}
.image-preview {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.image-preview img {
    max-width: 150px;
    height: auto;
    border-radius: 0.5rem;
    border: 2px solid var(--border-glass);
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text);
}

/* ===== ESTILO GLOBAL PARA INPUT DE FICHEIRO (UPLOAD) ===== */
.form-input[type="file"] {
    padding: 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 0.5rem;
    color: var(--text-muted);
    line-height: 2.5;
}
.form-input[type="file"]::file-selector-button {
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.9rem;
    border: none;
    padding: 0.8rem 1.5rem;
    margin-right: 1rem;
    border-radius: 0.5rem 0 0 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
}
.form-input[type="file"]::file-selector-button:hover {
    background-color: var(--secondary);
}

/* =========================
   ESTILOS DE CONFIRMAÇÃO
========================= */
.confirmation-card {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    border-left: 4px solid var(--error);
}
.confirmation-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fca5a5;
    margin-bottom: 1rem;
}
.confirmation-text {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.confirmation-text strong {
    color: var(--text);
    font-weight: 600;
}
.confirmation-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.btn-danger {
    background-color: var(--error);
    color: #fff;
}
.btn-danger:hover {
    background-color: #dc2626;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

/* =========================
   ESTILOS DE FIELDSET (PARA FORMULÁRIOS LONGOS)
========================= */
.form-fieldset {
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-fieldset legend {
    padding: 0 0.5rem;
    font-weight: 600;
    color: var(--secondary);
}

/* =========================
   [NOVO] ESTILOS PARA A SECÇÃO MISSÃO COM IMAGEM
========================= */

.mission-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem; /* Espaçamento entre texto e imagem */
    flex-wrap: wrap; /* Permite quebrar para uma única coluna em ecrãs pequenos */
}

.mission-text {
    flex: 1; /* Ocupa o espaço disponível */
    min-width: 300px; /* Largura mínima para o texto antes de quebrar */
}

.mission-image {
    flex: 1; /* Ocupa o espaço disponível */
    min-width: 300px; /* Largura mínima para a imagem */
    display: flex;
    justify-content: center;
    align-items: center;
}

.mission-image img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem; /* Cantos arredondados */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Sombra subtil */
}

/* Ajuste para alinhar o texto à esquerda quando há imagem */
.mission-wrapper .section-header {
    text-align: left;
}

/* Em ecrãs pequenos, o texto volta a ser centrado */
@media (max-width: 768px) {
    .mission-wrapper .section-header {
        text-align: center;
    }
}


/* =========================
   EDITOR RICO - ESTILOS INTEGRADOS
   Adicione este bloco ao final do seu admin.css existente
========================= */

/* 1. Wrapper que contém a textarea e o sistema de editor */
.editor-wrapper {
    position: relative;
    display: block;
    margin-bottom: 1rem;
}

/* 2. Botão/ícone para ativar o editor rico */
.activate-editor-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 100;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.activate-editor-btn:hover {
    background: var(--secondary);
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(41, 216, 228, 0.3);
}

.activate-editor-btn svg {
    width: 18px;
    height: 18px;
}

/* 3. Status indicator */
.editor-status {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: inline-block;
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.editor-status.active {
    color: var(--secondary);
    background: rgba(41, 216, 228, 0.1);
    border-color: rgba(41, 216, 228, 0.3);
}

/* 4. Estilos do Quill quando ativado - seletores específicos para evitar conflitos */
.editor-wrapper.editor-active .ql-toolbar.ql-snow {
    background: var(--primary) !important;
    border: 1px solid var(--border-glass) !important;
    border-bottom: none !important;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    padding: 12px !important;
}

.editor-wrapper.editor-active .ql-container.ql-snow {
    border: 1px solid var(--border-glass) !important;
    border-top: none !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    min-height: 300px !important;
    font-family: var(--font-primary) !important;
}

.editor-wrapper.editor-active .ql-editor {
    color: #2d3748 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    padding: 20px !important;
}

.editor-wrapper.editor-active .ql-editor.ql-blank::before {
    color: #a0aec0 !important;
    font-style: italic !important;
    font-size: 15px !important;
}

/* 5. Ícones da toolbar do Quill - tema Mind Rush */
.editor-wrapper.editor-active .ql-snow .ql-stroke { 
    stroke: rgba(255,255,255,0.8) !important; 
}

.editor-wrapper.editor-active .ql-snow .ql-fill { 
    fill: rgba(255,255,255,0.8) !important; 
}

.editor-wrapper.editor-active .ql-snow .ql-picker-label { 
    color: rgba(255,255,255,0.8) !important; 
}

.editor-wrapper.editor-active .ql-snow button:hover .ql-stroke,
.editor-wrapper.editor-active .ql-snow button:hover .ql-fill {
    stroke: white !important;
    fill: white !important;
}

.editor-wrapper.editor-active .ql-snow .ql-picker-label:hover {
    color: white !important;
}

.editor-wrapper.editor-active .ql-snow .ql-active .ql-stroke {
    stroke: var(--secondary) !important;
}

.editor-wrapper.editor-active .ql-snow .ql-active .ql-fill {
    fill: var(--secondary) !important;
}

/* 6. Dropdown menus do Quill */
.editor-wrapper.editor-active .ql-snow .ql-picker-options {
    background: var(--bg-darker) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.editor-wrapper.editor-active .ql-snow .ql-picker-item {
    color: var(--text) !important;
}

.editor-wrapper.editor-active .ql-snow .ql-picker-item:hover {
    background: rgba(41, 216, 228, 0.1) !important;
    color: var(--secondary) !important;
}

/* 7. Botão de voltar para textarea */
.back-to-textarea-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 101;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    line-height: 1;
}

.back-to-textarea-btn:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* 8. Animações suaves */
.editor-wrapper.editor-active .quill-container {
    animation: slideInEditor 0.3s ease-out;
}

@keyframes slideInEditor {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 9. Responsividade para o editor */
@media (max-width: 768px) {
    .editor-wrapper.editor-active .ql-toolbar.ql-snow {
        padding: 8px !important;
    }
    
    .editor-wrapper.editor-active .ql-container.ql-snow {
        min-height: 250px !important;
    }
    
    .editor-wrapper.editor-active .ql-editor {
        padding: 15px !important;
        font-size: 15px !important;
    }
    
    .activate-editor-btn {
        width: 32px;
        height: 32px;
    }
    
    .activate-editor-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* 10. Estados especiais para conteúdo já formatado */
.editor-wrapper textarea[name*="content"],
.editor-wrapper textarea[name*="description"] {
    font-family: var(--font-primary);
    line-height: 1.6;
    resize: vertical;
}

/* 11. Melhor integração visual com o design existente */
.editor-wrapper.editor-active .ql-toolbar.ql-snow .ql-formats {
    margin-right: 15px;
}

.editor-wrapper.editor-active .ql-toolbar.ql-snow .ql-formats:last-child {
    margin-right: 0;
}

/* 12. Foco melhorado */
.editor-wrapper.editor-active .ql-editor:focus {
    outline: 2px solid var(--secondary);
    outline-offset: -2px;
}

/* 13. Loading state (opcional) */
.editor-wrapper.loading .activate-editor-btn {
    opacity: 0.5;
    cursor: not-allowed;
}

.editor-wrapper.loading .activate-editor-btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================================================
   SEO REPORT DASHBOARD STYLES
   ============================================================================= */

/* SEO Report Grid */
.seo-report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.seo-report-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.seo-report-section h3 {
    margin: 0 0 1rem 0;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
}

/* SEO Items */
.seo-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.seo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.seo-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1;
}

/* SEO Progress */
.seo-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.seo-count {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 3rem;
    text-align: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.seo-count.complete {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.seo-count.incomplete {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Progress Bar */
.progress-bar {
    width: 100px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #22c55e 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        transparent 25%,
        rgba(255,255,255,0.1) 25%,
        rgba(255,255,255,0.1) 50%,
        transparent 50%,
        transparent 75%,
        rgba(255,255,255,0.1) 75%);
    background-size: 8px 8px;
    animation: progress-stripe 1s linear infinite;
}

@keyframes progress-stripe {
    0% { background-position: 0 0; }
    100% { background-position: 8px 0; }
}

/* SEO Summary */
.seo-summary {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.seo-summary h3 {
    color: var(--primary);
}

.seo-summary-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.summary-label {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.summary-percentage {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    border: 1px solid;
}

.summary-percentage.good {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
}

.summary-percentage.warning {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.summary-percentage.danger {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.summary-count {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
}

/* Statistics Grid Enhancement */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.stat-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
    line-height: 1;
}

.stat-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-published {
    color: #22c55e;
    font-weight: 500;
}

.status-draft {
    color: #f59e0b;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .seo-report-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .seo-progress {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }

    .progress-bar {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .seo-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .seo-progress {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .progress-bar {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* =============================================================================
   CHECKBOX STYLES FOR IMAGE SHARING
   ============================================================================= */

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    color: var(--primary);
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-glass);
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label:hover .checkmark {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    display: block;
}

.checkbox-label input[type="checkbox"]:focus ~ .checkmark {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

