/* 대시보드 전용 스타일 */

.dashboard {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 100px 0 50px;
}

/* 네비게이션 사용자 메뉴 */
.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    text-decoration: none;
    color: white;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    padding: 10px 0;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.user-dropdown a:hover {
    background: #f8f9fa;
}

/* 대시보드 헤더 */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.user-welcome h1 {
    margin: 0 0 10px;
    color: #333;
    font-size: 2rem;
}

.user-welcome p {
    margin: 0;
    color: #666;
    font-size: 1.1rem;
}

.user-stats {
    display: flex;
    gap: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    min-width: 150px;
}

.stat-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.stat-info h3 {
    margin: 0 0 5px;
    font-size: 1.3rem;
    font-weight: 600;
}

.stat-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 퀵 통계 */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.stat-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-change.positive {
    color: #28a745;
}

.stat-change.negative {
    color: #dc3545;
}

.stat-change.neutral {
    color: #6c757d;
}

/* 대시보드 그리드 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.card-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-all {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.card-content {
    padding: 25px;
}

/* 주문 목록 */
.orders-list {
    max-height: 400px;
    overflow-y: auto;
}

.order-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.order-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

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

.order-service {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #333;
}

.order-service i {
    font-size: 1.2rem;
    color: #667eea;
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-number {
    font-size: 0.9rem;
    color: #666;
}

.order-amount {
    font-weight: 600;
    color: #333;
}

.order-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    margin-left: 20px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.3s;
}

.progress-text {
    font-size: 0.8rem;
    color: #666;
    min-width: 35px;
}

.order-date {
    font-size: 0.85rem;
    color: #999;
    text-align: right;
}

/* 빠른 액션 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}

.action-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.action-btn i {
    font-size: 1.5rem;
}

.action-btn.instagram:hover {
    border-color: #e4405f;
    box-shadow: 0 5px 15px rgba(228, 64, 95, 0.2);
}

.action-btn.youtube:hover {
    border-color: #ff0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
}

.action-btn.tiktok:hover {
    border-color: #000000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.action-btn.facebook:hover {
    border-color: #1877f2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.2);
}

.browse-all-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s;
}

.browse-all-btn:hover {
    transform: translateY(-2px);
}

/* 계정 정보 */
.account-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    color: #666;
    font-size: 0.9rem;
}

.info-item span {
    color: #333;
    font-weight: 500;
}

.copy-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    margin-left: 10px;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background: #f8f9fa;
}

.edit-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.edit-btn:hover {
    background: #f8f9fa;
}

/* 알림 */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.notification-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.notification-icon.success {
    background: #28a745;
}

.notification-icon.info {
    background: #007bff;
}

.notification-icon.warning {
    background: #ffc107;
}

.notification-content h4 {
    margin: 0 0 5px;
    color: #333;
    font-size: 0.95rem;
}

.notification-content p {
    margin: 0 0 8px;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.notification-content small {
    color: #999;
    font-size: 0.8rem;
}

/* 빈 상태 */
.empty-state,
.error-state,
.loading-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state i,
.error-state i,
.loading-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ccc;
}

.error-state i {
    color: #dc3545;
}

.loading-placeholder i {
    color: #667eea;
}

.primary-btn,
.retry-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.primary-btn:hover,
.retry-btn:hover {
    background: #5a67d8;
}

/* 멤버십 레벨 색상 */
.bronze {
    color: #cd7f32;
}

.silver {
    color: #c0c0c0;
}

.gold {
    color: #ffd700;
}

.platinum {
    color: #e5e4e2;
}

.diamond {
    color: #b9f2ff;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .user-stats {
        flex-direction: column;
        width: 100%;
    }
    
    .stat-card {
        justify-content: center;
    }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .order-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-progress {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .dashboard-header {
        padding: 20px;
    }
    
    .card-content {
        padding: 20px;
    }
}