* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.sidebar-toggle {
    max-height: 90px;
}

/* Limita o tamanho da fonte do texto dentro do botão de alternância da sidebar */
.sidebar-toggle .sr-only {
    font-size: 18px !important;
}

.sidebar-toggle .fa {
    /* Assumindo que seu botão pode ter um ícone Font Awesome */
    font-size: 18px !important;
    /* Ajuste o tamanho do ícone */
}

/* Botão principal de acessibilidade */
.accessibility-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #4CAF50;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.accessibility-button:hover {
    background-color: #45a049;
    transform: scale(1.1);
}

.accessibility-icon {
    width: 50px;
    height: 50px;
    fill: white;
}

/* Painel de acessibilidade */
.accessibility-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 280px;
    background: white;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.accessibility-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.panel-header {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    font-weight: bold;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-content {
    padding: 20px;
}

.accessibility-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
    border-bottom: 1px dotted #ddd;
    transition: all 0.3s ease;
    color: #4CAF50;
    font-weight: 500;
}

.accessibility-option:last-child {
    border-bottom: none;
}

.accessibility-option:hover {
    background-color: #f0f8f0;
    padding-left: 8px;
    border-radius: 4px;
}

.option-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Estados ativos das opções */
.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

.high-contrast * {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

.high-contrast .accessibility-panel {
    background-color: #222 !important;
    border-color: #fff !important;
}

.high-contrast .accessibility-option {
    color: #fff !important;
    border-color: #666 !important;
}

.negative-mode {
    filter: invert(1) hue-rotate(180deg);
}

.grayscale-mode {
    filter: grayscale(100%);
}

/* Conteúdo da página */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.sample-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2.5em;
}

h2 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 1.8em;
}

p {
    margin-bottom: 15px;
    font-size: 1em;
}

.demo-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
}

/* Responsivo */
@media (max-width: 768px) {
    .accessibility-panel {
        width: 260px;
        right: 10px;
    }

    .accessibility-button {
        right: 10px;
    }
}