body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #F4F6F8; /* Light, cool grey-blue */
    color: #2c3e50;
}

header {
    background-image: url('asset_name.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(44, 62, 80, 0.2);
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
}

header h1 {
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 2.8rem;
    font-weight: 700;
    /* Hide text visually, but keep for screen readers and SEO */
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

header p {
    margin: 0.5rem 0 1rem;
    font-size: 1.1rem;
    font-weight: 300;
    color: #e5d1ff; /* Soft lavender */
}

#auth-nav {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

#auth-nav a, #auth-nav button {
    color: #e5d1ff;
    text-decoration: none;
    font-size: 1rem;
    background-color: transparent;
    border: 1px solid #e5d1ff;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

#auth-nav a:hover, #auth-nav button:hover {
    background-color: #e5d1ff;
    color: #34495e;
}

#main-nav {
    padding: 0.5rem 0;
    background-color: rgba(44, 62, 80, 0.3); /* Subtle dark background for contrast */
    border-top: 1px solid rgba(229, 209, 255, 0.2);
    border-bottom: none;
    margin-bottom: 0;
    backdrop-filter: blur(4px);
}

#main-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.1rem;
    transition: color 0.3s;
}

#main-nav a:hover {
    color: #e5d1ff;
}

main {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

#upload-section, #gallery-section, .static-page-section {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(52, 73, 94, 0.1);
}

#login-section {
    max-width: 450px;
    margin: 2rem auto;
    background: #ffffffcc; /* semi-transparent white */
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(52, 73, 94, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-message {
    color: #c0392b;
    background-color: #fbeae8;
    border: 1px solid #e74c3c;
    padding: 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    font-family: 'Playfair Display', serif;
    color: #34495e;
    border-bottom: 2px solid #e0e6eb;
    padding-bottom: 0.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.static-page-section p {
    margin-bottom: 1rem;
    max-width: 800px;
}

.static-page-section p a {
    color: #9b59b6;
    text-decoration: none;
    font-weight: bold;
}

.static-page-section p a:hover {
    text-decoration: underline;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    background-color: #f8f9fa;
    color: #2c3e50;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
}

.form-divider {
    border: 0;
    height: 1px;
    background-color: #e0e6eb;
    margin: 2rem 0;
}

#add-option-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    transition: background-color 0.3s;
}

#add-option-btn:hover {
    background-color: #2ecc71;
}

.custom-option-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-option-inputs {
    display: flex;
    flex-grow: 1;
    gap: 0.5rem;
}

.remove-option-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.remove-option-btn:hover {
    background: #c0392b;
}

button[type="submit"] {
    display: inline-block;
    background: #34495e;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
    background: #4a627a; /* A slightly lighter slate blue */
    transform: translateY(-2px);
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.jewellery-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(52, 73, 94, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.jewellery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52, 73, 94, 0.15);
}

.jewellery-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-bottom: 1px solid #e0e6eb;
}

.card-content {
    padding: 1rem 1.25rem;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin: 0 0 0.5rem 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2c3e50;
}

.card-content p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    color: #555;
    flex-grow: 1; /* Pushes price to the bottom */
}

.card-details {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    font-size: 0.85rem;
    color: #34495e;
}

.card-details li {
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.card-details strong {
    color: #2c3e50;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid #e0e6eb;
}

.card-price {
    font-weight: bold;
    font-size: 1.4rem;
    color: #9b59b6; /* Amethyst Purple */
}

.delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.delete-btn:hover {
    background: #c0392b;
}

.hidden {
    display: none !important;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #e5d1ff;
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: 3rem;
    border-top: 4px solid #9b59b6;
}

.social-icons {
    margin-bottom: 1.25rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.6rem;
    margin: 0 1rem;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.social-icons a:hover {
    color: #e5d1ff;
    transform: translateY(-3px);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #bdc3c7;
}