/* ==========================================
   K-Page Maker System Stylesheet (App UI)
   ========================================== */

:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #121826;
    --bg-card: #1d263b;
    --border-color: #2e3c5a;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --primary-glow: rgba(99, 102, 241, 0.15);
    
    --success: #10b981;
    --success-hover: #059669;
    --danger: #ef4444;
    
    --sidebar-width: 260px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

/* Base resets & styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', 'Outfit', sans-serif;
}

body.dark-mode {
    background-color: var(--bg-primary);
    color: var(--text-main);
    overflow-x: hidden;
}

#app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar-nav {
    width: var(--sidebar-width);
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    padding: 0 8px;
}

.logo-icon {
    color: #a855f7;
    width: 28px;
    height: 28px;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.logo-text .accent {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--text-main);
    background: var(--primary-gradient);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.theme-toggle {
    display: flex;
    gap: 16px;
    align-items: center;
    background-color: var(--bg-primary);
    padding: 6px 12px;
    border-radius: 20px;
    width: fit-content;
    cursor: pointer;
}

.theme-toggle i {
    width: 16px;
    height: 16px;
}

.theme-toggle i.active {
    color: #a855f7;
}

/* Main Content Workspace */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    min-height: 100vh;
    padding: 40px;
    position: relative;
}

.workspace-screen {
    display: none;
}

.workspace-screen.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Screen 1: Dashboard */
.hero-section {
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 750px;
    line-height: 1.6;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    margin-bottom: 40px;
}

.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* File Drop Zone */
.drop-zone {
    background-color: var(--bg-primary);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.05);
}

.drop-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 16px;
    opacity: 0.85;
}

.drop-main {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}

.drop-sub {
    color: var(--text-muted);
    font-size: 13px;
}

/* URL Input */
.url-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.input-with-btn {
    display: flex;
    gap: 10px;
}

input[type="text"], textarea, select {
    flex-grow: 1;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

input[type="text"]:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: var(--success-hover);
}

.btn-full {
    width: 100%;
}

/* Demo Options */
.demo-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.demo-option-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.demo-option-item:hover {
    border-color: #a855f7;
    background-color: rgba(168, 85, 247, 0.05);
    transform: translateY(-2px);
}

.demo-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background-color: white;
}

.demo-info {
    flex-grow: 1;
}

.demo-tag {
    font-size: 11px;
    background-color: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 4px;
    display: inline-block;
}

.demo-info h4 {
    font-size: 14px;
    font-weight: 600;
}

/* Templates Section */
.template-section {
    margin-top: 40px;
}

.template-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.template-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.template-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.1);
}

.template-card.active {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.template-preview {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pastel-style {
    background: linear-gradient(135deg, #ffe4e6 0%, #f3e8ff 100%);
}

.pastel-style .mock-blob {
    width: 60px;
    height: 60px;
    background-color: #fbcfe8;
    border-radius: 50% 30% 60% 40%;
    animation: morph 6s ease-in-out infinite;
}

.modern-style {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modern-style .mock-line {
    width: 70px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.minimal-style {
    background: linear-gradient(135deg, #fbfbfb 0%, #f4f3f0 100%);
}

.style-title {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.pastel-style .style-title {
    background-color: rgba(219, 39, 119, 0.1);
    color: #db2777;
}

.minimal-style .style-title {
    background-color: rgba(120, 110, 90, 0.1);
    color: #786e5a;
}

.template-info {
    padding: 20px;
}

.template-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 700;
}

.template-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

@keyframes morph {
    0% { border-radius: 50% 30% 60% 40%; }
    50% { border-radius: 30% 60% 40% 70%; }
    100% { border-radius: 50% 30% 60% 40%; }
}


/* Screen 2: Workspace Editor */
.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.editor-title-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-back:hover {
    color: var(--text-main);
}

.badge {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 12px;
}

.editor-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.workspace-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 20px;
    height: calc(100vh - 160px);
}

/* Panels */
.panel {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.15);
}

.panel-header h3 {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    position: relative;
}

/* Custom Scrollbars */
.panel-body::-webkit-scrollbar {
    width: 6px;
}
.panel-body::-webkit-scrollbar-track {
    background: transparent;
}
.panel-body::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

/* Canvas Panel (Image Annotation) */
.canvas-body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: #070910;
    padding: 24px;
}

.canvas-zoom {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 15px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    color: var(--text-main);
}

.btn-icon i {
    width: 14px;
    height: 14px;
}

#zoom-value {
    font-size: 11px;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}

.canvas-wrapper {
    position: relative;
    max-width: 100%;
    transform-origin: top center;
    transition: transform 0.2s ease;
}

.canvas-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

#ocr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* OCR Bounding Boxes */
.ocr-bbox {
    position: absolute;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    font-weight: bold;
    border: 1px dashed rgba(99, 102, 241, 0.6);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: box-shadow 0.2s ease;
}

.ocr-bbox:hover, .ocr-bbox.active {
    border-color: #6366f1;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.8);
    z-index: 10;
}

/* OCR tooltip showing translation hover */
.ocr-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e1b4b;
    border: 1px solid #4f46e5;
    color: #e0e7ff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 15;
}

.ocr-bbox:hover .ocr-tooltip {
    opacity: 1;
}

/* Overlay Editor Sidebar Elements */
.overlay-field-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.overlay-field-card h5 {
    font-size: 12px;
    color: #a855f7;
    margin-bottom: 8px;
}

.overlay-control-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.overlay-control-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.overlay-control-item label {
    font-size: 10px;
    color: var(--text-muted);
}

.overlay-control-item input[type="color"] {
    width: 100%;
    height: 32px;
    padding: 0;
    border: 1px solid var(--border-color);
    background: none;
    border-radius: 4px;
    cursor: pointer;
}

.overlay-control-item input[type="number"] {
    padding: 6px;
    border-radius: 4px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 12px;
}

/* Sidebar Editor Controls */
.editor-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    gap: 8px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: #a855f7;
    border-bottom-color: #a855f7;
}

