/* 
   Academia Rede Cuesta - Estilos Globais e Componentes
   Paleta de Cores Institucionais: Verde (principal), Amarelo/Laranja (destaques), Branco (limpeza)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Cores Cuesta */
    --color-primary: #0b6623;
    --color-primary-hover: #084f1a;
    --color-primary-light: #e8f5e9;
    --color-secondary: #ff9f00;
    --color-secondary-hover: #e08b00;
    --color-secondary-light: #fff8e1;
    
    /* Neutros */
    --color-bg: #f6f7f8;
    --color-surface: #ffffff;
    --color-white: #ffffff;
    --color-text-dark: #172033;
    --color-text-muted: #667085;
    --color-text-light: #9ca3af;
    --color-border: #e7eaf0;
    
    /* Cores de Alerta */
    --color-success: #10b981;
    --color-success-light: #ecfdf5;
    --color-danger: #ef4444;
    --color-danger-light: #fef2f2;
    --color-info: #3b82f6;
    --color-info-light: #eff6ff;

    /* Tipografia e Bordas */
    --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow-md: 0 10px 28px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 22px 60px rgba(16, 24, 40, 0.14);
    --shadow-glow: 0 18px 44px rgba(11, 102, 35, 0.16);
    
    /* Transições */
    --transition-fast: 0.18s ease;
    --transition-normal: 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* Dimensões */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

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

/* Scrollbar Customizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-text-light);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* ==========================================================================
   ESTILOS DE TELA DE AUTENTICAÇÃO (LOGIN, REGISTRO, PENDENTE)
   ========================================================================== */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.auth-wrapper::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 159, 0, 0.05);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.auth-card {
    background: var(--color-surface);
    width: 100%;
    max-width: 460px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    z-index: 10;
    animation: softRise 0.38s ease both;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.auth-logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    max-height: 70px;
    object-fit: contain;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-top: 15px;
    text-align: center;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 5px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background-color: var(--color-bg);
    transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-surface);
    box-shadow: 0 0 0 4px rgba(11, 102, 35, 0.12);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.65;
    cursor: wait;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
}

.btn-primary:hover {
    background-color: var(--color-secondary-hover);
    color: var(--color-text-dark);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--color-primary-hover);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--color-border);
    color: var(--color-text-dark);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.btn-danger {
    background-color: var(--color-danger);
    color: white;
}

.btn-danger:hover {
    background-color: #b91c1c;
    color: white;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 0.875rem;
}

.auth-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-pending-screen {
    text-align: center;
}

.pending-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-secondary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    color: var(--color-secondary);
    font-size: 2.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 159, 0, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 159, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 159, 0, 0); }
}

/* ==========================================================================
   APP SHELL (LAYOUT PRINCIPAL)
   ========================================================================== */

.app-shell {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* Sidebar Desktop */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--color-text-dark);
    color: white;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: width var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: var(--header-height);
}

.sidebar-logo {
    max-height: 40px;
    object-fit: contain;
    transition: opacity var(--transition-fast);
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    color: white;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    overflow-y: auto;
}

.menu-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin: 15px 10px 5px 10px;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.sidebar-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-menu-item.active {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.sidebar-menu-item.active svg {
    color: var(--color-secondary);
}

.sidebar-menu-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(0, 0, 0, 0.15);
}

.user-profile-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--color-secondary);
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-badge {
    font-size: 0.75rem;
    color: var(--color-secondary);
    font-weight: 500;
}

/* Área de Conteúdo Principal */
.main-wrapper {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-normal);
}

/* Header Principal */
.app-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.page-title-area {
    display: flex;
    flex-direction: column;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.page-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Notificação Badge */
.notification-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: 50%;
    color: var(--color-text-muted);
    transition: background-color var(--transition-fast);
}

.notification-btn:hover {
    background-color: var(--color-bg);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: var(--color-danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: var(--radius-full);
}

/* Viewport Central */
.content-viewport {
    padding: 30px;
    flex-grow: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-text-dark);
    height: 60px;
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-item {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
}

.mobile-nav-item svg {
    width: 20px;
    height: 20px;
}

.mobile-nav-item.active {
    color: var(--color-secondary);
}

.feature-lives-hidden {
    display: none !important;
}

.mobile-nav-contact {
    color: var(--color-secondary);
    font-weight: 800;
}

.mobile-nav-contact span:first-child {
    width: 38px;
    height: 38px;
    margin-top: -12px;
    border-radius: var(--radius-full);
    background: var(--color-secondary);
    color: var(--color-text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(255, 159, 10, 0.35);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.mobile-nav-contact:hover span:first-child,
.mobile-nav-contact.active span:first-child {
    transform: translateY(-2px);
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 12px 24px rgba(11, 102, 35, 0.35);
}

.mobile-nav-contact i[data-lucide],
.mobile-nav-contact svg {
    margin-bottom: 0;
}

/* Collapsed Sidebar Styles */
body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .sidebar .sidebar-logo,
body.sidebar-collapsed .sidebar .user-info,
body.sidebar-collapsed .sidebar .menu-section-title,
body.sidebar-collapsed .sidebar .sidebar-menu-item span {
    display: none;
}

body.sidebar-collapsed .sidebar-header {
    justify-content: center;
}

body.sidebar-collapsed .main-wrapper {
    margin-left: var(--sidebar-collapsed-width);
}

/* ==========================================================================
   DASHBOARD COLABORADOR (VIEW INICIAL DO COLABORADOR)
   ========================================================================== */

.welcome-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.welcome-banner::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 250px;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 159, 0, 0.15) 10%, transparent 10.1%);
    background-size: 20px 20px;
    opacity: 0.7;
    pointer-events: none;
}

