/* ============================================================
   RELEASE NOTES SYSTEM - MAIN STYLESHEET
   Caroba Distribuidor ERP
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-bg: rgba(99, 102, 241, 0.08);
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --dark: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --gradient-dark: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --sidebar-width: 280px;
    --header-height: 70px;
    --transition: all 0.2s ease;
}

/* ---- Global ---- */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
}

a { text-decoration: none; transition: var(--transition); }
a:hover { text-decoration: none; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: white;
    border-right: 1px solid var(--gray-200);
    z-index: 1040;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-brand-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sidebar-brand-text h6 {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-800);
    margin: 0;
    line-height: 1.3;
}

.sidebar-brand-text small {
    color: var(--gray-400);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.75rem;
}

.sidebar-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    padding: 0.75rem 0.75rem 0.5rem;
    margin-top: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: var(--transition);
    position: relative;
}

.sidebar-link:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.sidebar-link.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.sidebar-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-100);
}

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

.sidebar-avatar {
    width: 38px;
    height: 38px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sidebar-user-info .name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-800);
}

.sidebar-user-info .role {
    font-size: 0.72rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin 0.3s ease;
}

.topbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 2rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-800);
    margin: 0;
}

.topbar-breadcrumb {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.topbar-btn:hover {
    background: var(--gray-50);
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.topbar-btn .badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
}

.content-wrapper {
    padding: 2rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-modern {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card-modern:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.card-modern .card-header {
    background: transparent;
    border-bottom: 1px solid var(--gray-100);
    padding: 1.25rem 1.5rem;
}

.card-modern .card-body {
    padding: 1.5rem;
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.primary { background: rgba(99,102,241,0.1); color: var(--primary); }
.stat-icon.success { background: rgba(16,185,129,0.1); color: var(--success); }
.stat-icon.warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.stat-icon.danger { background: rgba(239,68,68,0.1); color: var(--danger); }
.stat-icon.info { background: rgba(6,182,212,0.1); color: var(--info); }
.stat-icon.secondary { background: rgba(139,92,246,0.1); color: var(--secondary); }

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-800);
    line-height: 1;
    margin-top: 1rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ============================================================
   RELEASE CARDS (Timeline)
   ============================================================ */
.release-timeline {
    position: relative;
}

.release-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.release-card {
    position: relative;
    padding-left: 56px;
    margin-bottom: 2rem;
}

.release-card .timeline-dot {
    position: absolute;
    left: 12px;
    top: 1.5rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary);
    background: var(--primary);
    z-index: 1;
}

.release-card .timeline-dot.success { box-shadow: 0 0 0 2px var(--success); background: var(--success); }
.release-card .timeline-dot.danger { box-shadow: 0 0 0 2px var(--danger); background: var(--danger); }
.release-card .timeline-dot.warning { box-shadow: 0 0 0 2px var(--warning); background: var(--warning); }
.release-card .timeline-dot.secondary { box-shadow: 0 0 0 2px var(--secondary); background: var(--secondary); }

.release-card-body {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

.release-card-body:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.release-version {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gray-600);
    font-family: 'JetBrains Mono', monospace, 'Courier New';
}

.release-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.release-type-badge.nova-funcionalidade { background: rgba(16,185,129,0.1); color: #059669; }
.release-type-badge.melhoria { background: rgba(99,102,241,0.1); color: #4f46e5; }
.release-type-badge.correcao-bug { background: rgba(239,68,68,0.1); color: #dc2626; }
.release-type-badge.atualizacao-futura { background: rgba(139,92,246,0.1); color: #7c3aed; }

.release-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0.75rem 0 0.5rem;
    line-height: 1.4;
}

.release-title a {
    color: inherit;
}

.release-title a:hover {
    color: var(--primary);
}

.release-summary {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.release-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: var(--gray-400);
}

.release-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge-status {
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-status.publicado { background: rgba(16,185,129,0.1); color: #059669; }
.badge-status.rascunho { background: rgba(245,158,11,0.1); color: #d97706; }
.badge-status.arquivado { background: rgba(148,163,184,0.1); color: #64748b; }

.badge-status.planejado { background: rgba(6,182,212,0.1); color: #0891b2; }
.badge-status.em_desenvolvimento { background: rgba(245,158,11,0.1); color: #d97706; }
.badge-status.concluido { background: rgba(16,185,129,0.1); color: #059669; }
.badge-status.cancelado { background: rgba(239,68,68,0.1); color: #dc2626; }

.badge-status.novo { background: rgba(6,182,212,0.1); color: #0891b2; }
.badge-status.em_analise { background: rgba(245,158,11,0.1); color: #d97706; }
.badge-status.aceito { background: rgba(99,102,241,0.1); color: #4f46e5; }
.badge-status.resolvido { background: rgba(16,185,129,0.1); color: #059669; }
.badge-status.recusado { background: rgba(239,68,68,0.1); color: #dc2626; }

.badge-priority {
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-priority.baixa { background: rgba(148,163,184,0.15); color: #64748b; }
.badge-priority.media { background: rgba(6,182,212,0.15); color: #0891b2; }
.badge-priority.alta { background: rgba(245,158,11,0.15); color: #d97706; }
.badge-priority.critica { background: rgba(239,68,68,0.15); color: #dc2626; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
    background: var(--gradient);
    border: none;
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99,102,241,0.35);
    color: white;
}

.btn-outline-custom {
    border: 1.5px solid var(--gray-200);
    background: white;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    transition: var(--transition);
}

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

/* ============================================================
   FORMS
   ============================================================ */
.form-modern .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.form-modern .form-control,
.form-modern .form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-modern .form-control:focus,
.form-modern .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

/* ============================================================
   TABLE
   ============================================================ */
.table-modern {
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background: var(--gray-50);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-500);
    border-bottom: 2px solid var(--gray-200);
    padding: 0.85rem 1rem;
    white-space: nowrap;
}

.table-modern tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
}

.table-modern tbody tr:hover {
    background: var(--gray-50);
}

/* ============================================================
   ROADMAP BOARD
   ============================================================ */
.roadmap-column {
    min-height: 200px;
}

.roadmap-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
    cursor: default;
}

.roadmap-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-300);
}

.roadmap-item .progress {
    height: 6px;
    border-radius: 3px;
    background: var(--gray-100);
}

/* ============================================================
   FEEDBACK CARD
   ============================================================ */
.feedback-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: var(--transition);
}

.feedback-card:hover {
    box-shadow: var(--shadow);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comment-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-modern .page-item .page-link {
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    margin: 0 2px;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
    transition: var(--transition);
}

.pagination-modern .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination-modern .page-item .page-link:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-box {
    position: relative;
}

.search-box input {
    padding-left: 2.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 100px;
    height: 44px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

/* ============================================================
   NOTIFICATIONS DROPDOWN
   ============================================================ */
.notification-dropdown {
    width: 380px;
    max-height: 480px;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.notification-item {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: rgba(99,102,241,0.03);
    border-left: 3px solid var(--primary);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
    color: var(--gray-400);
}

.empty-state h5 {
    color: var(--gray-600);
    font-weight: 600;
}

.empty-state p {
    color: var(--gray-400);
    max-width: 360px;
    margin: 0 auto;
}

/* ============================================================
   PUBLIC PAGE HERO
   ============================================================ */
.hero-section {
    background: var(--gradient);
    padding: 4rem 0 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.85;
    position: relative;
    z-index: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
    padding: 0.5rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1035;
}

/* ---- Tablet (max 992px) ---- */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

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

    .sidebar-overlay.show {
        display: block;
    }

    .sidebar-toggle {
        display: inline-block;
    }

    .main-content {
        margin-left: 0;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .topbar {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 2.5rem 0 2rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    /* Tabelas responsivas - scroll horizontal */
    .table-responsive-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-modern thead th {
        font-size: 0.68rem;
        padding: 0.65rem 0.75rem;
    }

    .table-modern tbody td {
        font-size: 0.8rem;
        padding: 0.65rem 0.75rem;
    }

    /* Roadmap em colunas empilhadas */
    .roadmap-column {
        min-height: auto;
    }
}

/* ---- Mobile (max 768px) ---- */
@media (max-width: 768px) {
    /* Hero compacto */
    .hero-section {
        padding: 2rem 0 1.5rem;
    }

    .hero-section h1 {
        font-size: 1.45rem;
        line-height: 1.3;
    }

    .hero-section p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Stats */
    .stat-card {
        padding: 1rem;
    }

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

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    /* Timeline compacta */
    .release-card {
        padding-left: 36px;
        margin-bottom: 1.25rem;
    }

    .release-timeline::before {
        left: 12px;
    }

    .release-card .timeline-dot {
        left: 4px;
        width: 16px;
        height: 16px;
    }

    .release-card-body {
        padding: 1rem;
    }

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

    .release-summary {
        font-size: 0.82rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden;
    }

    .release-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .release-version {
        font-size: 0.72rem;
        padding: 0.2rem 0.6rem;
    }

    .release-type-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.65rem;
    }

    /* Cards */
    .card-modern .card-body {
        padding: 1rem;
    }

    .card-modern .card-header {
        padding: 0.85rem 1rem;
    }

    /* Filtros empilhados */
    .filter-chip {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    /* Notificações */
    .notification-dropdown {
        width: calc(100vw - 20px);
        max-width: 380px;
        right: -10px !important;
    }

    /* Feedback cards grid */
    .feedback-card {
        padding: 1rem;
    }

    /* Paginação compacta */
    .pagination-modern .page-item .page-link {
        padding: 0.35rem 0.65rem;
        font-size: 0.8rem;
    }

    /* Topbar admin */
    .topbar-title {
        font-size: 1rem;
    }

    /* Roadmap items */
    .roadmap-item {
        padding: 0.85rem;
    }

    /* Comentários */
    .comment-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }

    /* User avatar genérico */
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }

    /* Forms */
    .form-modern .form-control,
    .form-modern .form-select {
        font-size: 16px; /* Previne zoom no iOS */
    }

    /* Botões */
    .btn-primary-custom,
    .btn-outline-custom {
        font-size: 0.82rem;
        padding: 0.5rem 1rem;
    }

    /* Rich content */
    .rich-content {
        font-size: 0.9rem;
    }

    .rich-content h1 {
        font-size: 1.4rem;
    }

    .rich-content h2 {
        font-size: 1.2rem;
    }

    .rich-content h3 {
        font-size: 1.05rem;
    }

    .rich-content pre {
        font-size: 0.8rem;
        padding: 0.85rem;
    }

    .rich-content blockquote {
        padding: 0.5rem 0.85rem;
        font-size: 0.85rem;
    }

    /* Empty state */
    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    /* Release detail */
    .release-detail-title {
        font-size: 1.35rem !important;
    }

    /* Perfil */
    .profile-stats {
        gap: 1.5rem !important;
    }

    /* Progress bar */
    .progress-modern {
        height: 6px;
    }
}

/* ---- Small Mobile (max 480px) ---- */
@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 0 1.25rem;
    }

    .hero-section h1 {
        font-size: 1.25rem;
    }

    .hero-section p {
        font-size: 0.8rem;
    }

    /* Navbar brand */
    .navbar-brand span {
        font-size: 0.9rem !important;
    }

    /* Timeline ainda mais compacta */
    .release-card {
        padding-left: 28px;
        margin-bottom: 1rem;
    }

    .release-timeline::before {
        left: 8px;
    }

    .release-card .timeline-dot {
        left: 1px;
        width: 14px;
        height: 14px;
    }

    .release-card-body {
        padding: 0.85rem;
    }

    .release-title {
        font-size: 0.92rem;
    }

    /* Stat cards em grid de 2 */
    .stat-card {
        padding: 0.75rem;
    }

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

    .stat-label {
        font-size: 0.7rem;
    }

    /* Botões menores */
    .btn-lg {
        font-size: 0.9rem !important;
        padding: 0.55rem 1.25rem !important;
    }

    /* Badges */
    .badge-status {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
    }

    /* Esconder texto longo em meta */
    .release-meta span:nth-child(n+4) {
        display: none;
    }

    /* Tabelas - forçar layout fixo */
    .table-modern {
        font-size: 0.78rem;
    }

    /* Login */
    .login-card {
        padding: 1.75rem !important;
        margin: 0.75rem;
        border-radius: 20px !important;
    }

    .login-logo {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.4rem !important;
    }

    /* Formulários - prevenir zoom */
    input, select, textarea {
        font-size: 16px;
    }

    /* Sidebar footer */
    .sidebar-footer {
        padding: 0.75rem;
    }

    /* Paginação */
    .pagination-modern .page-item .page-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
        margin: 0 1px;
    }

    /* Content padding */
    .content-wrapper {
        padding: 0.75rem;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ---- Touch-friendly targets ---- */
@media (hover: none) and (pointer: coarse) {
    /* Áreas de toque maiores */
    .sidebar-link {
        padding: 0.85rem 0.75rem;
        min-height: 44px;
    }

    .filter-chip {
        min-height: 36px;
        padding: 0.45rem 0.85rem;
    }

    .btn-sm {
        min-height: 36px;
        padding: 0.4rem 0.85rem;
    }

    .pagination-modern .page-item .page-link {
        min-height: 40px;
        min-width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dropdown-item {
        padding: 0.65rem 1rem;
    }

    .nav-link {
        padding: 0.65rem 1rem !important;
    }

    /* Evitar hover effects em touch */
    .stat-card:hover {
        transform: none;
    }

    .card-modern:hover {
        box-shadow: var(--shadow-sm);
    }

    .release-card-body:hover {
        box-shadow: var(--shadow-sm);
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================================
   FLOATING ACTION BUTTON (FAB) - Sugestões Mobile
   ============================================================ */
.fab-suggestion {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45), 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fabBounceIn 0.5s ease-out 1s both;
}

.fab-suggestion:hover,
.fab-suggestion:focus {
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.55), 0 4px 12px rgba(0,0,0,0.2);
}

.fab-suggestion:active {
    transform: scale(0.98);
}

.fab-suggestion i {
    font-size: 1.2rem;
}

.fab-label {
    white-space: nowrap;
}

@keyframes fabBounceIn {
    0% { opacity: 0; transform: translateY(40px) scale(0.8); }
    60% { opacity: 1; transform: translateY(-4px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Esconder FAB em telas grandes */
@media (min-width: 992px) {
    .fab-suggestion {
        display: none !important;
    }
}

/* FAB compacto em telas muito pequenas */
@media (max-width: 380px) {
    .fab-suggestion {
        padding: 14px 16px;
    }
    .fab-label {
        display: none;
    }
}

/* ============================================================
   SUGGESTION CTA CARD - Sidebar
   ============================================================ */
.suggestion-cta-card {
    border: 2px dashed var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(168, 85, 247, 0.03) 100%);
    transition: all 0.3s ease;
}

.suggestion-cta-card:hover {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(168, 85, 247, 0.06) 100%);
    transform: translateY(-2px);
}

.suggestion-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.suggestion-cta-icon i {
    font-size: 1.6rem;
    color: #fff;
}

.spin { animation: spin 1s linear infinite; display: inline-block; }

.animate-fadeInUp {
    animation: fadeInUp 0.4s ease-out;
}

.animate-fadeInUp-1 { animation-delay: 0.05s; }
.animate-fadeInUp-2 { animation-delay: 0.1s; }
.animate-fadeInUp-3 { animation-delay: 0.15s; }
.animate-fadeInUp-4 { animation-delay: 0.2s; }

/* ============================================================
   RICH TEXT CONTENT
   ============================================================ */
.rich-content h1, .rich-content h2, .rich-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--gray-800);
}

.rich-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.rich-content ul, .rich-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.rich-content li {
    margin-bottom: 0.5rem;
}

.rich-content code {
    background: var(--gray-100);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--danger);
}

.rich-content pre {
    background: var(--gray-800);
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1rem 0;
}

.rich-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.rich-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 0.75rem 1.25rem;
    background: var(--primary-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1rem 0;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

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

/* ============================================================
   PROGRESS BAR CUSTOM
   ============================================================ */
.progress-modern {
    height: 8px;
    border-radius: 4px;
    background: var(--gray-100);
    overflow: hidden;
}

.progress-modern .progress-bar {
    border-radius: 4px;
    background: var(--gradient);
    transition: width 0.6s ease;
}

/* ============================================================
   FILTER CHIPS
   ============================================================ */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    border: 1.5px solid var(--gray-200);
    background: white;
    color: var(--gray-600);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.filter-chip:hover,
.filter-chip.active {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
}

.filter-chip.active {
    font-weight: 600;
}

/* Hide scrollbar for mobile filter chips */
.d-flex[style*="overflow-x"]::-webkit-scrollbar {
    display: none;
}

/* ============================================================
   USER AVATAR
   ============================================================ */
.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}
