@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --gold-primary: #B8860B;
    /* Darker gold for better contrast on white */
    --gold-light: #DAA520;
    --gold-dark: #8B6508;
    --bg-dark: #f8f9fa;
    /* Professional off-white */
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --border-subtle: #e1e4e8;
    --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    /* Crisp text rendering */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    /* Prevent scrolling for full-screen dash */
}

/* Header Section */
header {
    display: none;
}

header h1 {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    color: transparent;
    background: linear-gradient(45deg, var(--gold-dark), var(--gold-light), var(--gold-primary));
    -webkit-background-clip: text;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: shine 3s infinite linear;
}

header p {
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--gold-primary);
    text-transform: uppercase;
}

@keyframes shine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Main Content */
main {
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 10;
}

/* Dashboard Section */
.dashboard-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 0;
    box-shadow: var(--shadow-soft);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    /* Fixed height for consistency */
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 24px;
    flex-shrink: 0;
    background: #ffffff;
}

.dashboard-header h2 {
    font-family: 'Cinzel', serif;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #15803d;
    /* Professional dark green */
    font-size: 0.85rem;
    font-weight: 600;
    background: #f0fdf4;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #bbf7d0;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: none;
    /* Removed glow/pulse for cleaner look unless active */
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    flex-grow: 1;
    /* Fills remaining height */
    overflow: hidden;
    border-radius: 10px;
    /* Removed padding-bottom hack to allow flex growth */
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Jewelry Showcase Section */
.showcase-section {
    padding: 4rem 0;
    text-align: center;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--gold-light);
}

.jewelry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.jewelry-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.jewelry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--gold-primary);
}

.card-image-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #0a2040, #041229);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-image-placeholder::after {
    content: 'GOLD';
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
    letter-spacing: 5px;
}

/* Gold shimmer effect on card hover */
.jewelry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

.jewelry-card:hover::before {
    left: 150%;
    transition: 0.7s;
}

.card-content {
    padding: 1.5rem;
    text-align: left;
}

.card-title {
    color: var(--gold-light);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-price {
    color: var(--text-light);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 2rem;
    text-align: center;
    color: #888;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    main {
        padding: 0 15px;
    }

    .dashboard-container {
        padding: 1rem;
    }
}

/* User Controls in Header */
.user-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome-msg {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.logout-btn {
    background-color: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* ... User Controls (Previous Code) ... */
.logout-btn:hover {
    background-color: #fee2e2;
    border-color: #fda4af;
    color: #ef4444;
}

/* =========================================
   Professional Login Page Styles
   ========================================= */

.login-page {
    background-color: #f0f2f5;
    background-image: radial-gradient(#e1e4e8 1px, transparent 1px);
    background-size: 20px 20px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    width: 100%;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-family: 'Cinzel', serif;
    color: var(--gold-dark);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: #f9fafb;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
}

.input-group input:focus {
    background-color: #fff;
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.input-group input::placeholder {
    color: #9ca3af;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-container input {
    margin-right: 8px;
    cursor: pointer;
}

.forgot-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
    color: var(--gold-dark);
}

#login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Lato', sans-serif;
}

#login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.25);
}

#login-btn:active {
    transform: translateY(0);
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 16px;
    min-height: 20px;
}

.copyright {
    color: #9ca3af;
    font-size: 0.75rem;
    text-align: center;
}