.welcome-text h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
}

.welcome-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-dark);
    line-height: 1.1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon-wrapper.primary {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.stat-icon-wrapper.secondary {
    background-color: var(--color-secondary-light);
    color: var(--color-secondary);
}

.stat-icon-wrapper.success {
    background-color: var(--color-success-light);
    color: var(--color-success);
}

/* Progresso Redondo */
.progress-radial-wrapper {
    position: relative;
    width: 65px;
    height: 65px;
}

.progress-radial-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.progress-circle-bg {
    fill: none;
    stroke: var(--color-border);
    stroke-width: 6;
}

.progress-circle-value {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1s ease-out;
}

.progress-radial-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
}

.progress-stat-card {
    position: relative;
    min-height: 118px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 50%, rgba(11, 102, 35, 0.08), transparent 7.5rem),
        rgba(255, 255, 255, 0.94);
}

.progress-stat-card::after {
    content: '';
    position: absolute;
    right: -34px;
    bottom: -44px;
    width: 130px;
    height: 130px;
    border-radius: var(--radius-full);
    background: rgba(11, 102, 35, 0.045);
    pointer-events: none;
}

.progress-stat-card .stat-info {
    gap: 6px;
    z-index: 1;
}

.progress-stat-card .stat-info span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem !important;
    letter-spacing: -0.01em;
    color: var(--color-text-dark) !important;
}

.progress-stat-card .stat-info span::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), #13a148);
    box-shadow: 0 0 0 5px rgba(11, 102, 35, 0.1);
}

.progress-stat-card .progress-radial-wrapper {
    width: 72px;
    height: 72px;
    padding: 7px;
    border-radius: var(--radius-full);
    background: #fff;
    box-shadow: 0 12px 28px rgba(11, 102, 35, 0.16);
    z-index: 1;
}

.progress-stat-card .progress-circle-bg {
    stroke: #eef2f6;
    stroke-width: 5.2;
}

.progress-stat-card .progress-circle-value {
    stroke: url(#progressGradient);
    stroke-width: 5.2;
    filter: drop-shadow(0 2px 3px rgba(11, 102, 35, 0.25));
}

.progress-stat-card .progress-radial-text {
    font-size: 0.88rem;
    font-weight: 800;
}

/* Dashboard Sections */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title svg {
    color: var(--color-primary);
}

.dashboard-split-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .dashboard-split-layout {
        grid-template-columns: 1fr;
    }
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.content-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: softRise 0.32s ease both;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.content-card:hover {
    transform: translateY(-6px);
    border-color: rgba(11, 102, 35, 0.35);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.13);
}

.content-card:hover .card-thumbnail,
.content-card:hover .card-thumbnail-placeholder {
    transform: scale(1.035);
}

.card-thumbnail,
.card-thumbnail-placeholder {
    transition: transform 0.35s ease;
}

.card-thumbnail-wrapper {
    position: relative;
    padding-top: 56.25%; /* Aspect ratio 16:9 */
    background-color: #e5e7eb;
}

.card-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: var(--color-text-muted);
}

.card-thumbnail-placeholder i {
    width: 32px;
    height: 32px;
}

.admin-content-thumb {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex: 0 0 50px;
}

.admin-content-thumb.card-thumbnail-placeholder i {
    width: 16px;
    height: 16px;
}

.form-hint {
    margin: 4px 0 0;
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.file-input {
    margin-top: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.image-upload-preview,
.video-upload-preview {
    margin-top: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg);
}

.image-upload-preview img,
.video-upload-preview video,
.video-upload-preview iframe {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.video-upload-preview video,
.video-upload-preview iframe {
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

#news-form-start,
#news-form-end {
    min-height: 48px;
}

.news-media-note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.news-media-note svg {
    width: 14px;
    height: 14px;
}

.toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    cursor: pointer;
}

.toggle-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.quiz-builder-panel,
.course-quiz-panel {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    background: #fff;
}

.quiz-builder-header,
.course-quiz-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.quiz-required-row {
    margin: 14px 0;
}

.quiz-question-editor {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 12px;
    background: #f9fafb;
}

.quiz-question-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.course-quiz-panel {
    margin-top: 20px;
}

.course-quiz-title {
    justify-content: flex-start;
    margin-bottom: 16px;
}

.course-quiz-title i {
    color: var(--color-primary);
    flex: 0 0 auto;
}

.course-quiz-title h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
}

