:root {
    --bg-page: #f0f4f8;
    --bg-card: #ffffff;
    --text-main: #2d3748;
    --text-dim: #718096;
    --accent: #1abc9c;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    --bg-page: #1a202c;
    --bg-card: #2d3748;
    --text-main: #f7fafc;
    --text-dim: #a0aec0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    padding: 40px 20px;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.card-header {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg-page);
    padding-bottom: 10px;
}

.card-header h2 {
    font-family: 'Montserrat';
    font-size: 1.1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- HEADER --- */
.welcome-card {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-box img {
    width: 80px;
    border-radius: 10px;
}

.welcome-text h1 {
    font-family: 'Montserrat';
    font-size: 2.2rem;
}

/* --- GALLERIES --- */
.gallery-grid {
    columns: 3 180px;
    column-gap: 15px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 15px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-page);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    /* This helps keep 3D print textures looking sharp */
    image-rendering: -webkit-optimize-contrast; 
    object-fit: cover;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

/* --- SIDEBAR --- */
.email-link {
    display: block;
    background: var(--bg-page);
    padding: 15px;
    border-radius: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    border: 1px solid var(--border);
}

.email-link:hover {
    background: var(--accent);
    color: white;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: var(--bg-page);
    border: none;
    border-radius: 8px;
    color: var(--text-main);
}

.btn {
    background: var(--accent);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: var(--shadow);
    font-weight: bold;
    z-index: 100;
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 85%;
    max-height: 85%;
    border-radius: 10px;
}

@media (max-width: 900px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .welcome-card {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
    }
}