/*----------- Celular ---------------*/

@media (max-width:550px) {



    body {
        margin: 0;
        padding: 0;
        font-family: Constantia, "Constantia", serif;
        background-color: #656662;
        color: #333;
        background-image: url("../assets/background/Copinho\ Rosa.jpeg");
        background-size: cover;
        background-attachment: scroll;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 100dvh;
    }

    .cardblue {
        cursor: pointer;
        width: 45%;

        margin-left: 5%;
        margin-bottom: 5%;
        text-align: center;
        border-radius: 6px;
        box-shadow: 2px 2px 5px lightgray;
        padding: 10px;

    }


    .logo-menu {
        margin-top: 13px;
        width: 120px;
        height: 40px;
    }

    .t1 {
        font-size: 15px;
        color: #0e1b41;
        text-align: center;
        margin-top: 8px;

    }

    .t2 {
        font-size: 15px;
        color: #0e1b41;
        text-align: center;
        margin-top: 8px;
        margin-bottom: 8px;
    }

}


/*----------- Computador ---------------*/

@media (min-width:551px) {



    body {
        margin: 0;
        padding: 0;
        font-family: Constantia, "Constantia", serif;
        background-color: #656662;
        color: #333;
        background-image: url("../assets/background/Copinho\ Rosa.jpeg");
        background-size: cover;
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
    }

    .cardblue {
        cursor: pointer;
        max-width: 97px;
        min-width: 97px;


        margin-left: 3%;
        margin-bottom: 3%;
        text-align: center;
        border-radius: 6px;
        box-shadow: 3px 3px 8px lightgray;
        padding: 10px;

    }

    .h2 {
        margin-bottom: 10px;
    }

    .logo-menu {
        width: 190px;
        height: 50px;
        margin-top: 16px;
        margin-bottom: auto;
    }

    .col-5 {
        width: 25%;
    }

    .t1 {
        font-size: 15px;
        color: #0e1b41;
        text-align: center;
        margin-top: 8px;

    }

    .t2 {
        font-size: 15px;
        color: #0e1b41;
        text-align: center;
        margin-top: 8px;
        margin-bottom: 8px;
    }

}

.agenda-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.agenda-section {
    width: calc(100% + 24px);
    max-width: none;
    margin: 32px -12px 0;
}

.agenda-title {
    color: #fff;
    text-align: left;
    margin: 0;
}