.course-quiz-title p {
    margin: 3px 0 0;
    color: var(--color-text-muted);
    font-size: 0.86rem;
}

.course-quiz-question {
    border-top: 1px solid var(--color-border);
    padding: 14px 0;
}

.course-quiz-options {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.course-quiz-option {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    cursor: pointer;
    background: #f9fafb;
}

.course-quiz-option input {
    accent-color: var(--color-primary);
}

.course-quiz-review {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.quiz-review-question {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px;
    background: #f9fafb;
}

.quiz-review-question.is-correct {
    border-color: rgba(16, 185, 129, 0.34);
    background: rgba(236, 253, 245, 0.72);
}

.quiz-review-question.is-wrong {
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(254, 242, 242, 0.64);
}

.quiz-review-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.quiz-review-badge {
    border-radius: var(--radius-full);
    padding: 4px 9px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.quiz-review-badge.correct {
    color: var(--color-success);
    background: var(--color-success-light);
}

.quiz-review-badge.wrong {
    color: var(--color-danger);
    background: var(--color-danger-light);
}

.quiz-review-option {
    cursor: default;
    justify-content: space-between;
}

.quiz-review-option.correct-answer {
    border-color: rgba(16, 185, 129, 0.45);
    background: #ecfdf5;
    color: #065f46;
    font-weight: 700;
}

.quiz-review-option.wrong-answer {
    border-color: rgba(239, 68, 68, 0.4);
    background: #fef2f2;
    color: #991b1b;
    font-weight: 700;
}

.quiz-review-option small {
    color: currentColor;
    opacity: 0.72;
    font-size: 0.72rem;
    font-weight: 800;
}

.role-target-panel {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    background: #fff;
}

.role-target-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.role-target-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.role-chip-option {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    background: #f9fafb;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.role-chip-option input {
    accent-color: var(--color-primary);
}

.role-target-grid.is-disabled {
    opacity: 0.52;
}

.role-target-grid.is-disabled .role-chip-option {
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .quiz-builder-header,
    .course-quiz-title,
    .role-target-header {
        flex-direction: column;
        align-items: stretch;
    }

    .quiz-options-grid,
    .role-target-grid {
        grid-template-columns: 1fr;
    }

    .quiz-builder-panel,
    .course-quiz-panel {
        padding: 14px;
    }
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
}

.card-badge.video { background-color: #ef4444; }
.card-badge.pdf { background-color: #ea580c; }
.card-badge.artigo { background-color: var(--color-primary); }
.card-badge.live { background-color: var(--color-secondary); color: var(--color-text-dark); }
.card-badge.comunicado { background-color: var(--color-info); }
.card-badge.treinamento { background-color: #7c3aed; }
.card-badge.material_de_apoio { background-color: var(--color-text-muted); }

.card-tag-required {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(239, 68, 68, 0.9);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6rem;
}

.card-description {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8rem;
}

.card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.card-footer-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-status-indicator {
    padding: 4px 8px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-status-indicator.completed {
    background-color: var(--color-success-light);
    color: var(--color-success);
}

.card-status-indicator.pending {
    background-color: #f3f4f6;
    color: var(--color-text-muted);
}

/* ==========================================================================
   FEED DE NOVIDADES E COMUNICADOS
   ========================================================================== */

.pinned-news-card {
    background-color: var(--color-secondary-light);
    border: 2px solid var(--color-secondary);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    gap: 25px;
    box-shadow: var(--shadow-sm);
}

.pinned-news-card-text-only {
    padding-top: 32px;
}

.pinned-news-card-text-only .pinned-news-content {
    width: 100%;
}

.pinned-tag {
    position: absolute;
    top: -12px;
    left: 20px;
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pinned-news-img {
    width: 180px;
    height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--color-border);
}

.pinned-news-video {
    object-fit: contain;
    background: #0f172a;
}

.news-youtube-embed {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    background: #0f172a;
}

.pinned-news-video.news-youtube-embed {
    height: 120px;
}

.pinned-news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pinned-news-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.pinned-news-text {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    opacity: 0.85;
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Feed List */
.feed-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.feed-item {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 25px;
    display: flex;
    gap: 25px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.feed-item:hover {
    transform: translateY(-2px);
}

.feed-item-img {
    width: 150px;
    height: 100px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--color-border);
}

.feed-item-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.feed-item-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.feed-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 6px;
}

.feed-item-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}


.feed-post {
    display: block;
    padding: 0;
    overflow: hidden;
    border-radius: 22px;
}

.feed-post-pinned {
    border-color: rgba(255, 159, 0, 0.55);
    box-shadow: 0 20px 52px rgba(255, 159, 0, 0.14);
}

.feed-post-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.feed-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feed-post-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), #0f8a38);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(11, 102, 35, 0.2);
    flex-shrink: 0;
}

.feed-post-avatar svg {
    width: 20px;
    height: 20px;
}

.feed-post-meta {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.feed-post-media {
    background: #f8fafc;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.feed-post .feed-item-img,
.feed-post .feed-item-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 0;
    background: #f8fafc;
}

.feed-post .feed-item-video {
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.news-direct-video-frame {
    position: relative;
    width: 100%;
    background: #0f172a;
}

.news-video-fallback {
    display: none;
    min-height: 260px;
    padding: 28px;
    color: #ffffff;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.news-video-fallback svg {
    width: 38px;
    height: 38px;
    color: var(--color-secondary);
}

.news-video-fallback span {
    max-width: 460px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
}

.news-video-fallback a {
    color: var(--color-secondary);
    font-weight: 800;
    text-decoration: none;
}

.news-video-fallback a:hover {
    text-decoration: underline;
}

.news-direct-video-frame.video-load-error video {
    display: none;
}

.news-direct-video-frame.video-load-error .news-video-fallback {
    display: flex;
}

.feed-post iframe.feed-item-video {
    height: auto;
    min-height: 360px;
    max-height: none;
}

.feed-post-video-media {
    background: #0f172a;
}

.feed-post-content {
    padding: 20px;
}

.feed-post .feed-item-title {
    font-size: 1.28rem;
    margin-bottom: 10px;
}

.feed-post .feed-item-text {
    white-space: pre-line;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--color-text-dark);
    margin-bottom: 0;
}

/* ==========================================================================
   BIBLIOTECA DE CONTEÚDOS
   ========================================================================== */

.filter-bar {
    background-color: var(--color-surface);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: var(--shadow-sm);
}

.search-filter-row {
    display: flex;
    gap: 15px;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.search-field {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg);
    transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-field:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-surface);
    box-shadow: 0 0 0 4px rgba(11, 102, 35, 0.12);
}

.select-filter {
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg);
    min-width: 180px;
    cursor: pointer;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.select-filter:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-surface);
    box-shadow: 0 0 0 4px rgba(11, 102, 35, 0.12);
}

/* Tags de Categorias Rápidas */
.category-tags-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.category-tag-btn {
    padding: 8px 16px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.category-tag-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(11, 102, 35, 0.16);
}

.category-tag-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    font-weight: 600;
}

.library-empty-state {
    grid-column: 1 / -1;
    background-color: var(--color-surface);
    border: 1px dashed rgba(11, 102, 35, 0.3);
    border-radius: var(--radius-lg);
    color: var(--color-text-muted);
    padding: 42px 24px;
    text-align: center;
    animation: softRise 0.35s ease both;
}

.library-empty-state i,
.library-empty-state svg {
    width: 42px;
    height: 42px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.library-empty-state h3 {
    color: var(--color-text-dark);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

/* ==========================================================================
   PÁGINA INDIVIDUAL DO CONTEÚDO
   ========================================================================== */

.content-page-layout {
    display: grid;
    grid-template-columns: 2.8fr 1.2fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .content-page-layout {
        grid-template-columns: 1fr;
    }
}

.content-main-panel {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.content-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    margin-bottom: 20px;
    cursor: pointer;
}

.content-back-btn:hover {
    text-decoration: underline;
}

.content-header-info {
    margin-bottom: 25px;
}

.content-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin: 8px 0;
}

.player-wrapper {
    background-color: black;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
}

.player-wrapper iframe, 
.player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-viewer-container {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 25px;
}

.pdf-icon-big {
    font-size: 3.5rem;
    color: #ea580c;
    margin-bottom: 15px;
}

.content-body-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-dark);
    margin-bottom: 30px;
    border-top: 1px solid var(--color-border);
    padding-top: 25px;
}

