/* Gemensam stil för både kalender, rullista och inputs */
#book-date,
#book-time,
#book-guests,
#book-name,
#book-email,
#book-phone {
    appearance: none;
    -webkit-appearance: none;
    background-color: #f3f2ed; /* Din beige-grå bakgrund */
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    color: #235c41;
    font-family: inherit;
}

/* Specifikt för Kalendern & Rullisten för att få ikoner på högersidan */
#book-date,
#book-time {
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.2em;
    cursor: pointer;
    padding-right: 3rem;
}

/* Rullistens pil (Grön) */
#book-time {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23235c41'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

/* Kalenderns ikon (Grön kalender-ikon) */
#book-date {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23235c41'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'%3E%3C/path%3E%3C/svg%3E");
}

/* Dölj standardikonen för kalendern i Chrome/Safari för att använda vår egen */
#book-date::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

/* Hover & Focus effekter */
#book-date:hover,
#book-time:hover {
    background-color: #ecebe4;
    transform: translateY(-1px);
}

#book-date:focus,
#book-time:focus {
    border-color: #235c41;
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(35, 92, 65, 0.1);
}

/* Animationer och Swal-styling behålls som tidigare... */
@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-6px);
    }
    75% {
        transform: translateX(6px);
    }
}
.animate-shake {
    animation: shake 0.15s ease-in-out 0s 2;
    border-color: #ef4444 !important;
}

/* 2. Skak-animation för ogiltiga datum */
@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-6px);
    }
    75% {
        transform: translateX(6px);
    }
}

.animate-shake {
    animation: shake 0.15s ease-in-out 0s 2;
    border: 2px solid #ef4444 !important;
}
/* Custom styling för SweetAlert2 */
.swal2-popup {
    border-radius: 3rem !important; /* Matchar dina formulär-hörn */
    background-color: #fdfcf8 !important; /* Ljus beige bakgrund */
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif !important;
}

.swal2-title {
    font-family: "Georgia", serif !important; /* Serif för rubriker */
    color: #235c41 !important; /* GlouGlou Grön */
    font-size: 1.8rem !important;
}

.swal2-styled.swal2-confirm {
    background-color: #235c41 !important; /* Grön knapp */
    border-radius: 1rem !important;
    padding: 12px 30px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.swal2-icon.swal2-info {
    border-color: #235c41 !important;
    color: #235c41 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border: 0.25em solid rgba(35, 92, 65, 0.2) !important;
}

.swal2-icon.swal2-success [class^="swal2-success-line"] {
    background-color: #235c41 !important;
}
.flatpickr-calendar {
    background: #fdfcf8 !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 10px 25px rgba(35, 92, 65, 0.1) !important;
    border: 1px solid rgba(35, 92, 65, 0.1) !important;
}
