#anki-web-app {
    font-family: 'Inter', sans-serif;
}
#anki-web-app h1, #anki-web-app h2, #anki-web-app h3, #anki-web-app p, #anki-web-app label {
    font-family: 'Inter', sans-serif !important;
    background: none !important;
    border: none !important;
    margin: 0;
    padding: 0;
    text-shadow: none !important;
    box-shadow: none !important;
}
#anki-web-app button {
    font-family: 'Inter', sans-serif !important;
    text-shadow: none !important;
    box-shadow: none !important;
}
#anki-web-app h1 {
    color: #22d3ee !important;
    font-size: 1.875rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.2 !important;
}
#anki-web-app header p {
    color: #9ca3af !important;
    margin-top: 0.25rem !important;
    line-height: 1.5 !important;
}
#anki-web-app h2 {
    color: white !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
}
#anki-web-app label {
    display: block;
    color: #d1d5db !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
}
#anki-web-app div > button[id^="tab-"] {
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
    border-bottom-width: 2px !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}
#anki-web-app button.border-cyan-400 {
    border-bottom-color: #22d3ee !important;
    color: white !important;
    background-color: rgba(34, 211, 238, 0.1) !important;
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
}
#anki-web-app div > button[id^="tab-"].text-gray-400 {
    color: #9ca3af !important;
    border-bottom-color: transparent !important;
}
#anki-web-app #create-deck-form button[type="submit"] {
    background-color: #06b6d4 !important;
    color: white !important;
    font-weight: 500 !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    padding: 0.625rem 1.25rem !important;
    text-align: center !important;
    cursor: pointer !important;
    border: none !important;
    transition: background-color 0.2s !important;
}
#anki-web-app #create-deck-form button[type="submit"]:hover {
    background-color: #0891b2 !important;
}
#anki-web-app #add-card-form button[type="submit"], #anki-web-app #show-answer-btn {
    background-color: #06b6d4 !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
    width: 100% !important;
    border: none !important;
    transition: background-color 0.2s !important;
    cursor: pointer !important;
}
#anki-web-app #add-card-form button[type="submit"]:hover, #anki-web-app #show-answer-btn:hover {
    background-color: #0891b2 !important;
}
#anki-web-app .difficulty-btn {
    color: white !important;
    font-weight: 700 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
    border: none !important;
    transition: background-color 0.2s !important;
    cursor: pointer !important;
}
#anki-web-app .difficulty-btn[data-difficulty="0"] { background-color: #dc2626 !important; }
#anki-web-app .difficulty-btn[data-difficulty="0"]:hover { background-color: #b91c1c !important; }
#anki-web-app .difficulty-btn[data-difficulty="1"] { background-color: #f97316 !important; }
#anki-web-app .difficulty-btn[data-difficulty="1"]:hover { background-color: #ea580c !important; }
#anki-web-app .difficulty-btn[data-difficulty="2"] { background-color: #16a34a !important; }
#anki-web-app .difficulty-btn[data-difficulty="2"]:hover { background-color: #15803d !important; }
#anki-web-app .difficulty-btn[data-difficulty="3"] { background-color: #2563eb !important; }
#anki-web-app .difficulty-btn[data-difficulty="3"]:hover { background-color: #1d4ed8 !important; }
#anki-web-app .io-button {
    color: white !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    border: none !important;
    transition: background-color 0.2s !important;
    cursor: pointer !important;
    text-align: center;
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
#anki-web-app #export-btn {
    background-color: #14b8a6 !important;
}
#anki-web-app #export-btn:hover {
     background-color: #0d9488 !important;
}
#anki-web-app label[for="import-input"] {
    background-color: #3b82f6 !important;
}
#anki-web-app label[for="import-input"]:hover {
     background-color: #2563eb !important;
}
#anki-web-app #deck-list .deck-list-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background-color: #374151 !important;
    padding: 0.75rem !important;
    border-radius: 0.5rem !important;
}
#anki-web-app #deck-list .deck-list-name {
    font-weight: 500 !important;
    color: white !important;
}
#anki-web-app #deck-list .deck-list-count {
    font-size: 0.875rem !important;
    color: #9ca3af !important;
}
#anki-web-app #deck-list .deck-list-delete-btn {
    color: #f87171 !important;
    font-weight: bold !important;
    font-size: 1.5rem !important;
    margin-left: 1rem !important;
    line-height: 1 !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
}
#anki-web-app #deck-list .deck-list-delete-btn:hover {
    color: #fca5a5 !important;
}
#anki-web-app #card-browser-table thead {
    background-color: #374151 !important;
    position: sticky;
    top: 0;
}
#anki-web-app #card-browser-table thead th {
    padding: 0.75rem !important;
    font-size: 0.75rem !important;
    color: #d1d5db !important;
    text-transform: uppercase !important;
    text-align: left !important;
    letter-spacing: 0.05em !important;
}
#anki-web-app #card-browser-table thead th.actions-column {
    text-align: right !important;
}
#anki-web-app #card-browser-table td {
     vertical-align: top !important;
}
#anki-web-app .edit-card-btn {
    background-color: #4b5563 !important;
    color: #22d3ee !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.25rem !important;
    border: none !important;
    cursor: pointer;
}
#anki-web-app .edit-card-btn:hover {
    background-color: #6b7280 !important;
    color: #67e8f9 !important;
}
#anki-web-app .delete-card-btn {
    color: #ef4444 !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    background: none !important;
    border: none !important;
    padding: 0 0.25rem !important;
    line-height: 1 !important;
    cursor: pointer;
}
#anki-web-app .delete-card-btn:hover {
    color: #fca5a5 !important;
}
#anki-web-app .chart-filter-btn {
    background-color: #4b5563 !important;
    color: #d1d5db !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.75rem !important;
    border: 1px solid transparent !important;
    border-radius: 9999px !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
}
#anki-web-app .chart-filter-btn.active {
    background-color: #06b6d4 !important;
    color: white !important;
    border-color: #22d3ee !important;
}
#anki-web-app .chart-filter-btn:not(.active):hover {
    background-color: #6b7280 !important;
}
#anki-web-app #import-input {
    display: none;
}
#anki-web-app #question-text, #anki-web-app #answer-text {
    white-space: pre-wrap !important;
    word-break: break-word;
}
#anki-web-app #card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
#anki-web-app .card-face {
    backface-visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
}
#anki-web-app #card-container.flipped #card-inner {
    transform: rotateY(180deg);
}
#anki-web-app #card-back {
    transform: rotateY(180deg);
}