.content-body-text p {
    margin-bottom: 15px;
}

/* Sidebar de Materiais de Apoio e Progresso */
.content-sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.support-material-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-material-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg);
    font-size: 0.85rem;
}

.support-material-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 600;
}

.support-material-link:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   LIVES E EVENTOS
   ========================================================================== */

.live-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.live-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
}

.live-card:hover {
    transform: translateY(-3px);
}

.live-thumbnail-wrapper {
    position: relative;
    padding-top: 56.25%;
    background-color: black;
}

.live-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
}

.live-badge.aovivo {
    background-color: #ef4444;
    animation: flash 1.5s infinite;
}

.live-badge.embreve {
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
}

.live-badge.encerrada {
    background-color: var(--color-text-muted);
}

@keyframes flash {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.live-card-body {
    padding: 20px;
}

.live-date-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.live-card-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* ==========================================================================
   OPERAÇÃO PREMIADA (SEÇÃO ESPECIAL COM VISUAL DESTACADO)
   ========================================================================== */

.awards-hero {
    background: linear-gradient(135deg, #1b3d16 0%, var(--color-primary-hover) 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: white;
    margin-bottom: 35px;
    position: relative;
    border: 3px solid var(--color-secondary);
    box-shadow: var(--shadow-lg);
}

.awards-hero::before {
    content: '🏆';
    position: absolute;
    right: 40px;
    bottom: 20px;
    font-size: 7rem;
    opacity: 0.15;
}

.awards-badge {
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 15px;
}

.awards-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.awards-desc {
    font-size: 1.1rem;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.9);
}

.awards-split-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .awards-split-grid {
        grid-template-columns: 1fr;
    }
}

