﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast Animation Styles */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.animate-slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

.animate-slide-out-right {
    animation: slideOutRight 0.3s ease-in;
}

/* Responsive toast positioning */
@media (max-width: 640px) {
    #toast-notification {
        right: 1rem !important;
        left: 1rem !important;
        top: 1rem !important;
    }
}

input[type="radio"]:checked + label {
    border-color: #14b8a6;
    background-color: #f0fdfa;
}

    input[type="radio"]:checked + label i {
        color: #14b8a6 !important;
    }

/* Custom modal styles - Responsive */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

    .modal-content h3 {
        font-size: 1.125rem;
        font-weight: 600;
        margin-bottom: 0.875rem;
    }

    .modal-content p {
        margin-bottom: 1.25rem;
        color: #4a5568;
        font-size: 0.875rem;
    }

    .modal-content button {
        background-color: #14b8a6;
        color: white;
        padding: 0.625rem 1.25rem;
        border-radius: 0.5rem;
        font-weight: 500;
        transition: background-color 0.2s;
        font-size: 0.875rem;
    }

        .modal-content button:hover {
            background-color: #0d9488;
        }

/* Loading overlay */
#locationLoadingOverlay.hidden {
    display: none;
    opacity: 0;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid teal;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive breakpoints */
@media (min-width: 640px) {
    .modal-content {
        padding: 2rem;
    }

        .modal-content h3 {
            font-size: 1.25rem;
            margin-bottom: 1rem;
        }

        .modal-content p {
            margin-bottom: 1.5rem;
            font-size: 1rem;
        }

        .modal-content button {
            padding: 0.75rem 1.5rem;
            font-size: 1rem;
        }

    .loader {
        border: 8px solid #f3f3f3;
        border-top: 8px solid teal;
        width: 100px;
        height: 100px;
    }
}

/* Touch-friendly tap targets for mobile */
@media (max-width: 639px) {
    button,
    a,
    input[type="checkbox"] {
        min-height: 30px;
        min-width: 44px;
    }

    /* Ensure buttons have adequate spacing */
    button {
        padding: 0.625rem 1rem;
    }
}

/* Improved focus states for accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
input,
textarea,
button,
a {
    transition: all 0.2s ease-in-out;
}

/* Prevent horizontal scroll on small screens */
body {
    overflow-x: hidden;
}

/* Better text wrapping for small screens */
@media (max-width: 639px) {
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}