.agenda-subtitle {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.agenda-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.agenda-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.agenda-view-btn {
    background: #ffffff;
    color: #0e1b41;
    border: 1px solid #ffffff;
}

.agenda-view-btn:hover {
    background: #eef3ff;
    color: #0e1b41;
    border-color: #eef3ff;
}

.agenda-view-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

.agenda-view-btn.active {
    background: #0e1b41;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.agenda-month-label {
    min-width: 160px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.agenda-calendar {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(14, 27, 65, 0.18);
}

.agenda-view-btn,
.agenda-controls .btn,
.agenda-event {
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    text-decoration: none;
}

.agenda-weekdays,
.agenda-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.agenda-weekdays {
    margin-bottom: 10px;
}

.agenda-weekdays span {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #54607c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.agenda-day {
    min-height: 150px;
    min-width: 0;
    padding: 10px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
    border: 1px solid #dbe1f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.agenda-day:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(14, 27, 65, 0.12);
}

.agenda-day:focus-visible {
    outline: 2px solid #0e1b41;
    outline-offset: 2px;
}

.agenda-day-empty {
    background: rgba(234, 237, 245, 0.45);
    border-style: dashed;
}

.agenda-day-today {
    border-color: #0e1b41;
    box-shadow: inset 0 0 0 1px rgba(14, 27, 65, 0.08);
}

.agenda-day-number {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0e1b41;
}

.agenda-day-mobile-label {
    display: none;
    font-size: 0.8rem;
    color: #65708a;
    font-weight: 700;
    margin-top: -6px;
}

.agenda-day-date {
    font-size: 0.78rem;
    color: #65708a;
    margin-top: -6px;
}

.agenda-day-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agenda-day-empty-text {
    color: #8b93a8;
    font-size: 0.86rem;
}

.agenda-event {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #0e1b41 0%, #1f4d8f 100%);
    color: #fff;
    min-width: 0;
    padding: 9px 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    -webkit-text-fill-color: currentColor;
}

.agenda-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(14, 27, 65, 0.22);
}

.agenda-event-highlight {
    background: linear-gradient(135deg, #c78c39 0%, #f1cb6d 100%);
    color: #1e1a12;
    box-shadow: 0 0 0 2px rgba(199, 140, 57, 0.22), 0 12px 20px rgba(199, 140, 57, 0.28);
}

.agenda-event-highlight .agenda-event-time {
    color: #5a3b06;
}

.agenda-event-completed {
    background: linear-gradient(135deg, #2f8f5b 0%, #57bf82 100%);
    color: #f7fff9;
}

.agenda-event-completed .agenda-event-time {
    color: #d6ffea;
}

.agenda-event-completed.agenda-event-highlight {
    background: linear-gradient(135deg, #2f8f5b 0%, #57bf82 100%);
    color: #f7fff9;
    box-shadow: 0 0 0 2px rgba(47, 143, 91, 0.22), 0 12px 20px rgba(47, 143, 91, 0.28);
}

.agenda-event-completed.agenda-event-highlight .agenda-event-time {
    color: #d6ffea;
}

.agenda-event-shopping {
    background: linear-gradient(135deg, #7a4b14 0%, #c78c39 100%);
    color: #fff8ef;
    box-shadow: 0 0 0 2px rgba(199, 140, 57, 0.18), 0 12px 20px rgba(122, 75, 20, 0.22);
}

.agenda-event-shopping .agenda-event-time {
    color: #ffe3b8;
}

.agenda-event-shopping.agenda-event-highlight {
    background: linear-gradient(135deg, #7a4b14 0%, #c78c39 100%);
    color: #fff8ef;
}

.agenda-event-shopping.agenda-event-highlight .agenda-event-time {
    color: #ffe3b8;
}

.agenda-event-cap {
    background: linear-gradient(135deg, #8a1f1f 0%, #d94b4b 100%);
    color: #fff3f3;
    box-shadow: 0 0 0 2px rgba(217, 75, 75, 0.18), 0 12px 20px rgba(138, 31, 31, 0.22);
}

.agenda-event-cap .agenda-event-time {
    color: #ffd2d2;
}

.agenda-event-cap.agenda-event-highlight {
    background: linear-gradient(135deg, #8a1f1f 0%, #d94b4b 100%);
    color: #fff3f3;
}

.agenda-event-cap.agenda-event-highlight .agenda-event-time {
    color: #ffd2d2;
}

.agenda-event-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: #d8e2ff;
    -webkit-text-fill-color: currentColor;
}

.agenda-event-subject {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    -webkit-text-fill-color: currentColor;
}

.agenda-event-place {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.2;
}

.agenda-grid-week {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

@media (max-width: 767px) {
    body {
        background-attachment: scroll;
        min-height: 100dvh;
    }

    .agenda-section {
        width: 100%;
        margin: 24px 0 0;
    }

    .agenda-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .agenda-title,
    .agenda-subtitle {
        text-align: center;
    }

    .agenda-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        align-items: stretch;
    }

    .agenda-month-label {
        min-width: 0;
        grid-column: 1 / -1;
        order: 2;
        padding: 2px 0;
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .agenda-calendar {
        padding: 12px;
        background: #f7f9fc;
    }

    #agenda-new {
        grid-column: 1 / -1;
    }

    #agenda-prev-month,
    #agenda-next-month,
    #agenda-new,
    .agenda-view-btn {
        width: 100%;
        justify-content: center;
        min-height: 42px;
    }

    .agenda-weekdays {
        display: none;
    }

    .agenda-grid,
    .agenda-grid-week {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .agenda-day {
        min-height: 0;
        padding: 10px;
        gap: 6px;
        background: #ffffff;
        box-shadow: 0 10px 22px rgba(14, 27, 65, 0.08);
    }

    .agenda-day-empty {
        display: none;
    }

    .agenda-day-number {
        display: none;
    }

    .agenda-day-mobile-label {
        display: block;
        color: #44516e;
        margin-top: 0;
    }

    .agenda-weekdays span {
        font-size: 0.7rem;
    }

    .agenda-event {
        padding: 8px 9px;
        width: 100%;
        border-radius: 14px;
        background: #0e1b41;
        color: #ffffff;
    }

    .agenda-event-subject {
        font-size: 0.82rem;
    }

    .agenda-event-time,
    .agenda-day-empty-text {
        font-size: 0.74rem;
    }

    .agenda-day-empty-text {
        color: #6d7892;
    }
}