/* Main Panel - Slate 기반 */
.main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-left: 0;
    transition: margin-left var(--transition);
    background: var(--color-bg);
}

@media (min-width: 768px) {
    .main-panel {
        margin-left: var(--left-width);
    }
}

/* Main Header */
.main-header {
    display: flex;
    align-items: center;
    height: 3rem;
    padding: 0 1rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 5;
}

.toggle-left-panel {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 0.375rem;
    color: var(--color-text);
    margin-right: 0.5rem;
    transition: background var(--transition);
}

.toggle-left-panel:hover {
    background: var(--color-bg-secondary);
}

@media (max-width: 767px) {
    .toggle-left-panel {
        display: flex;
    }
}

.header-title {
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
    color: var(--color-text);
}

.header-spacer {
    width: 2.5rem;
}

@media (max-width: 767px) {
    .header-spacer {
        display: none;
    }
}

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

/* Page Sections - 플랫 디자인 */
.section {
    padding: 1.5rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--color-border);
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Welcome */
.welcome-card {
    padding: 2rem 0;
    text-align: center;
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    letter-spacing: -0.025em;
}

.welcome-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

/* Quick Links - Slate 기반 */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition);
    border-bottom: 1px solid var(--color-border);
}

.quick-link:last-child {
    border-bottom: none;
}

/* Quick Link 호버 - 파란색 대신 Slate */
.quick-link:hover {
    color: var(--slate-600);
    text-decoration: none;
}

.quick-link svg {
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: color var(--transition);
}

.quick-link:hover svg {
    color: var(--slate-600);
}

/* Card 스타일 */
.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
}

.card-subtitle {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

/* Badge - Slate 기반 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-default {
    background: var(--slate-100);
    color: var(--slate-700);
}

.badge-success {
    background: #dcfce7;
    color: var(--color-success);
}

.badge-error {
    background: #fee2e2;
    color: var(--color-error);
}

.badge-warning {
    background: #fef3c7;
    color: var(--color-warning);
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    font-size: 0.875rem;
    color: var(--color-text);
}

.table tbody tr:hover {
    background: var(--color-bg-secondary);
}

/* 모바일 반응형 - 767px 통일 */
@media (max-width: 767px) {
    .main-content {
        padding: .5rem;
        max-width: 100%;
    }

    .section {
        padding: 1rem 0;
    }

    .section-title {
        margin-bottom: 0.75rem;
    }

    .welcome-card {
        padding: 1.5rem 0;
    }

    .welcome-title {
        font-size: 1.25rem;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-secondary);
}

.empty-state svg {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.empty-state-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.empty-state-description {
    font-size: 0.875rem;
}