.awards-panel-white {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.awards-steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.awards-step-item {
    display: flex;
    gap: 15px;
}

.awards-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-secondary-light);
    color: var(--color-secondary-hover);
    border: 2px solid var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.awards-step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 4px;
}

.awards-step-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.rules-accordion-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.rules-accordion-header {
    background-color: var(--color-bg);
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.rules-accordion-header:hover {
    background-color: var(--color-border);
}

.rules-accordion-body {
    padding: 20px;
    background-color: white;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    display: none;
}

.rules-accordion-item.active .rules-accordion-body {
    display: block;
}

/* Simulador de Indicadores Metas */
.goals-simulator-widget {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 25px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.simulator-slider-group {
    margin-bottom: 20px;
}

.simulator-result-box {
    background-color: var(--color-primary-light);
    border: 1.5px dashed var(--color-primary);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.simulator-result-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
}

/* ==========================================================================
   PAINEL ADMINISTRATIVO E CONFIGURAÇÕES
   ========================================================================== */

/* Cards do Painel Admin */
.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.admin-stat-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-stat-card.warning {
    border-left-color: var(--color-secondary);
}

.admin-stat-card.danger {
    border-left-color: var(--color-danger);
}

.admin-stat-card.info {
    border-left-color: var(--color-info);
}

/* Tabelas e Gestão */
.table-panel {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 30px;
}

.table-panel-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    background-color: var(--color-bg);
    color: var(--color-text-dark);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 20px;
    border-bottom: 2px solid var(--color-border);
}

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

.admin-table tr:hover {
    background-color: rgba(243, 244, 246, 0.5);
}

/* Badges de Status do Usuário */
.badge-status {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    text-align: center;
}

.badge-status.aguardando_aprovacao {
    background-color: var(--color-secondary-light);
    color: var(--color-secondary-hover);
}

.badge-status.aprovado {
    background-color: var(--color-success-light);
    color: var(--color-success);
}

.badge-status.reprovado {
    background-color: var(--color-danger-light);
    color: var(--color-danger);
}

.badge-status.inativo {
    background-color: var(--color-bg);
    color: var(--color-text-muted);
}

.badge-status.sugestao {
    background-color: var(--color-info-light);
    color: var(--color-info);
}

.badge-status.elogio {
    background-color: var(--color-success-light);
    color: var(--color-success);
}

.badge-status.reclamacao {
    background-color: var(--color-danger-light);
    color: var(--color-danger);
}

.badge-status.duvida {
    background-color: var(--color-secondary-light);
    color: var(--color-secondary-hover);
}


/* Ações Rápidas Admin */
.action-buttons-group {
    display: flex;
    gap: 6px;
}

.action-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color var(--transition-fast);
}

.action-icon-btn.approve {
    background-color: var(--color-success-light);
    color: var(--color-success);
}

.action-icon-btn.approve:hover {
    background-color: var(--color-success);
    color: white;
}

.action-icon-btn.reject {
    background-color: var(--color-danger-light);
    color: var(--color-danger);
}

.action-icon-btn.reject:hover {
    background-color: var(--color-danger);
    color: white;
}

.action-icon-btn.edit {
    background-color: var(--color-info-light);
    color: var(--color-info);
}

.action-icon-btn.edit:hover {
    background-color: var(--color-info);
    color: white;
}

/* ==========================================================================
   PERFIL DO COLABORADOR
   ========================================================================== */

.profile-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar-big {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    border: 4px solid var(--color-secondary);
    box-shadow: var(--shadow-md);
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin-top: 30px;
    text-align: left;
}

.profile-info-item {
    background-color: var(--color-bg);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.profile-info-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.profile-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-top: 4px;
}

