body {
    font-family: "Inter", sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    box-sizing: border-box;
}

/* General container styling */
#main-app {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 2xl;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
    margin-top: 2rem;
}

/* Login view specific styling */
#login-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 4rem);
    padding: 2rem;
    text-align: center;
}
#login-form input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
#login-form button {
    width: 100%;
    padding: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

/* Other view hidden by default */
.hidden {
    display: none !important;
}

/* Custom styles for overlays */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 90%;
    width: 400px;
    animation: fadeInScale 0.3s ease-out;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Basic print styles */
@media print {
    body > *:not(.print-area) {
        display: none;
    }
    .print-area {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
    }
    .print-area .flex.justify-end {
        display: none;
    }
}

/* Styling for Address Suggestions List in popup */
#address-suggestions-popup {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    width: 100%;
    text-align: left;
}

#address-suggestions-popup div {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #edf2f7;
    font-size: 1rem;
    color: #4a5568;
}

#address-suggestions-popup div:last-child {
    border-bottom: none;
}

#address-suggestions-popup div:hover {
    background-color: #eff6ff;
    color: #2b6cb0;
}

/* ✅ Manual address toggle button (updated) */
.manual-toggle-btn {
    background-color: #6b7280; /* gray-500 */
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem; /* rounded-xl */
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.manual-toggle-btn:hover {
    background-color: #4b5563; /* gray-600 */
    transform: scale(1.05);
}

.manual-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.5);
}

/* Hidden utility class for elements with no content */
.hidden-if-empty {
    display: none !important;
}

/* Specific styles for profile edit fields */
.profile-field-group .edit-field-input {
    width: calc(100% - 8px);
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.15s ease-in-out;
}
.profile-field-group .edit-field-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.5);
}

.profile-field-group .hidden-edit-field {
    display: none;
}

.uppercase-display {
    text-transform: uppercase;
}

/* View All List styles */
#all-customers-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding-top: 1rem;
}

.customer-list-item {
    background-color: #f8fafc;
    padding: 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.customer-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px -1px rgba(0, 0, 0, 0.15),
                0 4px 6px -2px rgba(0, 0, 0, 0.08);
}

.customer-list-item p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #4a5568;
}
.customer-list-item p strong {
    color: #2b6cb0;
}

.out-of-radius-text {
    color: #ef4444;
    font-weight: bold;
}
.within-radius-text {
    color: #22c55e;
    font-weight: bold;
}
