:root {
    --bg-color: #ffffff;
    --panel-bg: #f8fafc;
    --primary: #005387; 
    --accent: #006bb3;
    --text-main: #334155;
    --text-muted: #64748b;
    --border: rgba(0, 0, 0, 0.1);
    --radius: 20px;
}

body {
    margin: 0;
    font-family: 'Gill Sans MT', 'Gill Sans', Calibri, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden; 
}

[v-cloak] { display: none; }

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.status {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.status.processing {
    color: var(--accent);
    animation: pulse 1.5s infinite;
}

/* Layout */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center; 
    position: relative;
    background: var(--bg-color);
}

/* Glass Panel (Controls) */
.glass-panel {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 20px 40px -10px rgba(0, 83, 135, 0.15); /* Softer blue shadow */
}

.controls {
    width: 480px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 5;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f1f5f9;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: #e0f2fe;
}

.upload-zone .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.upload-zone p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}

select, input {
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

select:focus, input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* Results */
.results {
    margin-top: 1rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.results h3 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.price-big {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.price-breakdown-grid {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.p-item {
    flex: 1;
    background: rgba(0, 0, 0, 0.03); /* Light grey for white theme */
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border);
}

.p-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.p-item strong {
    font-size: 1.1rem;
    color: var(--primary);
}

.details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.details .row {
    display: flex;
    justify-content: space-between;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.5rem;
    border-radius: 8px;
}

.stat-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.stat-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Button & States */
.btn-primary {
    background: var(--primary);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(0, 83, 135, 0.4);
}

.btn-action {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, #003355 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border: none; /* Button element reset */
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 83, 135, 0.3);
    cursor: pointer;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 83, 135, 0.4);
}

.btn-action:active {
    transform: translateY(0);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
}

.upload-zone.has-file {
    border-color: var(--primary);
    background: #e0f2fe;
}

.file-name {
    font-weight: 600;
    color: var(--text-main);
    word-break: break-all;
}

/* 3D Preview */
.preview-area {
    width: 100%;
    height: 200px;
    background: #f1f5f9; /* Light grey */
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    display: flex; /* Centers the placeholder */
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-card h3 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: block;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-secondary {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f1f5f9;
    color: var(--text-main);
    border-color: #cbd5e1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-group textarea,
.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: #f8fafc;
    color: var(--text-main);
}

.form-group textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.tiny-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

.canvas-mount {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.preview-area .placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.preview-area canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Warning Banner */
.warning-banner {
    background: #fef9c3; /* Lighter yellow */
    border: 1px solid #eab308;
    color: #854d0e; /* Darker amber for readability on light */
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-top: 1rem;
    animation: fadeIn 0.3s ease-in;
}

.warning-banner a {
    color: #a16207;
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