/* ==========================================================================
   TOAST NOTIFICATION (SISTEMA DE AVISOS RAPIDOS)
   ========================================================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--color-text-dark);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-left: 5px solid var(--color-primary);
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
}

.toast-icon i,
.toast-icon svg {
    width: 22px;
    height: 22px;
}

.toast.success { border-left-color: var(--color-success); }
.toast.error { border-left-color: var(--color-danger); }
.toast.warning { border-left-color: var(--color-secondary); }

.toast.success .toast-icon { color: var(--color-success); }
.toast.error .toast-icon { color: var(--color-danger); }
.toast.warning .toast-icon { color: var(--color-secondary); }

/* ==========================================================================
   MODAL CONFIGURAÇÕES / CRIAÇÃO
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 650px;
    padding: 30px;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-backdrop.show .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
}

.modal-close:hover {
    color: var(--color-text-dark);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
    margin-top: 20px;
}

/* ==========================================================================
   RESPONSIVIDADE GERAL E ADAPTAÇÕES MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
        --header-height: 60px;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 260px !important;
    }
    
    .sidebar.show-mobile {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0 !important;
        padding-bottom: 60px; /* Espaço para o menu mobile inferior */
    }
    
    .content-viewport {
        padding: 20px;
    }
    
    .app-header {
        padding: 0 20px;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .pinned-news-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .pinned-news-img {
        width: 100%;
        height: 150px;
    }
    
    .feed-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .feed-item-img {
        width: 100%;
        height: 140px;
    }
    
    .auth-card {
        padding: 25px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Estilos adicionais para os ícones profissionais do Lucide */
i[data-lucide], span[data-lucide] {
    display: inline-block;
    vertical-align: middle;
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

/* Customização de tamanhos específicos */
.stat-icon-wrapper i[data-lucide] {
    width: 24px;
    height: 24px;
    stroke-width: 2.2;
}

.mobile-nav-item i[data-lucide] {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
}

.admin-stat-card i[data-lucide] {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.admin-stat-card.warning i[data-lucide] {
    color: var(--color-secondary);
}

.admin-stat-card.info i[data-lucide] {
    color: var(--color-info);
}

.admin-stat-card.danger i[data-lucide] {
    color: var(--color-danger);
}

.search-input-wrapper i[data-lucide] {
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
}

.content-back-btn i[data-lucide] {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    margin-top: -2px;
}

.btn i[data-lucide], .auth-link i[data-lucide] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    margin-top: -2px;
}

.pending-icon i[data-lucide] {
    width: 48px;
    height: 48px;
    color: var(--color-secondary);
    stroke-width: 1.5;
}

/* ==========================================================================
   ACABAMENTO MVP: UX, UI E RESPONSIVIDADE
   ========================================================================== */

.content-viewport {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.app-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.page-title {
    line-height: 1.15;
}

.page-subtitle {
    display: block;
    max-width: 720px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-logo,
.sidebar-logo {
    display: block;
}

.auth-logo {
    max-width: 190px;
    width: auto;
    height: auto;
    margin: 0 auto 8px;
}

.sidebar-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.dashboard-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.admin-stat-card,
.sidebar-widget,
.awards-panel-white,
.profile-card,
.content-sidebar-panel,
.pinned-news-card,
.course-card,
.live-card {
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.stat-card,
.admin-stat-card {
    min-height: 118px;
}

.pinned-news-card {
    align-items: center;
}

.pinned-news-img {
    flex: 0 0 180px;
    max-width: 180px;
}

.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.course-card {
    min-width: 0;
    overflow: hidden;
}

.card-title,
.section-title,
.widget-title,
.content-title {
    overflow-wrap: anywhere;
}

.admin-table-wrapper,
.table-responsive,
.awards-ranking-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    min-width: 760px;
}

.dashboard-split-layout {
    align-items: start;
}

.mobile-nav {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
}

@media (max-width: 1180px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-split-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .content-viewport {
        padding: 16px;
    }

    .app-header {
        gap: 12px;
        min-height: var(--header-height);
    }

    .page-title {
        font-size: 1rem;
    }

    .page-subtitle {
        max-width: calc(100vw - 140px);
        font-size: 0.78rem;
    }

    .dashboard-stats-grid,
    .admin-summary-grid,
    .cards-grid,
    .live-card-grid {
        grid-template-columns: 1fr;
    }

    .stat-card,
    .admin-stat-card {
        min-height: 96px;
    }

    .pinned-news-card {
        align-items: stretch;
    }

    .pinned-news-img {
        flex-basis: auto;
        max-width: none;
        height: 170px;
    }

    .auth-logo {
        max-width: 165px;
    }

    .auth-title {
        font-size: 1.35rem;
    }

    .btn {
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .content-viewport {
        padding: 12px;
    }

    .auth-card {
        border-radius: 12px;
    }

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

    .pinned-news-card,
    .sidebar-widget,
    .awards-panel-white {
        padding: 16px;
    }

    .mobile-nav-item {
        font-size: 0.68rem;
    }

    .admin-table td {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        gap: 6px;
    }

    .admin-table td::before {
        flex-basis: auto;
        max-width: none;
    }

    .action-buttons-group,
    .admin-table .btn {
        width: 100%;
    }

    .action-buttons-group .btn,
    .action-buttons-group .action-icon-btn {
        flex: 1 1 auto;
    }
}

/* ==========================================================================
   CORREÇÃO MOBILE FORTE: SEM ARRASTAR LATERALMENTE + NAV COM CONTRASTE
   ========================================================================== */

html,
body,
.app-shell,
.main-wrapper,
.content-viewport {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .main-wrapper {
        width: 100%;
        min-width: 0;
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }

    .content-viewport {
        width: 100%;
        min-width: 0;
        padding: 14px;
    }

    .profile-card {
        width: 100%;
        min-width: 0;
        padding: 20px 16px;
        margin-bottom: 18px;
        align-items: center;
    }

    .profile-avatar-big {
        width: 88px;
        height: 88px;
        min-width: 88px;
        font-size: 2rem;
        margin-bottom: 14px;
    }

    .profile-card h2,
    #prof-name,
    #prof-email {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .profile-info-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
        width: 100%;
        max-width: none;
        margin-top: 20px;
    }

    .profile-info-item {
        min-width: 0;
        padding: 14px 16px;
    }

    .profile-info-value {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .cards-grid,
    .dashboard-stats-grid,
    .admin-summary-grid,
    .live-card-grid,
    .profile-info-grid {
        min-width: 0;
    }

    .mobile-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        height: calc(70px + env(safe-area-inset-bottom));
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        background: #111827;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.28);
    }

    .mobile-nav-item {
        min-width: 0;
        min-height: 52px;
        border-radius: 10px;
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.7rem;
        font-weight: 700;
        line-height: 1.1;
        gap: 4px;
        transition: background-color var(--transition-fast), color var(--transition-fast);
    }

    .mobile-nav-item i,
    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
        color: currentColor;
        stroke: currentColor;
    }

    .mobile-nav-item.active {
        color: #ffffff;
        background: var(--color-primary);
    }

    .table-panel,
    .awards-panel-white,
    .sidebar-widget,
    .content-main-panel,
    .content-sidebar-panel {
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .table-panel-header {
        align-items: stretch;
    }

    .table-panel-header > *,
    .table-panel-header .form-input,
    .table-panel-header .select-filter,
    .table-panel-header .btn {
        width: 100% !important;
        max-width: none !important;
    }

    .table-responsive,
    .admin-table-wrapper,
    .awards-ranking-table-wrapper {
        overflow-x: visible !important;
        max-width: 100%;
    }

    .admin-table {
        min-width: 0 !important;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 12px;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
    }

    .admin-table tr {
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        overflow: hidden;
    }

    .admin-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 14px;
        padding: 12px 14px;
        border-bottom: 1px solid var(--color-border);
        text-align: right;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .admin-table td:last-child {
        border-bottom: 0;
    }

    .admin-table td::before {
        content: attr(data-label);
        flex: 0 0 42%;
        max-width: 42%;
        color: var(--color-text-muted);
        font-size: 0.72rem;
        font-weight: 800;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .admin-table td:empty {
        display: none;
    }

    .admin-table td[colspan] {
        text-align: center;
        justify-content: center;
    }

    .admin-table td[colspan]::before {
        content: none;
    }

    .action-buttons-group {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .dashboard-split-layout,
    .awards-split-grid,
    .content-page-layout {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .awards-panel-white {
        padding: 18px;
    }

    .awards-panel-white .admin-table td {
        align-items: center;
    }

    .awards-panel-white .admin-table td::before {
        flex-basis: 48%;
        max-width: 48%;
    }

    .pinned-news-card,
    .feed-item {
        flex-direction: column;
        gap: 14px;
    }

    .pinned-news-img,
    .feed-item-img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .news-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .news-meta .btn {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 390px) {
    .content-viewport {
        padding: 10px;
    }

    .profile-card {
        padding: 18px 12px;
    }

    .mobile-nav {
        padding-left: 6px;
        padding-right: 6px;
    }

    .mobile-nav-item {
        font-size: 0.64rem;
    }
}

@media (max-width: 640px) {
    .progress-stat-card {
        min-height: 104px;
        padding: 18px;
    }

    .progress-stat-card .progress-radial-wrapper {
        width: 66px;
        height: 66px;
    }

    #view-feed .content-viewport,
    #view-feed .feed-container {
        padding-left: 0;
        padding-right: 0;
        max-width: none;
    }

    #view-feed .feed-container {
        width: 100vw;
        margin-left: 50%;
        transform: translateX(-50%);
        gap: 16px;
    }

    #view-feed .feed-post {
        width: 100%;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    #view-feed .feed-post-header,
    #view-feed .feed-post-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    #view-feed .feed-post .feed-item-img,
    #view-feed .feed-post .feed-item-video {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    #view-feed .feed-post .feed-item-video {
        aspect-ratio: 16 / 9;
    }

    #view-feed .feed-post-media {
        width: 100%;
    }
}

/* ==========================================================================
   POLIMENTO VISUAL PREMIUM
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 18% 0%, rgba(11, 102, 35, 0.08), transparent 28rem),
        linear-gradient(180deg, #fbfcfd 0%, var(--color-bg) 48%, #f2f4f7 100%);
    letter-spacing: 0;
    text-rendering: geometricPrecision;
}

.app-view {
    animation: softRise 0.38s var(--transition-normal) both;
}

.auth-wrapper {
    background:
        radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.14), transparent 22rem),
        radial-gradient(circle at 8% 88%, rgba(255, 159, 0, 0.16), transparent 18rem),
        linear-gradient(145deg, #064719 0%, var(--color-primary) 56%, #0f7a2f 100%);
}

.auth-card,
.modal-card,
.stat-card,
.content-card,
.profile-card,
.admin-table-container,
.pinned-news-card,
.feed-item,
.sidebar-widget,
.awards-panel-white,
.contact-card,
.content-detail-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(224, 231, 255, 0.75);
    box-shadow: 0 14px 40px rgba(16, 24, 40, 0.08);
    backdrop-filter: blur(14px);
}

.auth-card,
.modal-card {
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.app-header {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.05);
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
        linear-gradient(180deg, #1a2534 0%, #111827 100%);
}

.sidebar-menu-item {
    position: relative;
    overflow: hidden;
}

.sidebar-menu-item::before {
    content: '';
    position: absolute;
    inset: 8px auto 8px 0;
    width: 3px;
    border-radius: var(--radius-full);
    background: var(--color-secondary);
    opacity: 0;
    transform: scaleY(0.45);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.sidebar-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.09);
    transform: translateX(3px);
}

.sidebar-menu-item.active {
    background: linear-gradient(135deg, rgba(11, 102, 35, 0.96), rgba(9, 121, 45, 0.96));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.sidebar-menu-item.active::before {
    opacity: 1;
    transform: scaleY(1);
}

.sidebar-menu-item svg,
.section-title svg,
.btn i[data-lucide],
.action-icon-btn i,
.mobile-nav-item svg {
    stroke-width: 2.2;
}

.form-input,
.form-select,
select,
textarea {
    background: rgba(248, 250, 252, 0.92);
    border-color: rgba(208, 213, 221, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.form-input:hover,
.form-select:hover,
select:hover,
textarea:hover {
    border-color: rgba(11, 102, 35, 0.32);
    background: #fff;
}

.form-input:focus,
.form-select:focus,
select:focus,
textarea:focus {
    border-color: rgba(11, 102, 35, 0.72);
    box-shadow: 0 0 0 4px rgba(11, 102, 35, 0.1), 0 12px 28px rgba(16, 24, 40, 0.08);
}

.btn {
    min-height: 44px;
    border-radius: 13px;
    letter-spacing: -0.01em;
    transform: translateZ(0);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.16);
}

.btn-primary {
    background: linear-gradient(135deg, #ffb020, var(--color-secondary));
}

.btn-secondary {
    background: linear-gradient(135deg, #0a7a2b, var(--color-primary));
    box-shadow: 0 10px 24px rgba(11, 102, 35, 0.22);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #086021, #0b7a2c);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.84);
}

.btn-outline:hover {
    background: #0b6623;
    border-color: #0b6623;
    box-shadow: var(--shadow-glow);
}

.stat-card,
.content-card,
.feed-item,
.pinned-news-card,
.admin-stat-card,
.sidebar-widget {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal);
}

.stat-card:hover,
.feed-item:hover,
.pinned-news-card:hover,
.admin-stat-card:hover,
.sidebar-widget:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 102, 35, 0.24);
    box-shadow: 0 20px 50px rgba(16, 24, 40, 0.12);
}

.content-card {
    border-radius: 18px;
}

.content-card:hover {
    transform: translateY(-7px) scale(1.005);
    box-shadow: 0 24px 54px rgba(16, 24, 40, 0.14);
}

.card-thumbnail-wrapper {
    background: linear-gradient(135deg, #eef2f7, #f8fafc);
}

.card-badge,
.status-badge,
.category-tag-btn {
    border-radius: var(--radius-full);
}

.category-tag-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(11, 102, 35, 0.13);
}

.admin-table th {
    background: #f7f8fb;
    color: #101828;
    letter-spacing: 0.02em;
}

.admin-table tr {
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.admin-table tr:hover {
    background-color: rgba(11, 102, 35, 0.035);
}

.action-icon-btn {
    border-radius: 12px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.action-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 24, 40, 0.12);
}

.mobile-nav {
    background: rgba(17, 24, 39, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    box-shadow: 0 -14px 36px rgba(15, 23, 42, 0.18);
}

.mobile-nav-item {
    border-radius: 14px;
    transition: transform var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: rgba(255, 255, 255, 0.07);
}

.mobile-nav-contact span:first-child {
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.toast {
    border-radius: 16px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    body[data-current-view="feed"] .content-viewport {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body[data-current-view="feed"] #view-feed {
        width: 100vw;
        max-width: 100vw;
        margin-left: 50%;
        transform: translateX(-50%);
    }

    body[data-current-view="feed"] #view-feed .feed-container {
        width: 100%;
        max-width: none;
        margin: 0;
        gap: 16px;
    }

    body[data-current-view="feed"] #view-feed .feed-post {
        width: 100%;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body[data-current-view="feed"] #view-feed .feed-post:hover {
        transform: none;
    }

    body[data-current-view="feed"] #view-feed .feed-post-header,
    body[data-current-view="feed"] #view-feed .feed-post-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    body[data-current-view="feed"] #view-feed .feed-post-media {
        width: 100%;
        overflow: hidden;
        background: #ffffff;
    }

    body[data-current-view="feed"] #view-feed .feed-post .feed-item-img {
        display: block;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        border-radius: 0 !important;
        background: #ffffff;
    }

    body[data-current-view="feed"] #view-feed .feed-post .feed-item-video {
        display: block;
        width: 100% !important;
        height: auto !important;
        min-height: 220px;
        aspect-ratio: 16 / 9;
        object-fit: contain !important;
        border-radius: 0 !important;
        background: #0f172a;
    }
}
