* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    position: relative;
}

.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-logo {
    max-width: 200px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
    margin: 0 auto;
}

.site-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

/* Esconder apenas se a imagem não carregar */
.site-logo[src=""] {
    display: none;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    margin-top: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2),
                0 8px 16px rgba(0, 0, 0, 0.1);
}

.card h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.6em;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #667eea, #764ba2) 1;
    padding-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.input-group input,
.input-group select {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1),
                0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.input-group input::placeholder {
    color: #999;
    font-weight: 400;
}

.input-group select {
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

.input-group select option {
    padding: 10px;
}

.mensagem-erro {
    color: #eb3349;
    font-size: 0.9em;
    margin-top: -10px;
    margin-bottom: 15px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(235, 51, 73, 0.1) 0%, rgba(244, 92, 67, 0.1) 100%);
    border-left: 4px solid #eb3349;
    border-radius: 8px;
    font-weight: 600;
    display: block;
    animation: slideDown 0.3s ease;
    box-shadow: 0 2px 8px rgba(235, 51, 73, 0.15);
}

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

.input-group input.error {
    border-color: #eb3349 !important;
    box-shadow: 0 0 0 3px rgba(235, 51, 73, 0.1),
                0 4px 12px rgba(235, 51, 73, 0.15) !important;
}

button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

button:active {
    transform: translateY(0) scale(0.98);
}

/* Botão de Voltar ao Início */
.btn-voltar-inicio {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-voltar-inicio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn-voltar-inicio:hover::before {
    width: 250px;
    height: 250px;
}

.btn-voltar-inicio:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-voltar-inicio:active {
    transform: translateY(0) scale(0.98);
}

.btn-voltar-inicio span,
.btn-voltar-inicio {
    position: relative;
    z-index: 1;
}

.aluno-item {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    cursor: pointer;
}

.aluno-item:hover {
    background: #e9ecef;
}

.aluno-item span {
    font-size: 1.1em;
    font-weight: 500;
}

.materia-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 251, 252, 0.98) 100%);
    padding: 28px 30px;
    margin-bottom: 24px;
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.12),
                0 3px 10px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.materia-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.materia-item::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.materia-item.clickable {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.materia-item.clickable:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(245, 247, 250, 1) 100%);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2),
                0 8px 20px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(102, 126, 234, 0.3);
}

.materia-item.clickable:hover::before {
    width: 8px;
}

.materia-item.clickable:hover::after {
    opacity: 1;
}

.feedback-card:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.05);
}

.materia-item h2 {
    margin-bottom: 18px;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 1.5em;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -0.5px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.materia-preview {
    margin-top: 20px;
    color: #4a5568;
    padding-top: 18px;
    border-top: 2px solid;
    border-image: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent) 1;
    position: relative;
    z-index: 2;
}

.materia-preview p {
    margin: 10px 0;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #4a5568;
}

.materia-preview p:first-child {
    font-size: 1.05em;
    color: #2d3748;
    font-weight: 600;
}

.click-hint {
    font-size: 0.9em;
    color: #667eea;
    font-style: italic;
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    border-radius: 25px;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.materia-item.clickable:hover .click-hint {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    transform: translateX(5px);
    border-color: rgba(102, 126, 234, 0.4);
}

.materia-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 20px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.materia-header h3 {
    color: #667eea;
    font-size: 1.2em;
    font-weight: 700;
}

.media-display {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.15em;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    min-width: 140px;
    justify-content: center;
}

.media-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.media-display:hover::before {
    left: 100%;
}

.media-display.aprovado {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 2px 4px rgba(0, 0, 0, 0.1);
}

.media-display.reprovado {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    box-shadow: 0 6px 20px rgba(235, 51, 73, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 2px 4px rgba(0, 0, 0, 0.1);
}

.materia-item.clickable:hover .media-display {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                0 3px 6px rgba(0, 0, 0, 0.15);
}

.notas-container {
    margin-top: 15px;
    position: relative;
    z-index: 10;
}

.nota-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 251, 252, 0.95) 100%);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.nota-item:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateX(5px);
    border-color: rgba(102, 126, 234, 0.3);
}

.nota-label {
    flex: 1;
    min-width: 200px;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95em;
}

.nota-item input {
    width: 140px;
    padding: 12px 14px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    color: #2d3748;
    cursor: text;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.nota-item input::placeholder {
    color: #999;
    font-weight: 400;
    font-size: 0.9em;
}

.nota-item input:hover {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
}

.nota-item input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15),
                0 4px 12px rgba(102, 126, 234, 0.25);
    transform: scale(1.03);
    background: #fff;
}

.btn-remover {
    background: #eb3349;
    padding: 6px 12px;
    font-size: 0.9em;
}

.btn-remover:hover {
    background: #c82333;
    box-shadow: 0 5px 15px rgba(235, 51, 73, 0.4);
}

.btn-adicionar-nota {
    background: #28a745;
    margin-top: 10px;
}

.btn-adicionar-nota:hover {
    background: #218838;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

.detalhes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #667eea, #764ba2, #f093fb) 1;
    position: relative;
}

.detalhes-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.detalhes-header h2 {
    margin: 0;
    border: none;
    padding: 0;
}

.btn-voltar {
    background: #6c757d;
    padding: 10px 20px;
    font-size: 0.9em;
}

