/* ==========================================================================
   File: Tool/3d/new.css
   KHALA STUDIO — 3D NEW PROJECT DIALOG (2027 PRO VIBE)
   - Layout matching the screenshot faithfully (Recent Size + Project Detail)
   - Color transitions only (Zero hover transcale / transform)
   ========================================================================== */

.threed-new-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Google Sans', 'Roboto', sans-serif;
    color: #f1f3f4;
}

.threed-new-modal-box {
    width: 100%;
    max-width: 860px;
    height: 560px;
    background: #252528;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Left Panel: Recent Size Presets
   -------------------------------------------------------------------------- */
.threed-new-left-panel {
    flex: 1;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow-y: auto;
}

.threed-preset-tab-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.threed-preset-tab-btn {
    position: relative;
    padding: 0 4px 10px;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
}

.threed-preset-tab-btn::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0A84FF;
    border-radius: 2px;
}

.threed-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
}

.threed-preset-card {
    height: 140px;
    background: #1e1e20;
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.threed-preset-card:hover {
    background: #2b2b30;
}

.threed-preset-card.active {
    border-color: #0A84FF;
    background: rgba(10, 132, 255, 0.08);
}

.threed-preset-icon-box {
    width: 48px;
    height: 48px;
    background: #38383e;
    border-radius: 8px;
}

.threed-preset-card.active .threed-preset-icon-box {
    background: #44444c;
}

.threed-preset-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #f1f3f4;
}

.threed-preset-sub {
    font-size: 0.75rem;
    color: #a1a1aa;
}

/* --------------------------------------------------------------------------
   Right Panel: Project Detail Inspector
   -------------------------------------------------------------------------- */
.threed-new-right-panel {
    width: 320px;
    background: #202023;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.threed-detail-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.threed-detail-title {
    font-size: 1.0625rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
}

.threed-name-input-wrap {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 4px;
}

.threed-name-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.9375rem;
    font-family: inherit;
}

.threed-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.threed-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.threed-input-label {
    font-size: 0.75rem;
    color: #9d9da4;
    font-weight: 500;
}

.threed-form-input {
    width: 100%;
    height: 36px;
    background: #18181a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0 10px;
    color: #ffffff;
    font-size: 0.875rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.18s ease;
}

.threed-form-input:focus {
    border-color: #0A84FF;
}

.threed-select {
    width: 100%;
    height: 36px;
    background: #18181a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0 10px;
    color: #ffffff;
    font-size: 0.875rem;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

/* Orientation Switcher */
.threed-orientation-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
}

.threed-orient-btn {
    flex: 1;
    height: 100%;
    background: #18181a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.threed-orient-btn.active {
    border-color: #0A84FF;
    background: rgba(10, 132, 255, 0.15);
}

.threed-orient-icon-portrait {
    width: 14px;
    height: 20px;
    background: #a1a1aa;
    border-radius: 2px;
}

.threed-orient-icon-landscape {
    width: 20px;
    height: 14px;
    background: #a1a1aa;
    border-radius: 2px;
}

.threed-orient-btn.active .threed-orient-icon-portrait,
.threed-orient-btn.active .threed-orient-icon-landscape {
    background: #0A84FF;
}

/* Background Color Field */
.threed-color-field-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.threed-color-block-btn {
    width: 48px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #005EFF;
}

.threed-color-block-btn input[type="color"] {
    position: absolute;
    inset: -10px;
    width: 200%;
    height: 200%;
    opacity: 0;
    cursor: pointer;
}

.threed-hex-badge {
    flex: 1;
    height: 36px;
    background: #18181a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 0.8125rem;
    color: #e4e4e7;
    font-family: monospace;
}

/* Bottom Action Buttons */
.threed-modal-bottom-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.threed-modal-create-btn {
    flex: 1;
    height: 40px;
    background: #0A84FF;
    border: none;
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.threed-modal-create-btn:hover {
    background: #0070e0;
}

.threed-modal-close-btn {
    width: 90px;
    height: 40px;
    background: #2e2e34;
    border: none;
    border-radius: 20px;
    color: #e4e4e7;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.threed-modal-close-btn:hover {
    background: #393940;
    color: #ffffff;
}

@media (max-width: 768px) {
    .threed-new-modal-box {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
    }
    .threed-new-right-panel {
        width: 100%;
    }
}