/* 대시보드 페이지 스타일 */
.dashboard-container {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
    background: #f9fafb;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.user-welcome h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.user-welcome p {
    color: #6b7280;
}

.quick-actions {
    display: flex;
    gap: 1rem;
}

/* 통계 카드 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
}

.stat-content {
    flex: 1;
}

.stat-title {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

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

.stat-change span {
    color: var(--success-color);
    font-weight: 600;
}

/* 차트 섹션 */
.chart-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.chart-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.format-chart {
    display: flex;
    gap: 3rem;
    align-items: center;
}

#formatChart {
    max-width: 300px;
    max-height: 300px;
}

.chart-legend {
    flex: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-label {
    font-weight: 600;
    color: var(--dark-color);
}

.legend-value {
    margin-left: auto;
    color: #6b7280;
}

/* 최근 다운로드 섹션 */
.recent-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.downloads-table {
    overflow-x: auto;
}

.downloads-table table {
    width: 100%;
    border-collapse: collapse;
}

.downloads-table th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
}

.downloads-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    color: var(--text-color);
}

.downloads-table tbody tr:hover {
    background: #f9fafb;
}

.no-data {
    text-align: center;
    padding: 3rem;
}

.no-data p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* 계정 설정 */
.account-section {
    margin-bottom: 3rem;
}

.account-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.setting-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.setting-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.setting-content {
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-label {
    color: #6b7280;
    font-weight: 500;
}

.info-value {
    color: var(--dark-color);
    font-weight: 600;
}

.current-plan-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 모달 스타일 */
.modal .form-group {
    margin-bottom: 1.5rem;
}

.modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.modal .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.modal .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quick-actions {
        width: 100%;
    }
    
    .quick-actions .btn {
        flex: 1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .format-chart {
        flex-direction: column;
    }
    
    .downloads-table {
        font-size: 0.875rem;
    }
    
    .downloads-table th,
    .downloads-table td {
        padding: 0.5rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
}