:root{
  --bg:#f8fafc;
  --card:#ffffff;
  --muted:#64748b;
  --accent:#4f46e5;
  --danger:#ef4444;
  --border:#e6eef8;
}
*{box-sizing:border-box;font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif}
html,body,#app{height:100%;margin:0;background:var(--bg);color:#0f172a}
.app{display:flex;height:100vh;gap:0}
/* Sidebar */
/* Main */
header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
header h1{margin:0;font-size:20px}
header p{margin:0;color:var(--muted);font-size:13px}
.controls{display:flex;gap:8px;align-items:center}
.search{display:flex;align-items:center;border:1px solid var(--border);padding:6px 10px;border-radius:8px;background:white}
.search input{border:0;outline:none;font-size:14px}
/*.btn{padding:8px 12px;border-radius:8px;border:1px solid transparent;background:white;cursor:pointer}
.btn.primary{background:var(--accent);color:white;border-color:var(--accent)}
.btn.danger{background:var(--danger);color:white;border-color:var(--danger)}*/
/* Dropzone */
.dropzone{border:2px dashed var(--border);background:var(--card);padding:18px;border-radius:12px;display:flex;justify-content:space-between;align-items:center;transition:all .15s}
.dropzone.active{border-color:var(--accent);background:#eef2ff}
.dropzone .info{font-size:15px}
.dropzone .hint{font-size:13px;color:var(--muted)}
/* Grid */
.grid{margin-top:14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(400px,1fr));gap:12px}
.file-card{background:var(--card);border:1px solid var(--border);padding:12px;border-radius:10px;display:flex;flex-direction:column;gap:8px;min-height:120px}
.file-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.file-thumb{width:44px;height:44px;border-radius:8px;background:#f1f5f9;display:flex;align-items:center;justify-content:center;font-size:20px;overflow:hidden}
.file-thumb img,.file-thumb video{max-width:100%;max-height:100%;border-radius:6px}
.file-name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.file-meta{font-size:12px;color:var(--muted)}
.card-actions{display:flex;gap:6px;align-items:center;justify-content:space-between;margin-top:auto}
.small-btn{padding:6px 8px;border-radius:8px;border:1px solid var(--border);background:white;cursor:pointer;font-size:13px}
/* empty */
.empty{grid-column:1/-1;padding:30px;border:1px dashed var(--border);text-align:center;color:var(--muted);border-radius:10px;background:white}
/* responsive */
@media (max-width:800px){.sidebar{display:none}}


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: #f9fafb;
            color: #374151;
            line-height: 1.6;
        }

        /* Header Styles */
        .header {
            background: white;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            border-bottom: 1px solid #e5e7eb;
        }

        .header-content {
            max-width: 1280px;
            margin: 0 auto;
            padding: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header-title h1 {
            font-size: 1.875rem;
            font-weight: bold;
            color: #111827;
            margin-bottom: 0.25rem;
        }

        .header-title p {
            color: #6b7280;
        }

        .header-actions {
            display: flex;
            gap: 0.75rem;
        }

        .btn {
            padding: 0.5rem 1rem;
            border-radius: 0.375rem;
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            border: none;
            transition: all 0.2s;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
        }

        .btn-primary {
            background-color: #2563eb;
            color: white;
        }

        .btn-primary:hover {
            background-color: #1d4ed8;
        }

        .btn-secondary {
            background-color: white;
            color: #374151;
            border: 1px solid #d1d5db;
        }

        .btn-secondary:hover {
            background-color: #f9fafb;
        }

        /* Main Content */
        .main-content {
            max-width: 1280px;
            margin: 0 auto;
            padding: 1.5rem 1rem;
        }

        /* Stats Cards */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .stat-card {
            background: white;
            padding: 1.5rem;
            border-radius: 0.5rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            border: 1px solid #e5e7eb;
        }

        .stat-card-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .stat-info h3 {
            font-size: 0.875rem;
            font-weight: 500;
            color: #6b7280;
            margin-bottom: 0.5rem;
        }

        .stat-info .stat-number {
            font-size: 1.875rem;
            font-weight: bold;
            color: #111827;
        }

        .stat-info .stat-change {
            font-size: 0.875rem;
            color: #6b7280;
            margin-top: 0.5rem;
        }

        .stat-icon {
            padding: 0.75rem;
            border-radius: 50%;
            font-size: 1.5rem;
        }

        .stat-icon.blue { background-color: #dbeafe; }
        .stat-icon.red { background-color: #fecaca; }
        .stat-icon.green { background-color: #d1fae5; }

        /* Filters */
        .filters {
            background: white;
            padding: 1.5rem;
            border-radius: 0.5rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            border: 1px solid #e5e7eb;
            margin-bottom: 1.5rem;
        }

        .filters-content {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }

        .filter-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .filter-select {
            padding: 0.5rem 0.75rem;
            border: 1px solid #d1d5db;
            border-radius: 0.375rem;
            font-size: 0.875rem;
            background: white;
            cursor: pointer;
        }

        .filter-select:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

        .search-area {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .search-input {
            padding: 0.5rem 0.75rem;
            padding-left: 2.5rem;
            border: 1px solid #d1d5db;
            border-radius: 0.375rem;
            font-size: 0.875rem;
            width: 250px;
            position: relative;
        }

        .search-container {
            position: relative;
        }

        .search-icon {
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
        }

        .view-toggle {
            padding: 0.5rem;
            background: none;
            border: none;
            color: #6b7280;
            cursor: pointer;
            font-size: 1.2rem;
        }

        .view-toggle:hover {
            color: #374151;
        }

        /* Project Grid */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 1.5rem;
        }

        /* Project Card */
        .project-card {
            background: white;
            border-radius: 0.5rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            border: 1px solid #e5e7eb;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .project-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .project-card.priority-high {
            border-left: 4px solid #ef4444;
        }

        .project-card.priority-medium {
            border-left: 4px solid #3b82f6;
        }

        .project-card.priority-low {
            border-left: 4px solid #d1d5db;
        }

        .project-content {
            padding: 1.5rem;
        }

        .project-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 1rem;
        }

        .project-info {
            flex: 1;
        }

        .project-title {
            font-size: 1.125rem;
            font-weight: 600;
            color: #111827;
            margin-bottom: 0.5rem;
        }

        .project-organization {
            font-size: 0.875rem;
            color: #6b7280;
            margin-bottom: 0.75rem;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.25rem;
            margin-bottom: 0.75rem;
        }

        .tag {
            padding: 0.25rem 0.5rem;
            font-size: 0.75rem;
            border-radius: 9999px;
            font-weight: 500;
        }

        .tag.culture { background-color: #f3e8ff; color: #7c3aed; }
        .tag.region { background-color: #dbeafe; color: #2563eb; }

        .project-status-area {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }

        .status-badge {
            padding: 0.25rem 0.5rem;
            font-size: 0.75rem;
            font-weight: 500;
            border-radius: 9999px;
            margin-bottom: 0.25rem;
        }

        .status-badge.active {
            background-color: #dbeafe;
            color: #1d4ed8;
        }

        .deadline-info {
            font-size: 0.75rem;
            color: #ef4444;
        }

        /* Progress Section */
        .progress-section {
            margin-bottom: 1rem;
        }

        .progress-header {
            display: flex;
            justify-content: between;
            align-items: center;
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
        }

        .progress-label {
            color: #6b7280;
        }

        .progress-project-value {
            font-weight: 500;
            margin-left: auto;
        }

        .progress-bar {
            width: 100%;
            height: 0.5rem;
            background-color: #e5e7eb;
            border-radius: 9999px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background-color: #3b82f6;
            transition: width 0.3s ease;
        }

        /* Project Details */
        .project-details {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.875rem;
            margin-bottom: 1rem;
        }

        .project-meta {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .meta-item {
            color: #6b7280;
        }

        .project-deadline {
            color: #6b7280;
        }

        /* Project Footer */
        .project-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .team-avatars {
            display: flex;
            gap: -0.25rem;
        }

        .avatar {
            width: 2rem;
            height: 2rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.75rem;
            font-weight: 500;
            margin-left: -0.25rem;
            border: 2px solid white;
        }

        .avatar:first-child {
            margin-left: 0;
        }

        .avatar.blue { background-color: #3b82f6; }
        .avatar.green { background-color: #10b981; }
        .avatar.purple { background-color: #8b5cf6; }

        .project-actions {
            display: flex;
            gap: 0.5rem;
        }

        .btn-small {
            padding: 0.25rem 0.75rem;
            font-size: 0.75rem;
            border-radius: 0.375rem;
            cursor: pointer;
            border: none;
            font-weight: 500;
            transition: all 0.2s;
        }

        .btn-small.edit {
            background: none;
            color: #2563eb;
            border: 1px solid transparent;
        }

        .btn-small.edit:hover {
            background-color: #eff6ff;
        }

        .btn-small.view {
            background-color: #2563eb;
            color: white;
        }

        .btn-small.view:hover {
            background-color: #1d4ed8;
        }

        /* Pagination */
        .pagination {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 2rem;
        }

        .pagination-info {
            font-size: 0.875rem;
            color: #6b7280;
        }

        .pagination-controls {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .page-btn {
            padding: 0.5rem 0.75rem;
            border: none;
            background: none;
            cursor: pointer;
            border-radius: 0.375rem;
            font-size: 0.875rem;
            transition: all 0.2s;
        }

        .page-btn.active {
            background-color: #2563eb;
            color: white;
        }

        .page-btn:hover:not(.active):not(:disabled) {
            background-color: #f3f4f6;
        }

        .page-btn:disabled {
            color: #9ca3af;
            cursor: not-allowed;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 1rem;
                align-items: flex-start;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .filters-content {
                flex-direction: column;
                align-items: flex-start;
            }

            .projects-grid {
                grid-template-columns: 1fr;
            }

            .search-input {
                width: 100%;
            }

            .pagination {
                flex-direction: column;
                gap: 1rem;
            }
        }

        @media (max-width: 480px) {
            .main-content {
                padding: 1rem 0.5rem;
            }

            .project-content {
                padding: 1rem;
            }

            .project-header {
                flex-direction: column;
                gap: 0.5rem;
            }

            .project-status-area {
                align-items: flex-start;
            }

            .project-details {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
        }
