/**
 * Maplay FolderMaker Stylesheet
 */

:root {
    --fm-primary: #3b82f6;
    --fm-primary-dark: #2563eb;
    --fm-primary-light: #eff6ff;
    --fm-accent: #10b981;
    --fm-accent-dark: #059669;
    --fm-dark: #1e293b;
    --fm-border: #e2e8f0;
    --fm-card-bg: #ffffff;
}

body {
    background-color: #f8fafc;
}

.fm-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 22px 26px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.fm-hero::after {
    content: "📁";
    position: absolute;
    right: 25px;
    bottom: -15px;
    font-size: 110px;
    opacity: 0.08;
    pointer-events: none;
}

.fm-hero h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.fm-hero .hero-subtitle-en {
    font-size: 15px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 3px;
}

.fm-hero .hero-subtitle-ko {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 0;
}

.ko-sub {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    display: block;
    line-height: 1.35;
    margin-top: 2px;
}

.ko-inline {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
}

/* Stat Cards */
.fm-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 8px;
    margin-bottom: 24px;
}

.fm-stat-card {
    background: #ffffff;
    border: 1px solid var(--fm-border);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fm-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.fm-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.fm-stat-icon.primary { background: #dbeafe; color: #1d4ed8; }
.fm-stat-icon.success { background: #d1fae5; color: #047857; }
.fm-stat-icon.warning { background: #fef3c7; color: #b45309; }
.fm-stat-icon.purple { background: #f3e8ff; color: #7e22ce; }

.fm-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--fm-dark);
    line-height: 1.1;
}

.fm-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-top: 3px;
}

/* Navigation Tabs */
.fm-nav-tabs {
    border-bottom: 2px solid #e2e8f0;
    gap: 8px;
}

.fm-nav-tabs .nav-link {
    font-size: 14.5px;
    font-weight: 700;
    color: #64748b;
    border: none;
    padding: 12px 20px;
    border-radius: 10px 10px 0 0;
    transition: all 0.2s;
    background: transparent;
}

.fm-nav-tabs .nav-link:hover {
    color: var(--fm-primary);
    background: #f1f5f9;
}

.fm-nav-tabs .nav-link.active {
    color: var(--fm-primary-dark);
    background: #ffffff;
    border-bottom: 3px solid var(--fm-primary);
}

/* Dropzone */
.fm-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 36px 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
}

.fm-dropzone:hover, .fm-dropzone.dragover {
    border-color: var(--fm-primary);
    background: #eff6ff;
}

.fm-dropzone-icon {
    font-size: 42px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.fm-dropzone:hover .fm-dropzone-icon {
    color: var(--fm-primary);
}

/* Options Box */
.fm-options-card {
    background: #ffffff;
    border: 1px solid var(--fm-border);
    border-radius: 14px;
    padding: 20px;
}

.fm-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Preview Table */
.fm-preview-card {
    background: #ffffff;
    border: 1px solid var(--fm-border);
    border-radius: 14px;
    overflow: hidden;
}

.fm-preview-header {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--fm-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fm-table-wrap {
    max-height: 380px;
    overflow-y: auto;
}

.fm-preview-table {
    margin-bottom: 0;
    font-size: 13px;
}

.fm-preview-table th {
    background: #f1f5f9;
    font-weight: 700;
    color: #475569;
    position: sticky;
    top: 0;
    z-index: 2;
}

.fm-preview-table td {
    vertical-align: middle;
}

.badge-depth {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: #e2e8f0;
    color: #334155;
}

/* Action Buttons */
.btn-generate {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-generate:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-generate:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.fm-template-btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.fm-template-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Tree icon styling */
.tree-node {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #0f172a;
    font-weight: 600;
}

.tree-indent {
    display: inline-block;
    color: #94a3b8;
}
