/* ==========================
   RESET
========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: url("background.png") center center fixed;
    background-size: cover;
    color: white;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================
   TEMA VERDE E PRETO
========================== */

:root {
    --verde: #00ff88;
    --verde-escuro: #00b85c;
    --preto: #050505;
    --preto-card: rgba(0, 0, 0, 0.72);
    --borda-verde: rgba(0, 255, 136, 0.35);
    --texto-suave: #d9d9d9;
}

.dark-theme {
    color: #fff;
}

/* ==========================
   ÁREAS TRANSPARENTES
========================== */

header,
.intro,
.disciplinas,
.notas,
.calendario,
.checklist,
.avaliacao,
.contato,
footer,
main,
section {
    background: var(--preto-card);
    backdrop-filter: blur(8px);
    margin: 20px auto;
    padding: 25px;
    width: 95%;
    max-width: 1200px;
    border-radius: 15px;
    border: 1px solid var(--borda-verde);
}

/* ==========================
   TEXTOS
========================== */

h1, h2, h3, h4 {
    color: var(--verde);
    margin-bottom: 15px;
}

p {
    color: var(--texto-suave);
}

/* ==========================
   HEADER
========================== */

header {
    text-align: center;
}

header h1 {
    font-size: 2rem;
}

.banner {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

.subtitulo {
    margin-top: 15px;
    font-weight: normal;
}

/* ==========================
   CARDS
========================== */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.card {
    background: rgba(0, 255, 136, 0.08);
    border-radius: 15px;
    padding: 22px;
    transition: 0.3s;
    text-align: center;
    border: 1px solid var(--borda-verde);
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(0, 255, 136, 0.14);
}

.card h4 {
    color: var(--verde);
}

.card p {
    margin-bottom: 20px;
}

.btn-card {
    display: inline-block;
    text-decoration: none;
    background: var(--verde);
    color: #000;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
}

.btn-card:hover {
    background: var(--verde-escuro);
    color: white;
}

/* ==========================
   INPUTS
========================== */

input,
textarea,
select {
    width: 100%;
    padding: 13px;
    border-radius: 8px;
    border: 1px solid var(--borda-verde);
    margin-top: 8px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #aaa;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--verde);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================
   BOTÕES
========================== */

button {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 11px 16px;
    background: var(--verde);
    color: black;
    font-weight: bold;
    transition: 0.3s;
}

button:hover {
    background: var(--verde-escuro);
    color: white;
}

#addNoteBtn {
    margin-top: 15px;
}

/* ==========================
   NOTAS
========================== */

#noteList {
    list-style: none;
}

#noteList li {
    background: rgba(0, 255, 136, 0.08);
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--borda-verde);
}

#noteList h4 {
    color: var(--verde);
}

/* ==========================
   MODAL
========================== */

dialog {
    width: 90%;
    max-width: 600px;
    border: 1px solid var(--borda-verde);
    border-radius: 15px;
    padding: 25px;
    background: #080808;
    color: white;
}

dialog::backdrop {
    background: rgba(0,0,0,0.8);
}

/* ==========================
   CALENDÁRIO
========================== */

#calendar {
    overflow-x: auto;
}

#calendar table {
    width: 100%;
    border-collapse: collapse;
    min-width: 550px;
}

#calendar th,
#calendar td {
    border: 1px solid var(--borda-verde);
    padding: 10px;
    text-align: center;
}

.event-day {
    background: var(--verde);
    color: black;
    font-weight: bold;
}

/* ==========================
   EVENTOS
========================== */

#eventList {
    list-style: none;
    margin-top: 20px;
}

#eventList li {
    background: rgba(0, 255, 136, 0.08);
    margin-top: 10px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--borda-verde);
}

/* ==========================
   CHECKLIST
========================== */

#taskList {
    list-style: none;
    margin-top: 20px;
}

#taskList li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 136, 0.08);
    margin-top: 10px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--borda-verde);
}

#taskList input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.done span {
    text-decoration: line-through;
    opacity: 0.6;
}

/* ==========================
   FILTROS
========================== */

.filtros {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filtros input {
    flex: 1;
}

/* ==========================
   AVALIAÇÃO
========================== */

.avaliacao form {
    display: flex;
    flex-direction: column;
}

/* ==========================
   CONTATO
========================== */

.contato ul {
    margin-top: 15px;
    list-style: none;
}

.contato li {
    margin-bottom: 10px;
}

.contato a,
a {
    color: var(--verde);
}

a:hover {
    color: var(--verde-escuro);
}

/* ==========================
   FOOTER
========================== */

footer {
    text-align: center;
}

/* ==========================
   RESPONSIVO TABLET
========================== */

@media (max-width: 768px) {

    body {
        background-attachment: scroll;
    }

    header,
    .intro,
    .disciplinas,
    .notas,
    .calendario,
    .checklist,
    .avaliacao,
    .contato,
    footer,
    main,
    section {
        width: 94%;
        padding: 18px;
        margin: 15px auto;
    }

    header h1,
    h1 {
        font-size: 1.6rem;
        text-align: center;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card {
        padding: 18px;
    }

    .filtros {
        flex-direction: column;
        gap: 5px;
    }

    button,
    .btn-card {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    input,
    textarea,
    select {
        font-size: 1rem;
    }
}

/* ==========================
   RESPONSIVO CELULAR PEQUENO
========================== */

@media (max-width: 480px) {

    header,
    .intro,
    .disciplinas,
    .notas,
    .calendario,
    .checklist,
    .avaliacao,
    .contato,
    footer,
    main,
    section {
        width: 96%;
        padding: 15px;
        border-radius: 12px;
    }

    h1 {
        font-size: 1.4rem;
    }

    p,
    li,
    label,
    input,
    textarea,
    select,
    button {
        font-size: 0.95rem;
    }

    .banner {
        max-height: 220px;
    }

    .card {
        padding: 16px;
    }

    #taskList li {
        align-items: flex-start;
        flex-direction: column;
    }

    dialog {
        width: 95%;
        padding: 18px;
    }
}