/* Estilos gerais */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

div.form-control {
    min-height: 38px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

/* Sidebar */
/* Sidebar - Commented out to prevent conflict with AdminLTE
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    transition: all 0.3s;
}
*/

/* Fix for residual inset shadow line in collapsed mode */
body.sidebar-collapse .main-sidebar,
body.sidebar-collapse .main-sidebar .sidebar {
    box-shadow: none !important;
    border-right: none !important;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin: 0.2rem 0.5rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

/* Cards e containers */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    border: none;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

/* Botões e ações */
.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.action-buttons .btn {
    margin-left: 0.25rem;
}

/* Tabelas */
.table-container {
    overflow-x: auto;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Formulários */
.form-label {
    font-weight: 500;
}

/* Componentes específicos */
.pergunta-item {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
}

.alternativa-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
}

.alternativa-item .order-handle {
    cursor: move;
    margin-right: 0.5rem;
    color: #6c757d;
}

.alternativa-item .remove-btn {
    margin-left: auto;
}

/* Componentes NPS */
.nps-container {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
}

.nps-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.nps-button:hover {
    transform: scale(1.1);
}

.nps-detractor {
    background-color: #ff4d4d;
    color: white;
}

.nps-passive {
    background-color: #ffcc00;
    color: white;
}

.nps-promoter {
    background-color: #28a745;
    color: white;
}

/* Componente de estrelas */
.star-rating {
    display: flex;
    margin: 1rem 0;
}

.star-item {
    font-size: 1.5rem;
    color: #e0e0e0;
    cursor: pointer;
    margin-right: 0.25rem;
}

.star-item.active {
    color: #ffc107;
}

/* Responsividade */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 1rem;
    }

    main {
        margin-left: 0 !important;
    }
}

/* Animações */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Status de pesquisas */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pendente {
    background-color: #ffc107;
    color: #212529;
}

.status-enviado {
    background-color: #17a2b8;
    color: white;
}

.status-respondido {
    background-color: #28a745;
    color: white;
}

.status-expirado {
    background-color: #6c757d;
    color: white;
}

/* Dashboard widgets */
.dashboard-widget {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #495057;
}

.widget-value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
}

.widget-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Cores para gráficos NPS */
.nps-chart-detractor {
    background-color: #ff4d4d;
}

.nps-chart-passive {
    background-color: #ffcc00;
}

.nps-chart-promoter {
    background-color: #28a745;
}