@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Rubik', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #2f3136;
    color: white;
}

body.light-mode {
    background-color: #f5f5f5;
    color: black;
}

#lista-cursos, #lista-professores {
    text-transform: uppercase;
}

/* ================= NAVBAR =================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 80px;
    padding: 0 40px;
    background-color: #2f3136;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .navbar {
    background-color: #e6e6e6;
    border-color: rgba(0, 0, 0, 0.05);
}

.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.logotipo {
    width: 151px;
}

.theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

body.light-mode .theme-toggle {
    color: black;
}

.theme-toggle:hover {
    color: #ff4500;
}

/* ================= CABEÇALHO ================= */
.sectionCenter {
    background-image: url('../images/background.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sectionCenter h1 {
    color: white;
    font-weight: 700;
}

body.light-mode .sectionCenter h1 {
    color: black;
}

.sectionCenter h2 {
    color: white;
    font-weight: 300;
    font-size: 18px;
}

body.light-mode .sectionCenter h2 {
    color: black;
}

/* ================= CONTAINER ================= */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.section h2 {
    color: white;
    font-weight: 400;
    font-size: 17px;
}

body.light-mode .section h2 {
    color: black;
}

/* ================= BOTÕES ================= */
.btn {
    padding: 10px 20px;
    margin: 5px 0;
    background-color: #ff2800;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: rgba(255, 38, 0, 0.5);
}

.displayButtons {
    display: flex;
    flex-direction: column;
}

.buttonReturn {
    background: none;
    color: white;
    border: none;
    font-size: 15px;
    cursor: pointer;
}

body.light-mode .buttonReturn {
    color: black;
}

.buttonReturn:hover {
    text-decoration: underline;
}

/* ================= INPUT FILTRO ================= */
#filtro-input-curso,
#filtro-input-professores,
#filtro-input-laboratorio,
#filtro-detalhes-laboratorio {
    margin-bottom: 10px;
    background-color: rgba(77, 79, 83, 0.5);
    border: none;
    width: 100%;
    padding: 12px 10px;
    border-radius: 3px;
    outline: none;
    color: white;
}

body.light-mode #filtro-input,
body.light-mode #filtro-input-laboratorio {
    background-color: #d9d9d9;
    color: black;
}

/* ================= LISTAS ================= */
ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

li {
    padding: 10px 20px;
    background-color: #232428;
    color: white;
    border-radius: 5px;
    cursor: default;
    margin-bottom: 10px;
}

li::marker {
    content: '';
}

body.light-mode li {
    background-color: #e0e0e0;
    color: black;
}

#lista-opcoes li,
#lista-opcoes-laboratorio li {
    text-transform: uppercase;
}

.descricaoDiv {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

body.light-mode .descricaoDiv {
    color: rgba(0, 0, 0, 0.7);
}

/* ================= LOADING ================= */
#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(47, 49, 54, 0.9);
    padding: 40px;
    border-radius: 10px;
    flex-direction: column; /* ADICIONADO para empilhar img + texto */
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#loading img {
    width: 64px;
    height: 64px;
    margin-bottom: 10px; /* ADICIONADO para afastar da descrição */
}

#loading p {
    color: #fdfdfd; /* Laranja para combinar com o spinner */
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

body.light-mode #loading {
    background-color: rgba(245, 245, 245, 0.9);
}

body.light-mode #loading p {
    color: #ff8c00; /* Laranja escuro no modo claro */
}

.container, .sectionCenter {
    display: none;
}

body.loaded .container,
body.loaded .sectionCenter {
    display: block;
}

@keyframes rotation {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ================= OUTROS ================= */
.headeDisplay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
}

.hidden {
    display: none !important;
}

.cancelado,
.cancelado * {
    background-color: #ff0909ea !important;
    color: white !important;
    font-weight: bold !important;
}
