/* frontend/static/css/styles.css */
/* As cores do gradiente são definidas aqui no início do arquivo */
:root {
    --primary-color: #7C3AED;
    --primary-hover: #6D28D9;
    --surface-color: #F9FAFB;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --gradient-start: #3B82F6;    /* Cor inicial do gradiente */
    --gradient-middle: #2563EB;
    --gradient-end: #1D4ED8;     /* Cor final do gradiente */
}
/* Cores para o tema escuro */
[data-bs-theme="dark"] {
    --surface-color: #1F2937;
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --gradient-start: #312E81;   /* Cor inicial do gradiente */
    --gradient-middle: #4C1D95;
    --gradient-end: #581C87;    /* Cor final do gradiente */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--surface-color);
    color: var(--text-primary);
    transition: background-color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Navbar Styles */
/* Para a barra superior (Navbar) */
.navbar {
    background: linear-gradient(
        135deg,
        var(--gradient-start) 0%,
        var(--gradient-middle) 50%,
        var(--gradient-end) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .navbar .dropdown-menu {
    background: rgba(31, 41, 55, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--gradient-start) 0%,
        var(--gradient-end) 100%
    );
    border: none;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.transition-opacity {
    transition: opacity 0.3s ease;
}
.card:hover .transition-opacity {
    opacity: 0.1 !important;
}
</styl

/* Theme Switch */
.theme-switch {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: white;
}

.theme-switch:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(15deg);
}

/* Footer Styles */
/* Para a barra inferior (Footer) */
.footer {
    background: linear-gradient(
        135deg,
        var(--gradient-start) 0%,
        var(--gradient-middle) 50%,
        var(--gradient-end) 100%
    );
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    pointer-events: none;
}

.footer h5 {
    color: white;
    font-weight: 600;
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.1);
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Responsividade */
@media (max-width: 576px) {
    .memory-game .card {
        height: 60px;
        font-size: 1rem;
    }

    .puzzle-container {
        width: 300px;
        height: 300px;
    }

    .puzzle-tile {
        width: 75px;
        height: 75px;
        background-size: 300px 300px;
    }
}


.post-content {
    line-height: 1.8;
}

.post-content p {
    text-align: justify;
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.post-content .image-left {
    float: left;
    margin-right: 1rem;
    margin-bottom: 1rem;
    max-width: 50%;
}

.post-content .image-right {
    float: right;
    margin-left: 1rem;
    margin-bottom: 1rem;
    max-width: 50%;
}
.post-content br {
    display: block;
    margin-bottom: 1em; /* Ajuste conforme necessário */
}

.nav-tabs .nav-link {
    color: #6c757d;
    cursor: pointer;
    border: 1px solid transparent;
    background: none;
}

.nav-tabs .nav-link.active {
    color: var(--bs-primary);
    font-weight: 500;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.nav-tabs .nav-link:hover:not(.active) {
    color: var(--bs-primary);
    border-color: #e9ecef #e9ecef #dee2e6;
    isolation: isolate;
}

.nav-item button {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Container principal dos jogos */
.game-container {
    height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: auto;
    max-width: 80%;
}

.game-content {
    flex: 1;
    overflow: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

/* Estilos específicos para cada jogo */
.memory-game {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    height: 100%;
    overflow: auto;
}

.memory-game .card {
    height: 80px;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #fff;
}

.memory-game .card:hover {
    background-color: #f8f9fa;
}

.memory-game .card.flipped {
    background-color: #007bff;
    color: #fff;
}

.memory-game .card.matched {
    background-color: #28a745;
    color: #fff;
}

.memory-game .restart-button {
    margin-top: 20px;
}

/* Quebra-cabeça */
.sliding-puzzle {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.puzzle-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.puzzle-tile {
    position: absolute;
    width: 100px;
    height: 100px;
    background-size: 400px 400px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: left 0.3s, top 0.3s;
    cursor: pointer;
}

.puzzle-tile:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.puzzle-tile.solved {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

/* Jogos específicos */
.blackjack-game {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.word-game {
    height: 100%;
    overflow: auto;
    padding: 15px;
}

.image-game {
    height: 100%;
    overflow: auto;
    padding: 15px;
}

.detective-game {
    height: 100%;
    overflow: auto;
    padding: 15px;
}

/* Back button */
.back-button {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    padding: 10px 0;
}

/* Cartas */
/* Atualizações para o jogo de Paciência */

/* Ajuste do container do jogo */
.solitaire-game {
    background-color: #277553;
    padding: 20px;
    border-radius: 15px;
    min-height: calc(100vh - 150px);
    margin-top: 20px;
}

/* Área das foundations (pilhas superiores) */
/* Ajuste do layout das foundations */
.playing-card {
    width: 130px !important;
    height: 180px !important;
    margin: 0 5px;
    background-color: white;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    position: absolute;
}

.foundations-area {
    display: flex;
    gap: 25px;
    justify-content: flex-end;
    margin-right: 30px;
    min-height: 180px;
}

.foundation-space {
    width: 130px;
    height: 180px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Stock e Waste área (pilhas de compra) */
.stock-waste-area {
    display: flex;
    gap: 30px !important;  /* Aumentado */
    margin-left: 30px;
    margin-bottom: 20px;
}

/* Tableaus (pilhas principais) */
.tableaus-area {
    display: flex;
    gap: 20px !important;  /* Aumentado */
    margin-top: 30px;
    justify-content: space-between;
    padding: 0 20px;
}

.tableau-pile {
    min-height: 180px !important;  /* Aumentado */
    width: 130px !important;       /* Aumentado */
    position: relative;
}

/* Ajustes nas cartas */
.playing-card {
    width: 130px !important;       /* Aumentado */
    height: 180px !important;      /* Aumentado */
    margin: 0 5px;
    background-color: white;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    position: absolute;
}

/* Ajuste do layout das cartas */
.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.card-top {
    font-size: 24px;
    font-weight: bold;
    text-align: left;
}

.card-center {
    font-size: 48px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-bottom {
    font-size: 24px;
    font-weight: bold;
    text-align: right;
    transform: rotate(180deg);
}

/* Placeholders para espaços vazios */
.card-placeholder {
    width: 130px !important;      /* Aumentado */
    height: 180px !important;     /* Aumentado */
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Espaçamento entre cartas empilhadas */
.tableau-pile .playing-card {
    position: absolute;
    transition: top 0.3s ease;
}

.tableau-pile .playing-card:not(:first-child) {
    margin-top: 30px !important;  /* Aumentado espaçamento vertical */
}

/* Ajustes responsivos mais suaves */
@media (max-width: 1400px) {
    .playing-card, .foundation-pile, .card-placeholder {
        width: 120px !important;
        height: 165px !important;
    }

    .tableaus-area {
        gap: 15px !important;
    }
}

@media (max-width: 1200px) {
    .playing-card, .foundation-pile, .card-placeholder {
        width: 110px !important;
        height: 150px !important;
    }

    .card-top, .card-bottom {
        font-size: 20px;
    }

    .card-center {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .playing-card, .foundation-pile, .card-placeholder {
        width: 100px !important;
        height: 140px !important;
    }

    .tableau-pile .playing-card:not(:first-child) {
        margin-top: 25px !important;
    }
}
.candy-game {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.candy-grid {
    display: grid;
    grid-template-columns: repeat(8, 60px);
    gap: 8px;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.candy {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    cursor: pointer;
    background-color: white;
    border-radius: 12px;
    border: 2px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.candy.selected {
    border: 3px solid gold;
    box-shadow: 0 0 10px gold;
    transform: scale(1.1);
    z-index: 1;
}

.candy.special {
    background-color: #ffd700;
    box-shadow: 0 0 15px gold;
}

/* Animações */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes dropIn {
    from { 
        transform: translateY(-100px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* Estilos para o painel de pontuação e controles */
.score-panel {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.score-badge {
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    margin: 0 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.score {
    background-color: #007bff;
}

.target {
    background-color: #28a745;
}

.moves {
    background-color: #dc3545;
}

/* Modal de fim de jogo */
.game-over-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    z-index: 1000;
    text-align: center;
    min-width: 300px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 999;
}

/* Animação para doces sendo eliminados */
.candy.eliminating {
    animation: fadeOut 0.3s forwards;
}

/* Animação para novos doces */
.candy.new {
    animation: dropIn 0.3s ease-out;
}

/* Animação para doces especiais */
.candy.special-activated {
    animation: pulse 0.5s infinite;
}
/* CSS para animações */
.candy {
    transition: transform 0.3s ease, top 0.5s ease; /* Adiciona transição suave */
}

.candy.new {
    animation: dropIn 0.4s ease-out; /* Adiciona uma animação de entrada suave */
}

@keyframes dropIn {
    from {
        transform: translateY(-100px); /* Começa de uma posição acima */
        opacity: 0;
    }
    to {
        transform: translateY(0); /* Finaliza na posição correta */
        opacity: 1;
    }
}
/* Estilos base para os doces */
/* Container principal do jogo */
.candy-game {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Grid do jogo */
.candy-grid {
    display: grid;
    grid-template-columns: repeat(8, 60px);
    gap: 8px;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

/* Animação base dos doces */
.candy {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    cursor: pointer;
    background-color: white;
    border-radius: 12px;
    border: 2px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
    z-index: 1;
}

/* Estado selecionado */
.candy.selected {
    border: 3px solid gold;
    box-shadow: 0 0 10px gold;
    transform: scale(1.1);
    z-index: 2;
    animation: selectPulse 0.8s ease-in-out infinite;
}

/* Doces especiais */
.candy.special {
    background-color: #ffd700;
    box-shadow: 0 0 15px gold;
    animation: glowing 1.5s ease-in-out infinite;
}

/* Animações de troca */
.candy.swapping {
    z-index: 3;
    animation: swap 0.3s ease-in-out;
}

.candy.returning {
    animation: returnSwap 0.3s ease-in-out;
}

/* Animações de cascata */
.candy.cascading {
    transform: translateY(calc(var(--fall-distance, 0) * 68px));
    z-index: 2;
}

/* Animação para novos doces */
.candy.new {
    transform: translateY(-68px);
    animation: dropIn 0.3s ease-in-out forwards;
}

/* Animação para doces sendo eliminados */
.candy.eliminating {
    animation: eliminate 0.3s ease-out forwards;
}

/* Definição das animações */
@keyframes selectPulse {
    0% { transform: scale(1.1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1.1); }
}

@keyframes glowing {
    0% { box-shadow: 0 0 10px gold; }
    50% { box-shadow: 0 0 20px gold, 0 0 30px gold; }
    100% { box-shadow: 0 0 10px gold; }
}

@keyframes swap {
    0% { 
        transform: scale(1); 
        z-index: 3;
    }
    50% { 
        transform: scale(1.2); 
        z-index: 3;
    }
    100% { 
        transform: scale(1) translateX(var(--swap-x)) translateY(var(--swap-y));
        z-index: 3;
    }
}

@keyframes returnSwap {
    0% { transform: translateX(var(--swap-x)) translateY(var(--swap-y)); }
    50% { transform: scale(0.9); }
    100% { transform: translateX(0) translateY(0); }
}

/* Ajuste na animação de cascata */
@keyframes cascade {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(var(--fall-distance));
    }
}

/* Simplificando a animação dropIn */
@keyframes dropIn {
    from {
        transform: translateY(-68px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes eliminate {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Animações para efeitos especiais */
@keyframes colorBombEffect {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes stripedEffect {
    0% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
    100% {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }
}

@keyframes wrappedEffect {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Painel de pontuação */
.score-panel {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.score-badge {
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    margin: 0 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: inline-block;
    transition: transform 0.2s ease;
}

.score-badge:hover {
    transform: translateY(-2px);
}

.score { background-color: #007bff; }
.target { background-color: #28a745; }
.moves { background-color: #dc3545; }

/* Modal de fim de jogo */
.game-over-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    z-index: 1000;
    text-align: center;
    min-width: 300px;
    animation: modalAppear 0.3s ease-out;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    animation: overlayAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes overlayAppear {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsividade */
@media (max-width: 768px) {
    .candy-grid {
        grid-template-columns: repeat(8, 50px);
        gap: 5px;
        padding: 10px;
    }

    .candy {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .score-badge {
        padding: 8px 15px;
        font-size: 0.9em;
        margin: 5px;
    }
}

@media (max-width: 576px) {
    .candy-grid {
        grid-template-columns: repeat(8, 40px);
        gap: 4px;
        padding: 8px;
    }

    .candy {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .score-badge {
        padding: 6px 12px;
        font-size: 0.8em;
        margin: 3px;
    }
}

/* Efeitos de partículas para combinações especiais */
.particle {
    position: absolute;
    pointer-events: none;
    animation: particle 0.6s ease-out forwards;
    border-radius: 50%;
}

@keyframes particle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--particle-x), var(--particle-y)) scale(0);
        opacity: 0;
    }
}

/* Efeito de brilho para combos */
.combo-text {
    position: absolute;
    color: gold;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    pointer-events: none;
    animation: comboText 1s ease-out forwards;
    z-index: 100;
}

@keyframes comboText {
    0% {
        transform: scale(0.5) translateY(0);
        opacity: 0;
    }
    20% {
        transform: scale(1.2) translateY(-20px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(-50px);
        opacity: 0;
    }
}

/* Efeito de destaque para células válidas */
.highlight {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    pointer-events: none;
    animation: highlight 1s infinite;
}

@keyframes highlight {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.8); }
}

/* Estilos para a página de administração do glossário */
.admin-glossario .btn-group {
    gap: 5px;
    display: flex;
}

.admin-glossario .btn-group .btn {
    transition: all 0.3s ease;
}

.admin-glossario .btn-group .btn:hover {
    transform: translateY(-2px);
}

.admin-glossario .table td {
    vertical-align: middle;
}

.admin-glossario .img-fluid {
    transition: transform 0.3s ease;
}

.admin-glossario .img-fluid:hover {
    transform: scale(1.5);
    z-index: 1;
}

/* Estilos para a tabela de termos */
.terms-table img {
    max-width: 50px;
    height: auto;
    object-fit: cover;
}

.terms-table .btn-group {
    display: flex;
    gap: 5px;
}

/* Melhorias na responsividade */
@media (max-width: 768px) {
    .admin-glossario .btn-group {
        flex-direction: column;
    }
    
    .admin-glossario .btn-group .btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Estilos para a página de detalhes do termo */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Seção de exemplos práticos */
.exemplos-praticos {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.exemplos-praticos pre {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #282c34;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.exemplos-praticos code {
    color: #abb2bf;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Badges e elementos de UI */
.termo-detalhe .badge {
    font-size: 0.9rem;
    padding: 0.5em 1em;
}

.termo-detalhe .card-header {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Modal de imagem */
.termo-detalhe .btn-close {
    background-color: white;
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Estilos para código com Prism */
.termo-detalhe pre[class*="language-"] {
    margin: 1em 0;
    border-radius: 0.5rem;
}

.termo-detalhe code[class*="language-"] {
    font-size: 0.9rem;
    padding: 1em;
    line-height: 1.5;
}

/* Responsividade */
@media (max-width: 768px) {
    .termo-detalhe .card-footer .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .termo-detalhe .card-footer .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .termo-detalhe .exemplos-praticos {
        padding: 1rem;
    }

    .termo-detalhe .exemplos-praticos pre {
        margin: 0.5rem 0;
        padding: 0.5rem;
    }
}

/* Animações para o modal de imagem */
.termo-detalhe .modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

.termo-detalhe .modal.show .modal-dialog {
    transform: none;
}

/* Hover effects */
.termo-detalhe .badge:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* Estilos para a página do glossário */
.glossario-page .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.glossario-page .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.glossario-page .card-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem 0.5rem 0 0;
}

.glossario-page .card-img-top {
    transition: transform 0.3s ease;
}

.glossario-page .card:hover .card-img-top {
    transform: scale(1.05);
}

.glossario-page .input-group {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 0.5rem;
}

.glossario-page .input-group-text,
.glossario-page .form-control {
    border-color: #e9ecef;
}

.glossario-page .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Animação de entrada dos cards */
.glossario-page .termo-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.glossario-page .termo-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsividade */
@media (max-width: 768px) {
    .glossario-page .card-img-wrapper {
        height: 150px;
    }
}

/* Tema escuro */
[data-bs-theme="dark"] .glossario-page .card {
    background-color: var(--surface-color);
}

[data-bs-theme="dark"] .glossario-page .input-group-text,
[data-bs-theme="dark"] .glossario-page .form-control {
    background-color: var(--surface-color);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}