html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #F0F0F0;
}

.inputCustom {
    border: solid 1px #1C1062;
    color: #1C1062 !important;
    border-radius: 10px;
    padding: 5px !important
}

.btnCustom {
    border-radius: 10px;
    padding: 10px !important
}

.bg-color-blue {
    background-color: #1C1062 !important
}

.txt-color-orange {
    color: #FF6019 !important
}

.day-square {
    width: 150px; /* Ajuste conforme quiser */
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

.empty-day {
    background-color: #f9f9f9; /* Diferencia dias vazios */
    border: none;
}

.nav-link-custom {
    color: var(--mud-palette-surface) !important;
}

.nav-link-custom .mud-icon-root {
    color: var(--mud-palette-surface) !important;
}

/* Quando ativo (classe active no <a>) */
.nav-link-custom .mud-nav-link.active {
    color: var(--mud-palette-secondary) !important; /* cor secundária para texto */
}

.nav-link-custom .mud-nav-link.active .mud-icon-root {
    color: var(--mud-palette-secondary) !important; /* cor secundária para ícone */
}

.login-container {
    height: 100vh;
    overflow: hidden;
}

.left-panel {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    color: white;
    min-height: 100vh;
}

.left-content {
    position: relative;
    z-index: 2;
    height: 100%;
    align-items: center;
    text-align: center;
    justify-content: center;
    display: flex;
}

.selected-works {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    width: fit-content;
}

.auth-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.auth-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .auth-btn.active {
        background: white;
        color: #1a1a2e;
    }

    .auth-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.creator-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.creator-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.navigation-arrows {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .nav-arrow:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.right-panel {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 100vh;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    text-align: center;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.2;
}

.welcome-subtitle {
    color: #6b7280;
    margin-bottom: 32px;
    font-size: 16px;
}

.custom-input {
    margin-bottom: 20px;
}

    .custom-input .mud-input-root {
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        background: #f9fafb;
        padding: 16px 20px;
        font-size: 16px;
    }

        .custom-input .mud-input-root:focus-within {
            border-color: #3b82f6;
            background: white;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

.forgot-password {
    text-align: right;
    margin-bottom: 24px;
}

    .forgot-password a {
        color: #6b7280;
        text-decoration: none;
        font-size: 14px;
    }

        .forgot-password a:hover {
            color: #3b82f6;
        }

.login-button {
    width: 100%;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .login-button:hover {
        background: #dc2626;
        transform: translateY(-1px);
    }

    .login-button:disabled {
        background: #9ca3af;
        cursor: not-allowed;
        transform: none;
    }

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
    color: #6b7280;
    font-size: 14px;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #e5e7eb;
        z-index: 1;
    }

    .divider span {
        background: white;
        padding: 0 16px;
        position: relative;
        z-index: 2;
    }

.google-button {
    width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    margin-bottom: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

    .google-button:hover {
        background: #f9fafb;
        border-color: #d1d5db;
    }

.signup-link {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 32px;
}

    .signup-link a {
        color: #3b82f6;
        text-decoration: none;
        font-weight: 500;
    }

        .signup-link a:hover {
            text-decoration: underline;
        }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

    .social-icon:hover {
        background: #e5e7eb;
        color: #374151;
    }

.language-selector {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .login-container {
        height: 100vh;
        background: #f8f9fa;
    }

        .login-container .mud-grid {
            height: 100vh;
        }

    /* Ocultar completamente o painel esquerdo em dispositivos móveis */
    .left-panel {
        display: none !important;
    }

    /* O painel direito ocupa toda a tela */
    .right-panel {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        min-height: 100vh;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-form-container {
        padding: 32px 24px;
        margin: 0;
        width: 100%;
        max-width: 400px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .welcome-title {
        font-size: 28px;
    }

    .brand-logo {
        font-size: 20px;
    }

    .custom-input .mud-input-root {
        padding: 14px 16px;
        font-size: 16px;
    }

    .login-button, .google-button {
        padding: 14px;
        font-size: 16px;
    }
}

/* === ESTILOS PRINCIPAIS === */
.study-card {
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa !important;
    max-width: 100%;
    box-sizing: border-box;
}

    .study-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
        border-color: #d0d0d0 !important;
    }

/* === CONTAINER DO ÍCONE === */
.icon-container {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
    margin-left:10px;
}

.study-card:hover .icon-container {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lesson-icon:hover {
    background: #e3f2fd !important;
}

.revision-icon:hover {
    background: #f3e5f5 !important;
}

.questions-icon:hover {
    background: #fce4ec !important;
}

/* === TIPOGRAFIA === */
.card-title {
    color: #2c2c2c !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
}

.card-subject {
    color: #424242 !important;
    font-weight: 500 !important;
    margin-bottom: 2px !important;
    font-size: 0.85rem !important;
}

.card-subtitle {
    color: #757575 !important;
    font-weight: 400 !important;
    font-size: 0.8rem !important;
}

/* === BOTÕES === */
.action-buttons {
    flex-shrink: 0;
    margin-right:10px;
}

.action-btn {
    border-radius: 10px !important;
    text-transform: none !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    min-width: 80px !important;
    border: none !important;
    font-size: 0.8rem !important;
}

    .action-btn:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
    }

.success-btn {
    background: #4caf50 !important;
    color: white !important;
}

    .success-btn:hover {
        background: #45a049 !important;
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25) !important;
    }

.questions-btn {
    background: #e91e63 !important;
    color: white !important;
}

    .questions-btn:hover {
        background: #d81b60 !important;
        box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25) !important;
    }

.youtube-btn {
    background: #ff4444 !important;
    color: white !important;
    min-width: 70px !important;
}

    .youtube-btn:hover {
        background: #cc0000 !important;
        box-shadow: 0 4px 12px rgba(255, 68, 68, 0.25) !important;
    }

.status-btn {
    border-radius: 8px !important;
    text-transform: none !important;
    font-weight: 500 !important;
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
    min-width: 32px !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.studied-btn {
    background: #4caf50 !important;
    color: white !important;
}

    .studied-btn:hover {
        background: #45a049 !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 8px rgba(76, 175, 80, 0.2) !important;
    }

.not-studied-btn {
    background: #f44336 !important;
    color: white !important;
}

    .not-studied-btn:hover {
        background: #d32f2f !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 8px rgba(244, 67, 54, 0.2) !important;
    }

/* === RESPONSIVIDADE MOBILE === */
@media (max-width: 768px) {
    .study-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .icon-container {
        width: 45px;
        height: 45px;
    }

    .card-title {
        font-size: 0.9rem !important;
    }

    .card-subject {
        font-size: 0.8rem !important;
    }

    .card-subtitle {
        font-size: 0.75rem !important;
    }

    .action-btn {
        min-width: 70px !important;
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }

    .youtube-btn {
        min-width: 60px !important;
    }

    .status-btn {
        min-width: 28px !important;
        padding: 3px 6px !important;
        font-size: 0.7rem !important;
    }

    /* Ajustes específicos para modal em mobile */
    .mud-dialog-content {
        padding: 8px !important;
    }

    .study-card .p-3 {
        padding: 12px !important;
    }

    .study-card .mb-2 {
        margin-bottom: 8px !important;
    }

    .gap-1 {
        gap: 4px !important;
    }

    .gap-2 {
        gap: 6px !important;
    }
}

@media (max-width: 480px) {
    .study-card {
        border-radius: 12px !important;
    }

    .icon-container {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .card-title {
        font-size: 0.85rem !important;
    }

    .action-btn {
        min-width: 60px !important;
        font-size: 0.7rem !important;
    }

    .youtube-btn {
        min-width: 55px !important;
    }

    .status-btn {
        min-width: 24px !important;
        padding: 2px 4px !important;
    }

    /* Layout mais compacto para telas muito pequenas */
    .study-card .p-3 {
        padding: 10px !important;
    }
}

/* === ANIMAÇÕES === */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.study-card {
    animation: slideInUp 0.4s ease-out;
}

/* === CHIPS PERSONALIZADOS === */
.mud-chip {
    font-weight: 500 !important;
    height: 24px !important;
}

/* === FLEXBOX HELPERS === */
.flex-wrap {
    flex-wrap: wrap !important;
}

.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

/* === ESTADOS ESPECIAIS === */
.study-card.completed {
    opacity: 0.8;
    background: #f1f8e9 !important;
    border-color: #c8e6c9 !important;
}

.study-card.in-progress {
    border: 2px solid #ffc107 !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.15) !important;
}

.q-question-enunciation img {
    max-width: 100%;
    height: auto;
}

.mud-collapse-wrapper-inner {
    max-width: 100%; /* nunca maior que o pai */
    overflow-x: auto; /* scroll horizontal se precisar */
    overflow-y: hidden; /* evita scroll vertical desnecessário */
}

.mud-collapse-wrapper-inner * {
    max-width: 100%; /* filhos não podem ultrapassar o container */
    box-sizing: border-box;
}

.mud-collapse-wrapper-inner img {
    height: auto;
    display: block;
    margin: 0 auto; /* centraliza imagens */
}

.confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: radial-gradient(circle, #22c55e 20%, transparent 20%), radial-gradient(circle, #4ade80 20%, transparent 20%), radial-gradient(circle, #86efac 20%, transparent 20%);
    background-size: 10px 10px;
    animation: confetti-fall 1.5s ease-in-out infinite;
}

@keyframes confetti-fall {
    0% {
        background-position: 0 0, 10px 10px, 20px -10px;
    }

    100% {
        background-position: 0 100px, 10px 110px, 20px 90px;
    }
}

/* === AMC DARK THEME STYLES === */
:root {
    --amc-bg-primary: #0f1419;
    --amc-bg-secondary: #1a2332;
    --amc-bg-card: #1e2a3a;
    --amc-bg-card-hover: #243447;
    --amc-text-primary: #ffffff;
    --amc-text-secondary: #8b9db5;
    --amc-text-muted: #5a6a7d;
    --amc-accent-gold: #c9a227;
    --amc-accent-green: #4ade80;
    --amc-accent-green-dark: #22c55e;
    --amc-accent-olive: #6b8e23;
    --amc-accent-yellow: #facc15;
    --amc-accent-red: #ef4444;
    --amc-accent-blue: #3b82f6;
    --amc-border-color: #2d3a4d;
    --amc-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --amc-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
    --amc-gradient-gold: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
    --amc-gradient-green: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

/* === LOGIN PAGE DARK === */
.amc-login-container {
    min-height: 100vh;
    background: var(--amc-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.amc-login-card {
    background: var(--amc-bg-card);
    border-radius: 20px;
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--amc-shadow);
    border: 1px solid var(--amc-border-color);
}

.amc-login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.amc-login-logo img {
    max-width: 120px;
    margin-bottom: 16px;
}

.amc-login-logo h1 {
    color: var(--amc-accent-gold);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.amc-login-logo h1 .icon {
    font-size: 32px;
}

.amc-login-logo p {
    color: var(--amc-text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

.amc-login-title {
    color: var(--amc-text-primary);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
}

.amc-input-group {
    margin-bottom: 20px;
}

.amc-input-group label {
    color: var(--amc-text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.amc-input {
    width: 100%;
    background: var(--amc-bg-secondary) !important;
    border: 1px solid var(--amc-border-color) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    color: var(--amc-text-primary) !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
}

.amc-input:focus {
    border-color: var(--amc-accent-gold) !important;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1) !important;
    outline: none !important;
}

.amc-input::placeholder {
    color: var(--amc-text-muted) !important;
}

.amc-btn-primary {
    width: 100%;
    background: var(--amc-gradient-gold) !important;
    color: #1a1a1a !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}

.amc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.3);
}

.amc-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* === DASHBOARD STYLES === */
.amc-dashboard {
    background: var(--amc-bg-primary);
    min-height: 100vh;
    padding: 24px;
}

.amc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 0 8px;
}

.amc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.amc-brand-icon {
    color: var(--amc-accent-gold);
    font-size: 28px;
}

.amc-brand h1 {
    color: var(--amc-text-primary);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.amc-brand span {
    color: var(--amc-text-secondary);
    font-size: 12px;
    display: block;
}

.amc-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.amc-xp-badge {
    background: var(--amc-bg-card);
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--amc-border-color);
}

.amc-xp-badge .icon {
    color: var(--amc-accent-green);
}

.amc-xp-badge span {
    color: var(--amc-text-primary);
    font-weight: 600;
}

.amc-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.amc-user-info .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--amc-bg-card);
    border: 2px solid var(--amc-accent-gold);
}

.amc-user-info .details {
    text-align: right;
}

.amc-user-info .name {
    color: var(--amc-text-primary);
    font-weight: 600;
    font-size: 14px;
}

.amc-user-info .rank {
    color: var(--amc-text-secondary);
    font-size: 12px;
}

.amc-btn-logout {
    background: var(--amc-accent-red) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

/* === STAT CARDS === */
.amc-stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .amc-stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .amc-stat-cards {
        grid-template-columns: 1fr;
    }
}

.amc-stat-card {
    background: var(--amc-bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--amc-border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.amc-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--amc-shadow-hover);
}

.amc-stat-card .icon-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.amc-stat-card .icon-badge.gold {
    background: rgba(201, 162, 39, 0.15);
    color: var(--amc-accent-gold);
}

.amc-stat-card .icon-badge.orange {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
}

.amc-stat-card .icon-badge.blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--amc-accent-blue);
}

.amc-stat-card .icon-badge.green {
    background: rgba(74, 222, 128, 0.15);
    color: var(--amc-accent-green);
}

.amc-stat-card .label {
    color: var(--amc-text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.amc-stat-card .value {
    color: var(--amc-text-primary);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.amc-stat-card .value.xp {
    color: var(--amc-accent-gold);
}

.amc-stat-card .subtitle {
    color: var(--amc-text-muted);
    font-size: 12px;
}

.amc-stat-card .subtitle.positive {
    color: var(--amc-accent-green);
}

.amc-stat-card .progress-bar {
    width: 100%;
    height: 8px;
    background: var(--amc-bg-secondary);
    border-radius: 4px;
    margin-top: 12px;
    overflow: hidden;
}

.amc-stat-card .progress-bar .fill {
    height: 100%;
    background: var(--amc-gradient-green);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.amc-stat-card .patente-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 165, 0, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.amc-stat-card .patente-icon img {
    width: 32px;
    height: 32px;
}

/* === SECTION CARDS === */
.amc-section-card {
    background: var(--amc-bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--amc-border-color);
    margin-bottom: 24px;
}

.amc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.amc-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--amc-accent-gold);
    font-size: 18px;
    font-weight: 600;
}

.amc-section-title .icon {
    font-size: 24px;
}

.amc-badge {
    background: var(--amc-bg-secondary);
    color: var(--amc-text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.amc-badge.active {
    background: var(--amc-accent-green);
    color: #1a1a1a;
}

/* === PLANO DE ESTUDO === */
.amc-study-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--amc-bg-secondary);
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.amc-study-item:hover {
    background: var(--amc-bg-card-hover);
}

.amc-study-item.active {
    border-left-color: var(--amc-accent-gold);
}

.amc-study-item .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--amc-accent-gold);
    margin-right: 16px;
}

.amc-study-item .indicator.inactive {
    background: var(--amc-text-muted);
}

.amc-study-item .content {
    flex: 1;
}

.amc-study-item .title {
    color: var(--amc-text-primary);
    font-weight: 600;
    font-size: 15px;
}

.amc-study-item .subtitle {
    color: var(--amc-text-secondary);
    font-size: 13px;
}

.amc-study-item .time {
    color: var(--amc-text-muted);
    font-size: 13px;
    margin-right: 16px;
}

.amc-btn-start {
    background: var(--amc-bg-card) !important;
    color: var(--amc-text-primary) !important;
    border: 1px solid var(--amc-border-color) !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.amc-btn-start:hover {
    background: var(--amc-accent-green) !important;
    color: #1a1a2a !important;
    border-color: var(--amc-accent-green) !important;
}

/* === QUICK ACTIONS === */
.amc-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.amc-quick-action {
    background: var(--amc-bg-secondary);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.amc-quick-action:hover {
    background: var(--amc-bg-card-hover);
    border-color: var(--amc-accent-gold);
    transform: translateY(-2px);
}

.amc-quick-action .icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: var(--amc-bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--amc-accent-gold);
}

.amc-quick-action .label {
    color: var(--amc-text-primary);
    font-weight: 500;
    font-size: 14px;
}

/* === RANKING === */
.amc-ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.amc-ranking-item.first {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.amc-ranking-item:not(.first) {
    background: var(--amc-bg-secondary);
}

.amc-ranking-item .position {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 12px;
}

.amc-ranking-item.first .position {
    background: var(--amc-accent-gold);
    color: #1a1a1a;
}

.amc-ranking-item:not(.first) .position {
    background: var(--amc-bg-card);
    color: var(--amc-text-secondary);
}

.amc-ranking-item .trophy {
    margin-right: 8px;
    font-size: 18px;
}

.amc-ranking-item .trophy.gold {
    color: #ffd700;
}

.amc-ranking-item .trophy.silver {
    color: #c0c0c0;
}

.amc-ranking-item .trophy.bronze {
    color: #cd7f32;
}

.amc-ranking-item .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.amc-ranking-item .info {
    flex: 1;
}

.amc-ranking-item .name {
    color: var(--amc-text-primary);
    font-weight: 600;
    font-size: 14px;
}

.amc-ranking-item.first .name {
    color: var(--amc-accent-gold);
}

.amc-ranking-item .rank-label {
    color: var(--amc-text-muted);
    font-size: 12px;
}

.amc-ranking-item .score {
    text-align: right;
}

.amc-ranking-item .score-value {
    color: var(--amc-accent-green);
    font-weight: 700;
    font-size: 16px;
}

.amc-ranking-item .score-label {
    color: var(--amc-text-muted);
    font-size: 11px;
}

/* === STATISTICS === */
.amc-stat-row {
    margin-bottom: 16px;
}

.amc-stat-row .stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.amc-stat-row .stat-label {
    color: var(--amc-text-secondary);
    font-size: 14px;
}

.amc-stat-row .stat-value {
    color: var(--amc-text-primary);
    font-weight: 600;
    font-size: 14px;
}

.amc-stat-row .stat-bar {
    height: 8px;
    background: var(--amc-bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.amc-stat-row .stat-bar .fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.amc-stat-row .stat-bar .fill.green {
    background: var(--amc-accent-green);
}

.amc-stat-row .stat-bar .fill.red {
    background: var(--amc-accent-red);
}

.amc-stat-row .stat-bar .fill.blue {
    background: var(--amc-accent-blue);
}

/* === FLASHCARD STYLES === */
.amc-flashcard-container {
    background: var(--amc-bg-primary);
    min-height: 100vh;
    padding: 24px;
}

.amc-flashcard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .amc-flashcard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .amc-flashcard-stats {
        grid-template-columns: 1fr 1fr;
    }
}

.amc-flashcard-stat {
    background: var(--amc-bg-card);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--amc-border-color);
}

.amc-flashcard-stat .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--amc-accent-green);
}

.amc-flashcard-stat .value.gold {
    color: var(--amc-accent-gold);
}

.amc-flashcard-stat .value.red {
    color: var(--amc-accent-red);
}

.amc-flashcard-stat .label {
    color: var(--amc-text-secondary);
    font-size: 13px;
    margin-top: 4px;
}

.amc-flashcard-main {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .amc-flashcard-main {
        grid-template-columns: 1fr;
    }
}

.amc-flashcard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.amc-study-modes .mode-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--amc-bg-secondary);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.amc-study-modes .mode-item:hover {
    background: var(--amc-bg-card-hover);
}

.amc-study-modes .mode-item.active {
    background: var(--amc-accent-olive);
    border-color: var(--amc-accent-green);
}

.amc-study-modes .mode-item .icon {
    width: 36px;
    height: 36px;
    background: var(--amc-bg-card);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--amc-accent-gold);
}

.amc-study-modes .mode-item.active .icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.amc-study-modes .mode-item .text .title {
    color: var(--amc-text-primary);
    font-weight: 600;
    font-size: 14px;
}

.amc-study-modes .mode-item .text .subtitle {
    color: var(--amc-text-secondary);
    font-size: 12px;
}

.amc-study-modes .mode-item.active .text .title,
.amc-study-modes .mode-item.active .text .subtitle {
    color: white;
}

.amc-deck-item {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    background: var(--amc-bg-secondary);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.amc-deck-item:hover {
    background: var(--amc-bg-card-hover);
}

.amc-deck-item.active {
    border-color: var(--amc-accent-green);
}

.amc-deck-item .deck-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.amc-deck-item .deck-name {
    color: var(--amc-text-primary);
    font-weight: 600;
    font-size: 14px;
}

.amc-deck-item .deck-count {
    color: var(--amc-text-muted);
    font-size: 12px;
}

.amc-deck-item .deck-progress {
    height: 6px;
    background: var(--amc-bg-card);
    border-radius: 3px;
    overflow: hidden;
}

.amc-deck-item .deck-progress .fill {
    height: 100%;
    background: var(--amc-accent-green);
    border-radius: 3px;
}

.amc-btn-create-deck {
    width: 100%;
    background: var(--amc-accent-olive) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.amc-btn-create-deck:hover {
    background: #5a7d1e !important;
}

/* === FLASHCARD CENTRAL === */
.amc-flashcard-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.amc-card-display {
    background: var(--amc-bg-card);
    border-radius: 20px;
    padding: 48px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--amc-border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.amc-card-display:hover {
    box-shadow: var(--amc-shadow-hover);
}

.amc-card-display .question-icon {
    width: 64px;
    height: 64px;
    background: var(--amc-accent-olive);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin-bottom: 24px;
}

.amc-card-display .card-label {
    color: var(--amc-text-secondary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.amc-card-display .card-text {
    color: var(--amc-text-primary);
    font-size: 20px;
    line-height: 1.6;
    max-width: 600px;
}

.amc-card-display .flip-hint {
    color: var(--amc-text-muted);
    font-size: 13px;
    margin-top: 24px;
}

.amc-card-display.flipped {
    background: linear-gradient(135deg, #2d4a35 0%, #1e3a28 100%);
}

.amc-card-display.flipped .card-label {
    color: var(--amc-accent-green);
}

.amc-card-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.amc-card-btn {
    padding: 12px 24px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.amc-card-btn.prev,
.amc-card-btn.next {
    background: var(--amc-bg-secondary) !important;
    color: var(--amc-text-primary) !important;
    border: 1px solid var(--amc-border-color) !important;
}

.amc-card-btn.prev:hover,
.amc-card-btn.next:hover {
    background: var(--amc-bg-card-hover) !important;
}

.amc-card-btn.flip {
    background: var(--amc-accent-olive) !important;
    color: white !important;
    border: none !important;
}

.amc-card-btn.flip:hover {
    background: #5a7d1e !important;
}

.amc-card-btn.correct {
    background: var(--amc-accent-green) !important;
    color: #1a1a1a !important;
    border: none !important;
}

.amc-card-btn.wrong {
    background: var(--amc-accent-red) !important;
    color: white !important;
    border: none !important;
}

/* === DECK PROGRESS === */
.amc-deck-progress {
    background: var(--amc-bg-card);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--amc-border-color);
}

.amc-progress-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    position: relative;
}

.amc-progress-circle svg {
    transform: rotate(-90deg);
}

.amc-progress-circle .bg {
    fill: none;
    stroke: var(--amc-bg-secondary);
    stroke-width: 10;
}

.amc-progress-circle .progress {
    fill: none;
    stroke: var(--amc-accent-green);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.amc-progress-circle .percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 700;
    color: var(--amc-accent-green);
}

.amc-deck-progress .progress-label {
    color: var(--amc-text-secondary);
    font-size: 14px;
}

/* === WRITING MODE === */
.amc-writing-input {
    width: 100%;
    background: var(--amc-bg-secondary);
    border: 2px solid var(--amc-border-color);
    border-radius: 12px;
    padding: 16px;
    color: var(--amc-text-primary);
    font-size: 16px;
    resize: none;
    min-height: 100px;
    transition: border-color 0.3s ease;
}

.amc-writing-input:focus {
    border-color: var(--amc-accent-gold);
    outline: none;
}

.amc-writing-input::placeholder {
    color: var(--amc-text-muted);
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
    .amc-dashboard {
        padding: 16px;
    }
    
    .amc-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .amc-header-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .amc-stat-card .value {
        font-size: 24px;
    }
    
    .amc-quick-actions {
        grid-template-columns: 1fr;
    }
    
    .amc-card-display {
        padding: 24px;
        min-height: 200px;
    }
    
    .amc-card-display .card-text {
        font-size: 16px;
    }
    
    .amc-card-controls {
        flex-wrap: wrap;
    }
}

/* === NAVBAR DARK THEME === */
.amc-nav-menu {
    background: var(--amc-bg-secondary) !important;
}

.amc-nav-menu .mud-nav-link {
    color: #fff !important;
    border-radius: 8px !important;
    margin: 4px 8px !important;
}

.amc-nav-menu .mud-nav-link:hover {
    background: var(--amc-bg-card) !important;
    color: var(--amc-text-primary) !important;
}

.amc-nav-menu .mud-nav-link.active {
    background: var(--amc-accent-olive) !important;
    color: white !important;
}

.amc-nav-menu .mud-nav-link .mud-icon-root {
    color: inherit !important;
}

/* === ADMIN MENU FIXES === */
.mud-menu {
    z-index: 9999 !important;
}

.mud-menu-popover {
    z-index: 10000 !important;
}

.mud-popover {
    z-index: 10000 !important;
}

/* Garantir que o botão de menu seja clicável */
.turma-card .mud-icon-button {
    z-index: 10 !important;
    position: relative !important;
}

/* Evitar sobreposição de elementos */
.turma-card {
    position: relative;
    overflow: visible !important;
}

/* Garantir visibilidade do menu dropdown */
.mud-menu .mud-list {
    background: var(--amc-bg-card, #1e2a3a) !important;
    border: 1px solid var(--amc-border-color, #2d3a4d) !important;
    border-radius: 8px !important;
}

.mud-menu .mud-list-item {
    color: var(--amc-text-primary, #ffffff) !important;
}

.mud-menu .mud-list-item:hover {
    background: rgba(233, 69, 96, 0.1) !important;
}