/* --- Estilos Responsivos --- */
@media (max-width: 768px) {
    /* Ajusta o padding principal do app em telas menores */
    #anki-web-app {
        padding: 1.5rem 1rem !important;
    }

    /* Ajusta o tamanho da fonte dos títulos principais */
    #anki-web-app h1 {
        font-size: 1.5rem !important; /* de 1.875rem */
    }
    #anki-web-app h2 {
        font-size: 1.125rem !important; /* de 1.25rem */
    }

    /* Reduz o tamanho do texto do card para melhor visualização */
    #anki-web-app #question-text,
    #anki-web-app #answer-text {
        font-size: 1.25rem !important; /* A classe original é text-2xl (1.5rem) */
    }
    
    /* Reduz o padding das abas de navegação para caberem na tela */
    #anki-web-app div > button[id^="tab-"] {
        padding: 0.5rem 0.5rem !important; 
        font-size: 0.8rem !important; /* um pouco menor */
    }
    
    /* Ajusta os botões de dificuldade e seus textos internos */
    #anki-web-app .difficulty-btn {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.875rem !important;
    }
    #anki-web-app .difficulty-btn .text-sm {
        font-size: 0.75rem !important;
    }
    
    /* O seletor de baralho na aba "Adicionar" precisa de um ajuste de fonte */
    #anki-web-app #deck-selector-add,
    #anki-web-app #deck-selector-review {
        font-size: 0.875rem !important;
    }

    /* Ajusta a tabela de cartões, diminuindo o padding */
    #anki-web-app #card-browser-table thead th,
    #anki-web-app #card-browser-table tbody td {
        padding: 0.6rem 0.4rem !important;
    }

    /* Diminui a fonte do conteúdo da tabela para caber mais informação */
    #anki-web-app #card-browser-table td {
       font-size: 0.8rem !important;
    }
    
    /* Ajustes no formulário de criação de baralho */
    #anki-web-app #create-deck-form {
        flex-direction: column; /* Força a coluna em telas menores */
    }
    #anki-web-app #create-deck-form button[type="submit"] {
        width: 100%;
    }
}