.btn-voltar:hover {
    background: #5a6268;
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

.opcao-media {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 16px;
    border-left: 5px solid;
    border-image: linear-gradient(180deg, #667eea, #764ba2) 1;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15),
                0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.opcao-media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.opcao-media:hover::before {
    opacity: 1;
}

.opcao-media:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2),
                0 4px 12px rgba(0, 0, 0, 0.1);
}

.opcao-media h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.media-resultado {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.media-resultado:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.media-label {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.media-valor {
    font-size: 1.5em;
    font-weight: 700;
    color: #667eea;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
}

.media-valor.aprovado {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.media-valor.reprovado {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.soma-medias {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(240, 147, 251, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.soma-medias .media-label {
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.soma-medias .media-valor {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

footer {
    text-align: center;
    color: white;
    padding: 30px 20px;
    margin-top: 50px;
    opacity: 0.9;
    font-size: 0.95em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .input-group {
        flex-direction: column;
    }

    .materia-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nota-item {
        flex-wrap: wrap;
    }

    footer {
        font-size: 0.85em;
        padding: 25px 15px;
        margin-top: 40px;
    }
}

/* Card de Feedback */
.feedback-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 251, 252, 0.98) 100%);
    border: 2px dashed rgba(102, 126, 234, 0.3);
    position: relative;
    cursor: default;
}

.feedback-card::before {
    background: linear-gradient(180deg, #f093fb 0%, #667eea 50%, #764ba2 100%);
    pointer-events: none;
    z-index: 0;
}

.feedback-card::after {
    pointer-events: none;
    z-index: 0;
}

.feedback-header {
    position: relative;
    z-index: 2;
}

.feedback-header h2 {
    background: linear-gradient(135deg, #f093fb 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.feedback-description {
    color: #4a5568;
    font-size: 1em;
    margin-bottom: 15px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.feedback-note {
    color: #856404;
    font-size: 0.9em;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    border-radius: 6px;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.feedback-card form {
    position: relative;
    z-index: 10;
}

.feedback-card textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 1em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    resize: vertical;
    min-height: 120px;
    position: relative;
    z-index: 20;
    pointer-events: auto;
    cursor: text;
}

.feedback-card textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1),
                0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.feedback-card textarea::placeholder {
    color: #999;
    font-weight: 400;
}

.btn-enviar-feedback {
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, #f093fb 0%, #667eea 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-top: 10px;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.btn-enviar-feedback:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-enviar-feedback:active {
    transform: translateY(0) scale(0.98);
}

.feedback-mensagem {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95em;
    animation: slideDown 0.3s ease;
    position: relative;
    z-index: 10;
}

.feedback-mensagem.sucesso {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(56, 239, 125, 0.1) 100%);
    border-left: 4px solid #11998e;
    color: #11998e;
}

.feedback-mensagem.erro {
    background: linear-gradient(135deg, rgba(235, 51, 73, 0.1) 0%, rgba(244, 92, 67, 0.1) 100%);
    border-left: 4px solid #eb3349;
    color: #eb3349;
}

/* ==================== ESTILOS DO FÓRUM ==================== */

.forum-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 251, 252, 0.98) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.forum-header {
    margin-bottom: 25px;
}

.forum-header h2 {
    background: linear-gradient(135deg, #f093fb 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.forum-description {
    color: #4a5568;
    font-size: 1em;
    line-height: 1.6;
}

/* Abas do Fórum */
.forum-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    padding-bottom: 10px;
}

.forum-tab {
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667eea;
}

.forum-tab:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.forum-tab.active {
    background: linear-gradient(135deg, #f093fb 0%, #667eea 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Área de Mensagens */
.forum-mensagens {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 25px;
    padding-right: 10px;
}

.forum-mensagens::-webkit-scrollbar {
    width: 8px;
}

.forum-mensagens::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

.forum-mensagens::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f093fb 0%, #667eea 100%);
    border-radius: 10px;
}

.forum-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 1.1em;
}

.forum-empty p {
    margin: 10px 0;
}

.forum-loading {
    text-align: center;
    padding: 40px 20px;
    color: #667eea;
    font-size: 1.1em;
    font-weight: 600;
}

/* Item de Mensagem */
.forum-mensagem-item {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.forum-mensagem-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.forum-mensagem-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.forum-mensagem-categoria {
    font-weight: 600;
    color: #667eea;
    font-size: 0.95em;
}

.forum-mensagem-data {
    color: #999;
    font-size: 0.85em;
}

.forum-mensagem-autor {
    margin-bottom: 10px;
    color: #4a5568;
    font-size: 0.95em;
}

.forum-mensagem-autor strong {
    color: #667eea;
}

.forum-ra {
    color: #999;
    font-size: 0.9em;
}

.forum-mensagem-texto {
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Formulário do Fórum */
.forum-form-container {
    background: rgba(102, 126, 234, 0.05);
    border: 2px dashed rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
}

.forum-form-container h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.forum-form-container textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 1em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    resize: vertical;
    min-height: 100px;
}

.forum-form-container textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1),
                0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.btn-enviar-forum {
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, #f093fb 0%, #667eea 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-top: 10px;
}

.btn-enviar-forum:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-enviar-forum:active {
    transform: translateY(0) scale(0.98);
}

.forum-mensagem-status {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95em;
    animation: slideDown 0.3s ease;
}

.forum-mensagem-status.sucesso {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(56, 239, 125, 0.1) 100%);
    border-left: 4px solid #11998e;
    color: #11998e;
}

.forum-mensagem-status.erro {
    background: linear-gradient(135deg, rgba(235, 51, 73, 0.1) 0%, rgba(244, 92, 67, 0.1) 100%);
    border-left: 4px solid #eb3349;
    color: #eb3349;
}

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

