body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff;
    color: #333;
    margin: 0;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    color: #005f99;
}

select {
    padding: 5px 10px;
    font-size: 14px;
}

#calendarContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.month {
    width: 350px;
    height: 275px; 
    background-color: white;
    border: 2px solid #005f99;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.month h2 {
    background-color: #005f99;
    color: white;
    text-align: center;
    margin: 0;
    padding: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    width: 14.28%;
    text-align: center;
    padding: 6px;
    border: 1px solid #d0e6f7;
    cursor: pointer;
    position: relative;
}

th {
    background-color: #cce6ff;
    color: #005f99;
}

td {
    background-color: white;
}

td:hover {
    background-color: #cce6ff;
}

{box-sizing: border-box;}

/* Popup melhorado */
.form-popup {
    display: flex;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #005f99;
    z-index: 9999;
    background-color: white;
    width: 450px;
    height: 600px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.form-popup-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding-right: 10px;
}

.form-popup h3 {
    color: #005f99;
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.evento-container {
    width: 100%;
    max-height: 450px;
    overflow-y: auto;
    padding: 10px;
    text-align: center;
}

.evento {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 380px;
}

.evento h4 {
    color: #005f99;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.evento p {
    margin: 8px 0;
    text-align: left;
    font-size: 14px;
    line-height: 1.4;
}

.evento img {
    max-width: 100%;
    border-radius: 6px;
    margin: 10px auto;
    display: block;
    max-height: 150px;
    object-fit: cover;
}

.form-popup .btn {
    width: 120px;
    padding: 10px;
    margin-top: 15px;
    background-color: #005f99;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.form-popup .btn:hover {
    background-color: #004080;
}

/* Menu e outros estilos */
.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #3858D9;
    padding: 10px 20px;
    color: white;
}

.menu-left {
    display: flex;
    align-items: center;
}

.menu-left img {
    height: 70px;
    margin-right: 20px;
}

.menu-left a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    padding: 8px 12px;
}

.menu-left a:hover {
    background-color: #2C00DB;
    border-radius: 4px;
}

.menu-right button {
    margin-left: 10px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.register-btn {
    background-color: #5CB0F5;
    color: white;
    width: 130px;
}

.login-btn {
    background-color: #5CB0F5;
    color: white;
    width: 130px;
    margin-top: 5px;
}

.register-btn:hover, .login-btn:hover {
    opacity: 0.8;
}

.destaque {
    background-color: #e6f2ff !important;
}

#searchResults {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Adicione estas novas regras ao seu CSS */

/* Botão de favoritos */
.favoritos-btn {
    background-color: #FFD700;
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.favoritos-btn:hover {
    background-color: #FFC000;
}

.favoritos-btn i {
    color: #333;
}

/* Estrela nos dias favoritos */
td.favorito::after {
    content: '\f005'; /* Ícone de estrela do Font Awesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    color: #FFD700;
}
td.favorito {
    position: relative;

    /* Botão de favorito nos eventos */
.evento {
    position: relative;
}
}
/* Estilo para eventos favoritos no popup */
.evento .favorito-btn {
       background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #ccc;
    position: absolute;
    right: 15px;
    top: 15px;
    transition: color 0.2s;
}

.evento .favorito-btn:hover {
    color: #FFD700;
}

.evento .favorito-btn.ativo {
    color: #FFD700;
}

/* Botão de favoritos no menu */
.favoritos-btn {
    background-color: #FFD700;
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
}

.favoritos-btn:hover {
    background-color: #FFC000;
}

.favoritos-btn i {
    color: #333;
}

