/* Reset básico e estilos globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif; /* Fonte placeholder, ajustar conforme identidade visual */
}

body {
    background-color: #f4f7f6; /* Cor de fundo clara, ajustar */
    color: #333; /* Cor de texto principal */
}

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

/* Estilos para Login/Cadastro (exemplo inicial) */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-container h1 {
    margin-bottom: 25px;
    color: #005f73; /* Azul escuro, ajustar */
}

.auth-container label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-weight: bold;
    color: #0a9396; /* Azul/Verde, ajustar */
}

.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.auth-container button {
    width: 100%;
    padding: 12px;
    background-color: #ee9b00; /* Laranja/Amarelo, ajustar */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.auth-container button:hover {
    background-color: #ca6702; /* Laranja mais escuro, ajustar */
}

.auth-container .links {
    margin-top: 20px;
}

.auth-container .links a {
    color: #0a9396; /* Azul/Verde, ajustar */
    text-decoration: none;
    margin: 0 10px;
}

.auth-container .links a:hover {
    text-decoration: underline;
}

/* Estilos Dashboard (placeholder) */
header {
    background-color: #005f73; /* Azul escuro */
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8em;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline-block;
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

main {
    display: flex;
}

.sidebar {
    width: 250px;
    background-color: #e9ecef; /* Cinza claro */
    padding: 20px;
    min-height: calc(100vh - 70px); /* Altura total menos header */
}

.sidebar h2 {
    margin-bottom: 20px;
    color: #005f73;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.sidebar ul li a:hover {
    color: #ee9b00;
}

.content {
    flex-grow: 1;
    padding: 30px;
}

.content h2 {
    margin-bottom: 20px;
    color: #005f73;
}

/* Adicionar mais estilos conforme necessário */




/* --- Media Queries for Mobile Responsiveness --- */

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    /* Auth screens adjustments */
    .auth-container {
        margin: 20px auto;
        padding: 20px;
        width: 90%;
    }

    /* Header adjustments */
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    header h1 {
        margin-bottom: 10px;
    }

    header nav ul {
        padding-left: 0; /* Remove default padding */
        width: 100%;
        text-align: center;
    }

    header nav ul li {
        display: block; /* Stack navigation items */
        margin: 10px 0;
    }

    /* Main layout adjustments */
    main.container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        padding-bottom: 10px; /* Add some padding at the bottom */
        border-bottom: 1px solid #ccc; /* Separator */
        margin-bottom: 20px;
    }

    .sidebar h2 {
        text-align: center;
    }

    .sidebar ul {
        display: flex; /* Horizontal scroll or wrap */
        flex-wrap: wrap; /* Wrap items */
        justify-content: center; /* Center items */
        gap: 10px; /* Spacing between items */
    }

    .sidebar ul li {
        margin-bottom: 0; /* Remove bottom margin */
    }

    .sidebar ul li a {
        padding: 8px 12px; /* Add padding for better touch */
        border: 1px solid #ccc;
        border-radius: 4px;
        background-color: #fff;
    }

    .content {
        padding: 15px;
    }

    /* Course list adjustments */
    .course-card img,
    .course-card-explore img {
        float: none; /* Remove float */
        display: block; /* Center image */
        margin: 0 auto 10px auto; /* Center and add bottom margin */
        max-width: 150px; /* Limit image size */
    }
    .course-card div,
    .course-card-explore div {
        clear: none; /* Remove clear if float is removed */
    }
    .course-card a,
    .course-card-explore a {
        display: block; /* Make button full width */
        text-align: center;
    }

    /* Explore courses grid */
    .course-grid {
        grid-template-columns: 1fr; /* Single column grid */
    }

    /* Ranking table adjustments */
    .ranking-table table,
    .ranking-table thead,
    .ranking-table tbody,
    .ranking-table th,
    .ranking-table td,
    .ranking-table tr {
        display: block; /* Make table elements block level */
    }

    .ranking-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px; /* Hide table headers */
    }

    .ranking-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }

     .ranking-table tr:nth-child(odd) {
        background-color: #f9f9f9; /* Zebra striping for rows */
    }

    .ranking-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%; /* Space for label */
        text-align: right; /* Align content to the right */
    }

    .ranking-table td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left; /* Align label to the left */
        font-weight: bold;
    }

    /* Add labels for table cells */
    .ranking-table td:nth-of-type(1):before { content: "Posição"; }
    .ranking-table td:nth-of-type(2):before { content: "Usuário"; }
    .ranking-table td:nth-of-type(3):before { content: "Pontuação"; }
    .ranking-table td:nth-of-type(4):before { content: "Nível/Badges"; }

    /* Profile adjustments */
    .profile-details {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
         grid-template-columns: 1fr; /* Single column */
    }

}

