/* ============================================================
   ARTISTIC PHOTOMOSAIC DESIGN SYSTEM (2026 EDITION)
   Clean, light-themed glassmorphism with high-end editorial feel
   ============================================================ */

:root {
    --artistic-bg: #f9f9fb;
    --artistic-panel: rgba(255, 255, 255, 0.85);
    --artistic-text: #1a1a1a;
    --artistic-text-muted: #71717a;
    --artistic-accent: #b6952b; /* Sophisticated warm gold */
    --artistic-accent-light: rgba(182, 149, 43, 0.06);
    --artistic-border: rgba(0, 0, 0, 0.08);
    --artistic-shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.02);
    --artistic-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.05);
    --artistic-radius: 16px;
    --artistic-radius-sm: 8px;
    --artistic-font: 'Inter', sans-serif;
}

/* Background Canvas Setup */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    background: var(--artistic-bg);
}

/* Main Container Adjustments */
body {
    background: transparent !important;
}

.artistic-grid-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 30px;
    margin-top: 30px;
    align-items: start;
    z-index: 1;
    position: relative;
}

@media (max-width: 900px) {
    .artistic-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* Segmented Tab Controls */
.tabs-container {
    display: flex;
    background: rgba(0, 0, 0, 0.03);
    padding: 4px;
    border-radius: var(--artistic-radius-sm);
    margin-bottom: 20px;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-family: var(--artistic-font);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--artistic-text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    outline: none;
}

.tab-btn:hover {
    color: var(--artistic-text);
    background: rgba(255, 255, 255, 0.4);
}

.tab-btn.active {
    background: #ffffff;
    color: var(--artistic-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Tab content visibility */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Premium Card Panel */
.artistic-card {
    background: var(--artistic-panel);
    border: 1px solid var(--artistic-border);
    border-radius: var(--artistic-radius);
    box-shadow: var(--artistic-shadow-subtle);
    padding: 26px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
}

.artistic-card:hover {
    box-shadow: var(--artistic-shadow-hover);
    border-color: rgba(182, 149, 43, 0.15);
}

.artistic-card h3 {
    margin-top: 0;
    color: var(--artistic-text);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form Groups styling */
.form-group-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 15px;
}

.form-group-row label {
    font-size: 0.88rem;
    color: var(--artistic-text);
    font-weight: 500;
}

/* Custom Styled Select and Number inputs */
.artistic-select, .artistic-number {
    width: 110px;
    background: #ffffff;
    border: 1px solid var(--artistic-border);
    color: var(--artistic-text);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--artistic-font);
    outline: none;
    transition: all 0.2s ease;
}

.artistic-select:focus, .artistic-number:focus {
    border-color: var(--artistic-accent);
    box-shadow: 0 0 0 3px var(--artistic-accent-light);
}

.artistic-number {
    text-align: right;
}

/* Custom Styled Range Sliders */
.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    justify-content: flex-end;
    max-width: 200px;
}

.form-group-row input[type="range"] {
    -webkit-appearance: none;
    width: 120px;
    height: 4px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 2px;
    outline: none;
}

.form-group-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--artistic-accent);
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
}

.form-group-row input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.value-display {
    font-size: 0.82rem;
    color: var(--artistic-accent);
    min-width: 38px;
    text-align: right;
    font-weight: 600;
}

/* Custom styled upload cards (dropzones) */
.upload-zone {
    border: 2px dashed rgba(0, 0, 0, 0.08);
    border-radius: var(--artistic-radius-sm);
    padding: 24px 16px;
    text-align: center;
    background: rgba(0, 0, 0, 0.01);
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-zone:hover {
    border-color: var(--artistic-accent);
    background: var(--artistic-accent-light);
}

.upload-zone svg {
    width: 28px;
    height: 28px;
    stroke: var(--artistic-text-muted);
    transition: stroke 0.25s ease;
}

.upload-zone:hover svg {
    stroke: var(--artistic-accent);
}

.upload-zone label {
    cursor: pointer;
    color: var(--artistic-text);
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0;
}

.upload-zone span {
    font-size: 0.76rem;
    color: var(--artistic-text-muted);
}

.upload-zone input[type="file"] {
    display: none;
}

/* Workspace Preview Customizations */
.workspace-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.workspace-preview-box {
    background: var(--artistic-panel);
    border: 1px solid var(--artistic-border);
    border-radius: var(--artistic-radius);
    box-shadow: var(--artistic-shadow-subtle);
    min-height: 520px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 20px;
    transition: border-color 0.3s ease;
}

.workspace-preview-box:hover {
    border-color: rgba(182, 149, 43, 0.15);
}

/* Checkbox styling */
input[type="checkbox"] {
    position: relative;
    width: 16px;
    height: 16px;
    color: #fff;
    border: 1px solid var(--artistic-border);
    border-radius: 4px;
    appearance: none;
    outline: 0;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
    background: var(--artistic-accent);
    border-color: var(--artistic-accent);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Modern Primary Buttons */
.btn-artistic {
    width: 100%;
    padding: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #d4af37, #b6952b);
    color: #ffffff;
    border: none;
    border-radius: var(--artistic-radius-sm);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(182, 149, 43, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-artistic:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(182, 149, 43, 0.35);
    filter: brightness(1.05);
}

.btn-artistic:active {
    transform: translateY(1px);
}

#artisticMosaicCanvas {
    max-width: 100%;
    max-height: 80vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    display: none;
    cursor: crosshair;
}

/* Tooltip Wrapper and Popups */
.tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border: 1px solid var(--artistic-accent);
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    color: var(--artistic-accent);
    cursor: help;
    margin-left: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-icon:hover {
    background: var(--artistic-accent);
    color: #ffffff;
    transform: scale(1.1);
}

.tooltip-pop {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: rgba(26, 26, 26, 0.95);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.4;
    width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(182, 149, 43, 0.35);
    z-index: 100;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
    font-weight: 400;
    text-align: left;
}

.tooltip-pop::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(26, 26, 26, 0.95) transparent transparent transparent;
}

.tooltip-wrap:hover .tooltip-pop {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


