﻿body {
    margin: 0;
    padding: 0;
    font-family: 'Cormorant Garamond', serif;
    background: radial-gradient(circle at top, #2a1e3f, #1a1123);
    color: #e8ddff;
}

/* Painel principal */
.painel-admin {
    padding: 60px 20px;
}

.container-admin {
    max-width: 900px;
    margin: auto;
    background-color: rgba(30, 22, 50, 0.9);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 0 25px rgba(160, 130, 255, 0.3);
    backdrop-filter: blur(6px);
}

    .container-admin h1 {
        text-align: center;
        font-size: 2.5em;
        color: #d5bfff;
        margin-bottom: 20px;
        text-shadow: 0 0 5px #6a49c2;
    }

    .container-admin p {
        text-align: center;
        font-size: 1.2em;
        margin-bottom: 40px;
        color: #cbbbee;
    }



/* Grid de cards responsivo */
.status-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.status-card {
    background: #42027d;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0,0,0,0.05);
    font-size: 15px;
    transition: background 0.2s ease;
    text-align: center;
    word-break: break-word;
}

    .status-card:hover {
        background: #73027d;
    }

.status-admin-grid a.status-card {
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .status-admin-grid a.status-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 10px rgba(0,0,0,0.15);
    }

/* Menu lateral */
.admin-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.menu-admin {
    width: 230px;
    min-height: 100vh;
    background-color: #1c1c2e;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
}

    .menu-admin h3 {
        margin-bottom: 20px;
        font-size: 20px;
        border-bottom: 1px solid #444;
        padding-bottom: 10px;
    }

    .menu-admin ul {
        list-style: none;
        padding: 0;
    }

    .menu-admin li {
        margin-bottom: 15px;
    }

    .menu-admin a {
        text-decoration: none;
        color: #ddd;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .menu-admin a:hover {
            color: #fff;
            background: #333;
            padding: 6px;
            border-radius: 5px;
        }

/* Responsivo para celular */
@media screen and (max-width: 768px) {
    .menu-admin {
        width: 100%;
        position: relative;
    }

    .painel-admin {
        width: 100%;
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .container-admin {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        box-sizing: border-box;
        overflow-x: hidden;
    }


    .status-admin-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }


    .status-card {
        font-size: 14px;
        padding: 12px;
    }

    .painel-admin {
        padding: 15px;
    }
}

/* Botões e elementos diversos */
.botao-magico {
    display: inline-block;
    background: linear-gradient(135deg, #8e44ad, #5e1782);
    color: #fff;
    padding: 10px 18px;
    font-size: 15px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 0 8px rgba(153, 0, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .botao-magico:hover {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 0 12px rgba(153, 0, 255, 0.6);
        background: linear-gradient(135deg, #a95ad5, #6e1b96);
    }

/* Calendário */
.calendario-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1c1c2e;
    padding: 10px;
    color: #fff;
    font-size: 16px;
    border-radius: 8px;
    margin: 20px 0 10px;
}

.calendario-estrutura {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.calendario-semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #2b2b45;
    color: #eee;
    text-align: center;
    padding: 8px 0;
    font-weight: bold;
}

.calendario-dias {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    background: #2a2a40;
    padding: 10px;
}

.dia {
    background: #1f1f33;
    color: #fff;
    border-radius: 6px;
    padding: 8px;
    min-height: 85px;
    font-size: 13px;
    position: relative;
}

    .dia.vazio {
        background: transparent;
    }

    .dia.aniversario {
        background: linear-gradient(to bottom right, #6a00a5, #3b005d);
        box-shadow: 0 0 6px rgba(153,0,255,0.5);
    }

    .dia.evento {
        border: 2px solid #00c8ff;
    }

.marcacao {
    font-size: 11px;
    margin-top: 6px;
    line-height: 1.2;
    word-break: break-word;
}

/* Modal do calendário */
.modal-calendario {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-conteudo {
    background: #2c2c3c;
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 15px rgba(153,0,255,0.4);
    animation: fadeIn 0.4s ease;
}

.modal-fechar {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Formulário novo evento */
form#formNovoEvento {
    margin-top: 20px;
}

    form#formNovoEvento input,
    form#formNovoEvento select,
    form#formNovoEvento textarea {
        width: 80%;
        padding: 8px;
        margin-bottom: 10px;
        border-radius: 6px;
        border: none;
    }

    form#formNovoEvento button {
        background: #6a00a5;
        color: #fff;
        border: none;
        padding: 10px 18px;
        border-radius: 30px;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

        form#formNovoEvento button:hover {
            transform: scale(1.05);
        }

    form#formNovoEvento select {
        background: #2f2f3f;
        color: #fff;
    }

.evento-card {
    background: #2b2b45;
    color: #fff;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 0 6px rgba(153, 0, 255, 0.3);
    word-break: break-word;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

    .evento-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(153, 0, 255, 0.4);
    }

    .evento-card.ritual {
        border-left: 5px solid #9b59b6;
    }

    .evento-card.consulta {
        border-left: 5px solid #3498db;
    }

    .evento-card.festa {
        border-left: 5px solid #f1c40f;
    }

    .evento-card.outro {
        border-left: 5px solid #aaa;
    }

    /* Botões dentro dos cards */
    .evento-card button {
        background-color: #6a00a5;
        color: #fff;
        border: none;
        padding: 6px 12px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        margin-right: 8px;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

        .evento-card button:hover {
            background-color: #8e44ad;
            transform: scale(1.05);
        }

/* Filtro seletor */
#filtroEventos {
    margin-bottom: 20px;
    text-align: right;
}

    #filtroEventos select {
        padding: 8px;
        font-size: 14px;
        border-radius: 6px;
        background-color: #2f2f3f;
        color: #fff;
        border: none;
    }

/* Responsividade extra */
@media screen and (max-width: 480px) {
    .evento-card {
        padding: 12px;
        font-size: 14px;
    }

        .evento-card button {
            padding: 6px 10px;
            font-size: 13px;
            margin-top: 8px;
        }

    #filtroEventos {
        text-align: center;
    }

        #filtroEventos select {
            width: 100%;
        }
}

.status-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.status-card {
    background: #42027d;
    padding: 12px;
    font-size: 14px;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
    word-break: break-word;
    text-align: center;
    transition: transform 0.2s ease;
}
