* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* ===== MENU NAVBAR ===== */
.navbar {
    background: #1a1a2e;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.menu-container {
    position: relative;
}

.menu-toggle {
    background: #e94560;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

.menu-toggle:hover {
    background: #d63854;
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 240px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 9999;
    list-style: none;
    margin-top: 0.5rem;
}

.menu-dropdown.show {
    display: block;
}

.menu-dropdown li {
    border-bottom: 1px solid #f0f0f0;
}

.menu-dropdown li:last-child {
    border-bottom: none;
}

.menu-dropdown li a {
    display: block;
    padding: 0.9rem 1.2rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.menu-dropdown li a:hover {
    background: #f0f0f0;
    padding-left: 1.5rem;
    color: #e94560;
}

/* ===== CONTAINER E CARDS ===== */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 5%;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

h1, h2, h3, h4 {
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

/* ===== FORMULÁRIOS ===== */
input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #e94560;
}

button, .btn {
    background: #e94560;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

button:hover, .btn:hover {
    background: #d63854;
}

.btn-cinza {
    background: #6c757d;
}

.btn-cinza:hover {
    background: #5a6268;
}

.btn-verde {
    background: #28a745;
}

.btn-verde:hover {
    background: #218838;
}

/* ===== MENSAGENS ===== */
.sucesso {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid #28a745;
}

.erro {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid #dc3545;
}

/* ===== TIPOS DE CURSO ===== */
.tipo {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
}

.tipo-gratuito {
    background: #d4edda;
    color: #155724;
}

.tipo-pago {
    background: #f8d7da;
    color: #721c24;
}

/* ===== GRADE DE CURSOS ===== */
.grade-cursos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.card-curso {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
}

.card-curso:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-curso img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-curso .info {
    padding: 1.2rem;
}

.card-curso h3 {
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* ===== TABELAS ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.9rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    font-weight: bold;
    color: #1a1a2e;
}

tr:hover {
    background: #f9f9f9;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .grade-cursos {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.5rem;
    }

    h1 { font-size: 1.5rem; }
}
