* {
    box-sizing: border-box;
    font-family: "Raleway", sans-serif;
    list-style: none;
    margin: 0;
    outline: none;
    padding: 0;
}

a {
    text-decoration: none;
}

body,
html {
    height: 100%;
}

body {
    background: #dbe6ed;
    font-family: "Raleway", sans-serif;
}

.grid-bg {
    background-color: #0a0a0f;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Glow orb */
.orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;

    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    animation: pulse-orb 6s ease-in-out infinite;
}

@keyframes pulse-orb {
    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -60%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -60%) scale(1.08);
    }
}

/* Card */
.card {
    background: #558397;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    animation: slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Provider buttons */
.provider-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s,
        transform 0.1s;
    text-decoration: none;
    animation: slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.provider-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.provider-btn:active {
    transform: translateY(0);
}

.provider-btn:nth-child(1) {
    animation-delay: 0.05s;
}
.provider-btn:nth-child(2) {
    animation-delay: 0.1s;
}
.provider-btn:nth-child(3) {
    animation-delay: 0.15s;
}

/* HTMX loading state on buttons */
.provider-btn.htmx-request {
    opacity: 0.5;
    pointer-events: none;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

h1 {
    color: #fff;
    font-family: "Raleway", sans-serif;
}

h2 {
    font-family: "Raleway", sans-serif;
}

.uk-modal-dialog {
    background-color: #558397;
}

.uk-modal-dialog * {
    color: #fff;
}

.uk-button-primary {
    background-color: #655781;
}

.container {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    margin: 0 auto;
    max-width: 600px;
    width: 100%;
}

.calendar {
    background: #655781;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    perspective: 1000;
    transition: 0.9s;
    transform-style: preserve-3d;
    width: 100%;
}

/* Front - Calendar */
.front {
    transform: rotateY(0deg);
}

.current-date {
    background: #558397;
    border-bottom: 1px solid rgba(73, 114, 133, 0.6);
    display: flex;
    justify-content: space-between;
    padding: 30px 30px;
}

.current-date h1 {
    color: #fff;
    font-size: 2em;
    font-weight: 700;
}

.owner-selector {
    background: #558397;
    color: #fff;
    font-weight: 500;
}

.week-days {
    color: #fff;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    padding: 0.4em 1em;
}

.days {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.weeks {
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 0 0.4em;
    overflow-y: auto;
    height: 360px;
}

.weeks div {
    display: flex;
    font-size: 1.2em;
    font-weight: 300;
    justify-content: space-between;
    /*margin-bottom: 20px;*/
    width: 100%;
    min-height: 30px;
}

.last-month {
    opacity: 0.3;
}

.weeks span {
    text-align: center !important;
    width: 44px;
}

.weeks span.active {
    background: #558397;
    border-radius: 70%;
}

.weeks span:not(.last-month):hover {
    cursor: pointer;
    font-weight: 600;
}

.pages {
    font-size: 0.8em !important;
    justify-content: center !important;
    font-weight: 600 !important;
}

#page-totals {
    background-color: #558397;
    padding: 0.6em 0.8em;
    text-align: left;
    font-size: 1.6em;
}

.event {
    position: relative;
}

.event:after {
    content: "•";
    background: #558397;

    font-size: 1.4em;
    position: absolute;
    right: -4px;
    top: -4px;
}

/* Back - Event form */

.back {
    height: 100%;
    transform: rotateY(180deg);
}

.back input {
    background: none;
    border: none;
    border-bottom: 1px solid rgba(73, 114, 133, 0.6);
    color: #fff;
    font-size: 1.4em;
    font-weight: 300;
    padding: 4px 12px;
    width: 100%;
}

.info {
    color: #fff;
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 1.2em;
    padding: 30px 40px;
}

.info div:not(.observations) {
    margin-bottom: 40px;
}

.info span {
    font-weight: 300;
}

.info .date {
    display: flex;
    justify-content: space-between;
}

.info .date p {
    width: 50%;
}

.info .address p {
    width: 100%;
}

.actions {
    bottom: 0;
    border-top: 1px solid rgba(73, 114, 133, 0.6);
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
}

.actions button {
    background: none;
    border: 0;
    color: #fff;
    font-weight: 600;
    letter-spacing: 3px;
    margin: 0;
    padding: 30px 0;
    text-transform: uppercase;
    width: 50%;
}

.actions button:first-of-type {
    border-right: 1px solid rgba(73, 114, 133, 0.6);
}

.actions button:hover {
    background: #497285;
    cursor: pointer;
}

.actions button:active {
    background: #5889a0;
    outline: none;
}

/* Flip animation */

.flip {
    transform: rotateY(180deg);
}

.front,
.back {
    backface-visibility: hidden;
}
