body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    background-color: #f0f4f8;
}
/* Custom styles for glass-like effect on card */
.glassmorphism-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
/* Style for the temporary message box */
.message-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    text-align: center;
}
.message-box.show {
    opacity: 1;
}
/* Styling for the inventory management UI section */
.inventory-section-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.inventory-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.inventory-list-item:last-child {
    border-bottom: none;
}
.auth-form {
    @apply p-4 rounded-lg bg-white bg-opacity-70 backdrop-blur-sm shadow-inner mb-4;
}

/* Password toggle icon styling */
.password-input-wrapper {
    position: relative;
    width: 100%;
}
.password-input-wrapper input {
    padding-right: 4rem;
}
.password-toggle-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    font-size: 1.25rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.hint-text {
    @apply text-xs my-2 px-1;
}
.hint-text p {
    @apply mb-1 flex items-center;
}
.hint-text .fa-times {
    @apply text-red-500;
}
.hint-text .fa-check {
    @apply text-green-500;
}
/* Style for the loading spinner */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid white;
    width: 1.5rem;
    height: 1.5rem;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.5rem;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* --- Add Store Card Styles --- */

/* The card container - DESKTOP SIZE */
#addStoreCard {
    position: relative;
    width: 100px;       /* Smaller desktop width */
    height: 100px;      /* Smaller desktop height */
    background-color: #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* margin-top is no longer needed here */
    transition: transform 0.2s ease-in-out;
}

#addStoreCard:hover {
    transform: scale(1.05);
}

/* The faint background image (no changes here) */
#addStoreCard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.pexels.com/photos/264636/pexels-photo-264636.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

/* The big '+' sign - DESKTOP SIZE */
#addStoreCard .plus-sign {
    font-size: 4rem;    /* Adjusted for the smaller card */
    color: white;
    font-weight: 300;
    z-index: 2;
    line-height: 1;
    position: relative; /* Allows us to nudge the element */
    bottom: 3px;        /* Nudges it UP slightly */
    right: 1px;         /* Nudges it LEFT slightly */
}

#storeGridContainer {
    width: 100%;            /* Take up the full width of its parent */
    display: flex;          /* Arrange items in a row */
    flex-wrap: wrap;        /* Allow items to wrap to the next line */
    justify-content: flex-start; /* This aligns everything to the left! */
    gap: 1rem;              /* This creates a nice space between icons */
}

/* --- Responsive styles for mobile screens --- */
@media (max-width: 640px) {
    /* The card container - MOBILE SIZE */
    #addStoreCard {
        width: 80px;   /* Even smaller for mobile */
        height: 80px;  /* Even smaller for mobile */
    }

    /* The big '+' sign - MOBILE SIZE */
    #addStoreCard .plus-sign {
        font-size: 3rem; /* Adjusted for the mobile size */
    }
}

/* This wrapper makes the card and title act as one unit */
.store-item {
    display: flex;
    flex-direction: column; /* Stacks items vertically */
    align-items: center;    /* Centers items horizontally */
}

/* This styles the title text */
.store-title {
    margin-top: 0.5rem; /* 8px space above the title */
    font-size: 0.875rem; /* 14px font size */
    color: #4a5568;      /* A medium gray color */
    font-weight: 500;    /* Medium font weight */
}