/* ===================================
   SISTEMA DE PERGUNTAS - CSS COMPLETO
   =================================== */

/* Reset e configurações globais */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ===================================
   PÁGINAS PRINCIPAIS (INDEX)
   =================================== */

/* Container principal */
.main-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Cards personalizados */
.custom-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Header do sistema */
.system-header {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.system-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.system-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* ===================================
   FORMULÁRIOS
   =================================== */

/* Grupos de formulário */
.form-group {
    margin-bottom: 1.5rem;
}

/* Controles de formulário */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 5px;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    outline: none;
}

.form-control:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

/* Labels */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

/* Checkbox customizado */
.custom-checkbox {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.custom-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

/* ===================================
   BOTÕES
   =================================== */

/* Botão customizado principal */
.btn-custom {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    color: white;
    text-decoration: none;
}

/* ===================================
   ADMIN HEADER/NAVBAR
   =================================== */

/* Header principal do admin */
.admin-navbar {
    background: linear-gradient(135deg, #2980b9, #3498db);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 1rem;
}

/* Logo e Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
}

.admin-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

/* Navegação */
.navbar-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Botão Sair */
.navbar-actions {
    display: flex;
    align-items: center;
}

.btn-logout {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-logout:hover {
    background: #c0392b;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* ===================================
   ADMIN ESPECÍFICO
   =================================== */

/* Container principal do admin */
.admin-main-content {
    margin-top: 0;
    padding: 2rem 0;
}

/* Header antigo (oculto) */
.admin-header {
    display: none;
}

/* Seção de filtros */
.filter-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #007bff;
}

.filter-section h5 {
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Informações do admin */
.admin-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    margin-bottom: 1.5rem;
}

.admin-info small {
    font-size: 0.85rem;
}

/* ===================================
   TABELAS DE PERGUNTAS
   =================================== */

/* Container da tabela */
.questions-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Cabeçalho da tabela */
.table th {
    background: #343a40;
    color: white;
    border: none;
    font-weight: 500;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Células da tabela */
.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

/* Hover nas linhas */
.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Responsividade da tabela */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

/* Texto da pergunta */
.pergunta-texto {
    max-width: 300px;
    word-wrap: break-word;
    line-height: 1.4;
}

/* ===================================
   BADGES E STATUS
   =================================== */

/* Badge de sessão */
.badge-sessao {
    background: #17a2b8;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Data e hora */
.data-hora {
    color: #6c757d;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* ===================================
   ALERTAS
   =================================== */

/* Alertas personalizados */
.alert-custom {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
}

.alert-login {
    border: none;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* ===================================
   LOGIN
   =================================== */

/* Container do login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Card do login */
.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
}

/* Header do login */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: #2c3e50;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #6c757d;
    margin: 0;
}

/* Botão de login */
.btn-login {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    color: white;
}

/* Link de volta */
.back-link {
    text-align: center;
    margin-top: 2rem;
}

.back-link a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link a:hover {
    color: #495057;
}

/* ===================================
   UTILITÁRIOS
   =================================== */

/* Loading state */
.loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

/* ===================================
   RESPONSIVIDADE
   =================================== */

/* Tablets */
@media (max-width: 768px) {
    /* Container principal */
    .main-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    /* Cards */
    .custom-card {
        padding: 1.5rem;
    }
    
    /* Header do sistema */
    .system-header h1 {
        font-size: 2rem;
    }
    
    /* Tabelas */
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .pergunta-texto {
        max-width: 200px;
    }
    
    /* Admin navbar */
    .admin-navbar {
        height: auto;
        min-height: 70px;
    }
    
    .navbar-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .admin-logo {
        height: 35px;
    }
    
    /* Info admin */
    .admin-info .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .admin-info .text-muted {
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    /* System header */
    .system-header h1 {
        font-size: 1.8rem;
    }
    
    .system-header p {
        font-size: 1rem;
    }
    
    /* Cards */
    .custom-card {
        padding: 1rem;
    }
    
    /* Formulários */
    .form-control {
        font-size: 16px; /* Evita zoom no iOS */
    }
    
    /* Tabelas */
    .table th,
    .table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .pergunta-texto {
        max-width: 150px;
    }
    
    /* Admin navbar */
    .navbar-nav {
        width: 100%;
        justify-content: space-around;
    }
    
    .nav-link {
        flex: 1;
        text-align: center;
        font-size: 0.8rem;
    }
    
    .btn-logout {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Login */
    .login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .login-header h1 {
        font-size: 1.8rem;
    }
}

/* Desktop grande */
@media (min-width: 1200px) {
    .main-container {
        max-width: 1000px;
    }
    
    .pergunta-texto {
        max-width: 400px;
    }
}


/* ===================================
   ADMIN MELHORADO
   =================================== */

/* Body do admin */
.admin-body {
    background: #f8fafc;
    min-height: 100vh;
}

/* Container principal do admin */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Info do usuário no header */
.user-info {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid #3498db;
}

.page-title h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.page-description {
    color: #6c757d;
    margin: 0;
    font-size: 1.1rem;
}

.page-stats {
    display: flex;
    gap: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Filter Card */
.filter-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
    overflow: hidden;
}

.filter-header {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.filter-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.filter-body {
    padding: 2rem;
}

.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.btn-filter {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.btn-clear {
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.results-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.palestrante-name {
    color: #3498db;
    font-weight: 700;
}

.results-count {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Questions Grid */
.questions-grid {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.table-modern {
    margin: 0;
}

.table-modern thead th {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-modern tbody td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.question-row:hover {
    background: #f8fafc;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
}

.session-badge {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.question-content {
    line-height: 1.6;
    color: #495057;
    max-width: 400px;
}

.date-info {
    text-align: center;
}

.date {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.time {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Welcome State */
.welcome-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.welcome-state h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.welcome-state p {
    color: #6c757d;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.quick-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.quick-stat {
    color: #495057;
    font-size: 0.9rem;
}

/* Responsividade Admin */
@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .page-stats {
        justify-content: center;
    }
    
    .filter-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .table-modern thead th,
    .table-modern tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .question-content {
        max-width: 200px;
    }
}
/* Page Header Compacto */
.page-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid #3498db;
}

.page-header-compact .page-title h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.page-header-compact .page-description {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
}

.total-questions {
    text-align: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 8px;
    min-width: 120px;
}

.total-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.total-label {
    font-size: 0.85rem;
    opacity: 0.95;
    margin-top: 0.25rem;
}

/* Filtros melhorados */
.filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-actions .btn {
    white-space: nowrap;
}

/* Speaker info */
.speaker-info {
    color: #2c3e50;
}

.speaker-name {
    font-weight: 600;
    color: #e74c3c;
}

/* Results header com filtro */
.filter-title {
    color: #3498db;
    font-weight: 700;
}

/* Empty actions */
.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Welcome actions */
.welcome-actions {
    margin-top: 2rem;
}

/* Responsividade melhorada */
@media (max-width: 768px) {
    .page-header-compact {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .filter-actions {
        justify-content: center;
        width: 100%;
    }
    
    .filter-actions .btn {
        flex: 1;
        min-width: 100px;
    }
    
    .empty-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .table-modern thead th,
    .table-modern tbody td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .question-content {
        max-width: 150px;
    }
}

/* ===================================
   CORREÇÃO DA NAVEGAÇÃO ADMIN
   =================================== */

/* Navegação - VERSÃO CORRIGIDA */
.navbar-nav {
    display: flex;
    flex-direction: row; /* Força direção horizontal */
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap; /* Impede quebra de linha */
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block; /* Garante comportamento inline */
    font-size: 0.9rem; /* Reduz ligeiramente o tamanho */
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
}

/* Container da navbar - garantir que não force quebra */
.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 1rem;
    flex-wrap: nowrap; /* Importante: sem quebra */
}

/* Admin navbar - ajustar altura se necessário */
.admin-navbar {
    background: linear-gradient(135deg, #2980b9, #3498db);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 70px; /* Usar min-height ao invés de height fixo */
    display: flex;
    align-items: center;
}

/* Responsividade MELHORADA */
@media (max-width: 992px) {
    .navbar-nav {
        gap: 0.5rem; /* Reduz espaço em telas menores */
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .admin-navbar {
        min-height: auto;
        padding: 0.5rem 0;
    }
    
    .navbar-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        flex-wrap: wrap; /* Apenas em mobile permite wrap */
    }
    
    .navbar-nav {
        flex-direction: row; /* Mantém horizontal mesmo em mobile */
        flex-wrap: wrap; /* Permite quebra apenas se necessário */
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        flex: 0 0 auto; /* Não cresce nem encolhe */
    }
}

@media (max-width: 480px) {
    .navbar-nav {
        gap: 0.25rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
    
    /* Em telas muito pequenas, empilha apenas se necessário */
    .navbar-nav {
        flex-direction: column;
        width: auto;
    }
}
/* ===================================
   CRUD STYLES
   =================================== */

/* Ações do CRUD */
.crud-actions {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Grid do CRUD */
.crud-grid {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* Formulário Card */
.form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 2rem;
}

/* Labels obrigatórios */
.form-label.required::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

/* Ações do formulário */
.form-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Item name/description */
.item-name {
    font-weight: 600;
    color: #2c3e50;
}

.item-description {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 300px;
}

.item-date {
    font-weight: 500;
    color: #2c3e50;
}

/* Status badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Botões de ação */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
}

/* Form check customizado */
.form-check {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

/* Responsividade CRUD */
@media (max-width: 768px) {
    .crud-actions {
        justify-content: center;
    }
    
    .form-actions {
        justify-content: center;
        text-align: center;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .item-description {
        max-width: 200px;
    }
}
/* ===================================
   PALESTRANTES ESPECÍFICO
   =================================== */

/* Speaker info */
.speaker-info {
    display: flex;
    flex-direction: column;
}

.speaker-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

/* Contact info */
.contact-info {
    font-size: 0.9rem;
}

.email-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.85rem;
}

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

/* Bio preview */
.bio-preview {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.4;
    max-width: 250px;
}

/* Sessions count */
.sessions-count {
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
}

.sessions-count small {
    display: block;
    font-weight: normal;
    font-size: 0.75rem;
}

/* Cards de vínculos */
.link-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.link-card:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.link-card h6 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.link-card .date {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Action buttons em linha */
.inline-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.inline-actions .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.5rem;
}

/* Responsividade palestrantes */
@media (max-width: 768px) {
    .bio-preview {
        max-width: 150px;
    }
    
    .email-link {
        font-size: 0.8rem;
        word-break: break-all;
    }
    
    .speaker-name {
        font-size: 0.9rem;
    }
    
    .sessions-count {
        font-size: 0.85rem;
    }
}

/* ===================================
   SISTEMA DE VÍNCULOS
   =================================== */

/* Seções de vínculos */
.vinculos-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    height: 100%;
}

.section-header {
    background: #f8fafc;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Lista de vínculos */
.vinculos-list {
    padding: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

/* Cards de vínculo */
.vinculo-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.vinculo-card:last-child {
    margin-bottom: 0;
}

.vinculo-card.vinculado {
    border-color: #28a745;
    background: #f8fff9;
}

.vinculo-card.disponivel {
    border-color: #007bff;
    background: #f8fbff;
}

.vinculo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Info do vínculo */
.vinculo-info h6 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.vinculo-date {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

/* Ação do vínculo */
.vinculo-action {
    margin: 0;
}

.vinculo-action .btn {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

/* Empty vínculos */
.empty-vinculos {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-vinculos .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-vinculos p {
    margin: 0;
    font-size: 0.9rem;
}

/* Overview de vínculos */
.vinculos-overview {
    margin-top: 2rem;
}

/* Resumo */
.resumo-vinculos {
    margin-top: 2rem;
}

.resumo-vinculos h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.resumo-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.resumo-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
}

.resumo-info h6 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.resumo-stats {
    margin-bottom: 1rem;
    text-align: center;
}

.resumo-stats .sessions-count {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
    display: block;
    line-height: 1;
}

.resumo-stats small {
    color: #6c757d;
    font-size: 0.8rem;
}

.resumo-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.resumo-actions .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.5rem;
}

/* Scrollbar customizada */
.vinculos-list::-webkit-scrollbar {
    width: 6px;
}

.vinculos-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.vinculos-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.vinculos-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Responsividade vínculos */
@media (max-width: 768px) {
    .vinculos-section {
        margin-bottom: 2rem;
    }
    
    .section-header {
        padding: 1rem;
    }
    
    .section-header h4 {
        font-size: 1rem;
    }
    
    .vinculo-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .vinculo-action .btn {
        width: 100%;
    }
    
    .resumo-actions {
        flex-direction: column;
    }
    
    .vinculos-list {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .vinculos-list {
        padding: 0.5rem;
    }
    
    .vinculo-card {
        padding: 0.75rem;
    }
    
    .empty-vinculos {
        padding: 2rem 0.5rem;
    }
    
    .resumo-card {
        padding: 1rem;
    }
}