.tab-content {
    display: none;
}

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

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 0;
}

.highlight-box {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
}

.mb-5 {
    margin-bottom: 5px;
}

.tab-info-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

/* Option List Items */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.option-item-editor {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    position: relative;
}

.option-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.option-header-row h5 {
    font-size: 12px;
    font-weight: 700;
    color: #a855f7;
}

.btn-remove-option {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.option-edit-fields {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8px;
}

/* Specs/Table Editor */
.specs-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Preview Panel */
.preview-body {
    background-color: #0d111d;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.mobile-frame {
    width: 100%;
    max-width: 440px;
    background-color: #000;
    border-radius: 36px;
    border: 10px solid #222530;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.mobile-screen {
    width: 100%;
    height: 620px;
    background-color: white;
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-screen::-webkit-scrollbar {
    width: 4px;
}
.mobile-screen::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.15);
    border-radius: 2px;
}

/* Screen 3: Help Page */
.help-card {
    max-width: 800px;
    margin: 0 auto;
}

.help-card h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.help-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.step-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 24px 16px;
    border-radius: var(--border-radius);
    position: relative;
}

.step-num {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 26px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    opacity: 0.15;
}

.step-card h4 {
    font-size: 15px;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Export Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 9, 16, 0.85);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 680px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-icon {
    color: var(--success);
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-body {
    margin-bottom: 24px;
}

.modal-body p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.code-box-container {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 220px;
    overflow: auto;
    padding: 16px;
}

.code-box-container pre {
    margin: 0;
}

.code-box-container code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #e2e8f0;
    white-space: pre-wrap;
    word-break: break-all;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ========================================================
   PREVIEW / EXPORT TEMPLATE CSS (Scoped to detail pages)
   ======================================================== */

.detail-page-wrapper {
    width: 100%;
    background-color: white;
    color: #333333;
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.5;
}

/* Style 1: Lovely Pastel Template */
.pastel-detail-template {
    background-color: #fafafc;
    color: #4a4a58;
}

.pastel-detail-template .hero-banner {
    background: linear-gradient(180deg, #fce7f3 0%, #fae8ff 100%);
    padding: 50px 24px;
    text-align: center;
}

.pastel-detail-template .hero-logo {
    display: inline-block;
    background-color: white;
    color: #db2777;
    font-weight: 800;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(219, 39, 119, 0.1);
}

.pastel-detail-template .hero-title {
    font-size: 26px;
    font-weight: 900;
    color: #831843;
    line-height: 1.3;
    margin-bottom: 8px;
}

.pastel-detail-template .hero-subtitle {
    font-size: 14px;
    color: #9d174d;
    font-weight: 500;
}

.pastel-detail-template .section-container {
    padding: 40px 20px;
}

.pastel-detail-template .image-box {
    margin: 20px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    background-color: white;
}

.pastel-detail-template .image-box img {
    width: 100%;
    display: block;
}

.pastel-detail-template .points-title {
    text-align: center;
    font-weight: 800;
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 30px;
}

.pastel-detail-template .points-title span {
    color: #db2777;
}

.pastel-detail-template .point-card {
    background-color: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(251, 207, 232, 0.4);
}

.pastel-detail-template .point-num {
    display: inline-block;
    color: #db2777;
    background-color: #fce7f3;
    font-weight: 800;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.pastel-detail-template .point-header {
    font-size: 17px;
    font-weight: 700;
    color: #831843;
    margin-bottom: 6px;
}

.pastel-detail-template .point-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.pastel-detail-template .options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.pastel-detail-template .option-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    border: 1px solid #f3f4f6;
    text-align: center;
}

.pastel-detail-template .option-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.pastel-detail-template .option-info {
    padding: 12px;
}

.pastel-detail-template .option-name {
    font-weight: 700;
    font-size: 13px;
    color: #374151;
    margin-bottom: 4px;
}

.pastel-detail-template .option-sub {
    font-size: 11px;
    color: #9ca3af;
}

.pastel-detail-template .usage-card {
    background-color: #fdf2f8;
    border-radius: 16px;
    padding: 24px;
    margin: 30px 0;
    border: 1px dashed #fbcfe8;
}

.pastel-detail-template .usage-card h4 {
    color: #9d174d;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pastel-detail-template .usage-text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}

.pastel-detail-template .cautions-card {
    background-color: #f3f4f6;
    border-radius: 16px;
    padding: 24px;
    margin: 30px 0;
}

.pastel-detail-template .cautions-card h4 {
    color: #374151;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
}

.pastel-detail-template .caution-list {
    padding-left: 18px;
    margin: 0;
}

.pastel-detail-template .caution-list li {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.pastel-detail-template .specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 12px;
}

.pastel-detail-template .specs-table th, 
.pastel-detail-template .specs-table td {
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: left;
}

.pastel-detail-template .specs-table th {
    background-color: #f9fafb;
    color: #4b5563;
    width: 30%;
    font-weight: 600;
}

.pastel-detail-template .specs-table td {
    color: #6b7280;
}


/* Style 2: Modern Sleek Template */
.modern-detail-template {
    background-color: #0f172a;
    color: #cbd5e1;
}

.modern-detail-template .hero-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    padding: 60px 24px;
    text-align: left;
    border-bottom: 2px solid #6366f1;
}

.modern-detail-template .hero-logo {
    display: inline-block;
    color: #818cf8;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.modern-detail-template .hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 10px;
}

.modern-detail-template .hero-subtitle {
    font-size: 14px;
    color: #94a3b8;
}

.modern-detail-template .section-container {
    padding: 40px 20px;
}

.modern-detail-template .image-box {
    margin: 20px 0;
    border: 1px solid #334155;
    background-color: #1e293b;
    overflow: hidden;
}

.modern-detail-template .image-box img {
    width: 100%;
    display: block;
}

.modern-detail-template .points-title {
    text-align: left;
    font-weight: 700;
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 30px;
    border-left: 4px solid #6366f1;
    padding-left: 12px;
}

.modern-detail-template .point-card {
    background-color: #1e293b;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #334155;
}

.modern-detail-template .point-num {
    display: inline-block;
    color: #818cf8;
    font-weight: 700;
    font-size: 11px;
    margin-bottom: 8px;
}

.modern-detail-template .point-header {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.modern-detail-template .point-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

.modern-detail-template .options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.modern-detail-template .option-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
}

.modern-detail-template .option-thumb {
    width: 90px;
    height: 90px;
    object-fit: cover;
}

.modern-detail-template .option-info {
    padding: 16px;
    flex-grow: 1;
}

.modern-detail-template .option-name {
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 4px;
}

.modern-detail-template .option-sub {
    font-size: 12px;
    color: #94a3b8;
}

.modern-detail-template .usage-card {
    background-color: rgba(99, 102, 241, 0.05);
    border: 1px solid #4f46e5;
    padding: 20px;
    margin: 30px 0;
}

.modern-detail-template .usage-card h4 {
    color: #818cf8;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.modern-detail-template .usage-text {
    font-size: 13px;
    color: #cbd5e1;
}

.modern-detail-template .cautions-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    padding: 20px;
    margin: 30px 0;
}

.modern-detail-template .cautions-card h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.modern-detail-template .caution-list {
    padding-left: 18px;
    margin: 0;
}

.modern-detail-template .caution-list li {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.modern-detail-template .specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 12px;
}

.modern-detail-template .specs-table th, 
.modern-detail-template .specs-table td {
    border: 1px solid #334155;
    padding: 10px 12px;
}

.modern-detail-template .specs-table th {
    background-color: #1e293b;
    color: #ffffff;
    text-align: left;
    width: 30%;
}

.modern-detail-template .specs-table td {
    color: #cbd5e1;
}


/* Style 3: Warm Minimal Template */
.minimal-detail-template {
    background-color: #f7f6f2;
    color: #555550;
}

.minimal-detail-template .hero-banner {
    padding: 60px 24px;
    text-align: center;
    border-bottom: 1px solid #e1ded8;
}

.minimal-detail-template .hero-logo {
    display: inline-block;
    color: #8c8270;
    font-weight: 500;
    font-size: 12px;
    border-bottom: 1px solid #8c8270;
    padding-bottom: 2px;
    margin-bottom: 16px;
}

.minimal-detail-template .hero-title {
    font-size: 25px;
    font-weight: 600;
    color: #3b3a36;
    line-height: 1.35;
    margin-bottom: 12px;
}

.minimal-detail-template .hero-subtitle {
    font-size: 13px;
    color: #8c8270;
    font-weight: 300;
}

.minimal-detail-template .section-container {
    padding: 40px 20px;
}

.minimal-detail-template .image-box {
    margin: 24px 0;
    background-color: #ffffff;
    padding: 12px;
    border: 1px solid #e1ded8;
}

.minimal-detail-template .image-box img {
    width: 100%;
    display: block;
}

.minimal-detail-template .points-title {
    text-align: center;
    font-weight: 600;
    font-size: 19px;
    color: #3b3a36;
    margin-bottom: 32px;
}

.minimal-detail-template .point-card {
    margin-bottom: 28px;
    border-bottom: 1px solid #e1ded8;
    padding-bottom: 20px;
}

.minimal-detail-template .point-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.minimal-detail-template .point-num {
    font-family: 'Outfit', sans-serif;
    color: #8c8270;
    font-weight: 600;
    font-size: 13px;
    display: block;
    margin-bottom: 6px;
}

.minimal-detail-template .point-header {
    font-size: 16px;
    font-weight: 600;
    color: #3b3a36;
    margin-bottom: 8px;
}

.minimal-detail-template .point-desc {
    font-size: 13px;
    color: #706f6a;
    line-height: 1.6;
}

.minimal-detail-template .options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.minimal-detail-template .option-card {
    background-color: #ffffff;
    border: 1px solid #e1ded8;
    padding: 8px;
}

.minimal-detail-template .option-thumb {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.minimal-detail-template .option-info {
    padding: 10px 4px 4px 4px;
}

.minimal-detail-template .option-name {
    font-weight: 600;
    font-size: 12px;
    color: #3b3a36;
    margin-bottom: 2px;
}

.minimal-detail-template .option-sub {
    font-size: 11px;
    color: #8c8270;
}

.minimal-detail-template .usage-card {
    border-top: 2px solid #3b3a36;
    border-bottom: 2px solid #3b3a36;
    padding: 24px 8px;
    margin: 30px 0;
}

.minimal-detail-template .usage-card h4 {
    color: #3b3a36;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.minimal-detail-template .usage-text {
    font-size: 13px;
    color: #555550;
    line-height: 1.6;
}

.minimal-detail-template .cautions-card {
    background-color: #eae9e4;
    padding: 20px;
    margin: 30px 0;
}

.minimal-detail-template .cautions-card h4 {
    color: #3b3a36;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.minimal-detail-template .caution-list {
    padding-left: 18px;
    margin: 0;
}

.minimal-detail-template .caution-list li {
    font-size: 12px;
    color: #555550;
    margin-bottom: 6px;
}

.minimal-detail-template .specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 11px;
}

.minimal-detail-template .specs-table th, 
.minimal-detail-template .specs-table td {
    border-bottom: 1px solid #e1ded8;
    padding: 10px 8px;
    text-align: left;
}

.minimal-detail-template .specs-table th {
    color: #3b3a36;
    width: 30%;
    font-weight: 600;
}

.minimal-detail-template .specs-table td {
    color: #706f6a;
}
