.quests-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.npc-detail-header {
	display: flex;
	align-items: center;
	background: rgba(30, 30, 40, 0.9);
	border-radius: 10px;
	padding: 25px;
	margin-bottom: 30px;
	border: 2px solid #8B4513;
	box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.npc-avatar-large {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	margin-right: 30px;
	border: 4px solid #FF3D00;
	object-fit: cover;
	box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.npc-info {
	flex: 1;
}

.npc-title {
	color: #FF3D00;
	font-size: 32px;
	margin: 0 0 10px 0;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.npc-description {
	color: #CCC;
	font-size: 16px;
	margin: 0;
	line-height: 1.5;
}

.back-button {
	display: inline-block;
	background: linear-gradient(135deg, #8B4513, #A0522D);
	color: white;
	padding: 10px 20px;
	border-radius: 5px;
	text-decoration: none;
	margin-top: 15px;
	transition: all 0.3s ease;
	border: 1px solid #654321;
}

.back-button:hover {
	background: linear-gradient(135deg, #A0522D, #8B4513);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Quests Table (used in both contexts) */
.quests-table {
	width: 100%;
	border-collapse: collapse;
	background: rgba(20, 20, 30, 0.8);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.quests-table th {
	background: linear-gradient(135deg, #8B4513, #FF3D00);
	color: #FFF;
	padding: 15px;
	text-align: left;
	border: 1px solid #555;
	font-weight: bold;
	font-size: 16px;
}

.quests-table td {
	padding: 15px;
	border: 1px solid #444;
	color: #DDD;
	vertical-align: middle;
}

.quests-table tr:nth-child(even) {
	background: rgba(40, 40, 50, 0.6);
}

.quests-table tr:hover {
	background: rgba(60, 60, 80, 0.8);
	transform: translateX(5px);
	transition: all 0.2s ease;
}

.tier-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 6px;
	font-weight: bold;
	text-align: center;
	min-width: 40px;
	font-size: 14px;
}

.tier-1 { 
	background: linear-gradient(135deg, #4CAF50, #45a049); 
	color: white; 
	box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}
.tier-2 { 
	background: linear-gradient(135deg, #FF9800, #f57c00); 
	color: white; 
	box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}
.tier-3 { 
	background: linear-gradient(135deg, #F44336, #d32f2f); 
	color: white; 
	box-shadow: 0 2px 4px rgba(244, 67, 54, 0.3);
}

.rewards-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.reward-item {
	background: rgba(100, 100, 150, 0.4);
	padding: 6px 12px;
	border-radius: 6px;
	border: 1px solid #666;
	font-size: 12px;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: all 0.2s ease;
}

.reward-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.currency-normal { 
	background: rgba(76, 175, 80, 0.2); 
	border-color: #4CAF50; 
	color: #4CAF50; 
}
.currency-gold { 
	background: rgba(255, 215, 0, 0.2); 
	border-color: #FFD700; 
	color: #FFD700; 
}
.fame { 
	background: rgba(255, 107, 107, 0.2); 
	border-color: #FF6B6B; 
	color: #FF6B6B; 
}
.skills { 
	background: rgba(100, 181, 246, 0.2); 
	border-color: #64B5F6; 
	color: #64B5F6; 
}
.trade-deals { 
	background: rgba(186, 104, 200, 0.2); 
	border-color: #BA68C8; 
	color: #BA68C8; 
}

.time-limit {
	color: #FFA726;
	font-weight: bold;
	font-size: 14px;
}

.no-time-limit {
	color: #888;
	font-style: italic;
}

.quest-title {
	font-weight: bold;
	color: #FFF;
	font-size: 16px;
}

.section-title {
	color: #FFD700;
	margin: 30px 0 20px 0;
	font-size: 24px;
	text-align: center;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.no-quests {
	text-align: center;
	color: #888;
	padding: 60px 20px;
	font-style: italic;
	background: rgba(30, 30, 40, 0.9);
	border-radius: 10px;
	border: 1px solid #444;
}

.stats-bar {
	display: flex;
	justify-content: space-between;
	background: rgba(40, 40, 50, 0.8);
	padding: 15px 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	border: 1px solid #555;
}

.stat-item {
	text-align: center;
	color: #CCC;
}

.stat-value {
	color: #FFD700;
	font-size: 20px;
	font-weight: bold;
	display: block;
}

.quest-count {
	color: #4CAF50;
}

.average-tier {
	color: #FF9800;
}

.total-rewards {
	color: #64B5F6;
}

.page-title {
	text-align: center;
	color: #FFD700;
	margin-bottom: 30px;
	font-size: 32px;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.npc-section {
	background: rgba(30, 30, 40, 0.9);
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 30px;
	border: 1px solid #444;
}

.npc-header {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #555;
}

.npc-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	margin-right: 20px;
	border: 3px solid #FF3D00;
	object-fit: cover;
}

.npc-section .npc-title {
	color: #FF3D00;
	font-size: 24px;
	margin: 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .npc-detail-header {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .npc-avatar-large {
        width: 80px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .npc-title {
        font-size: 24px;
    }
    
    .npc-description {
        font-size: 14px;
    }
    
    .back-button {
        display: block;
        text-align: center;
        margin: 15px auto 0 auto;
        max-width: 200px;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .stat-value {
        display: inline;
        font-size: 18px;
        margin-left: 10px;
    }
    
    .quests-table {
        display: block;
        overflow-x: auto;
        font-size: 14px;
    }
    
    .quests-table th,
    .quests-table td {
        padding: 10px 8px;
        white-space: nowrap;
		vertical-align: middle;
    }
    
    .quests-table th:nth-child(1),
    .quests-table td:nth-child(1) {
        width: 40px;
        min-width: 40px;
    }
    
    .quests-table th:nth-child(2),
    .quests-table td:nth-child(2) {
        width: 150px;
        min-width: 150px;
    }
    
    .quests-table th:nth-child(3),
    .quests-table td:nth-child(3) {
        width: 70px;
        min-width: 70px;
    }
    
    .quests-table th:nth-child(4),
    .quests-table td:nth-child(4) {
        width: 100px;
        min-width: 100px;
    }
    
    .quests-table th:nth-child(5),
    .quests-table td:nth-child(5) {
        width: 200px;
        min-width: 200px;
    }
    
    .rewards-list {
        gap: 4px;
    }
	
	.time-limit {
        font-size: 11px;
    }
    
    .reward-item {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .section-title {
        font-size: 20px;
        margin: 20px 0 15px 0;
    }
    
    .quests-container {
        padding: 10px;
    }
    
    .npc-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .npc-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .npc-avatar {
        width: 60px;
        height: 60px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .npc-section .npc-title {
        font-size: 20px;
    }
    
    .view-all-link {
        display: block;
        margin: 10px 0 0 0;
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .quests-table th:nth-child(2),
    .quests-table td:nth-child(2) {
        width: 120px;
        min-width: 120px;
    }
    
    .quests-table th:nth-child(3),
    .quests-table td:nth-child(3) {
        width: 50px;
        min-width: 50px;
    }
    
    .quests-table th:nth-child(4),
    .quests-table td:nth-child(4) {
        width: 80px;
        min-width: 80px;
    }
    
    .tier-badge {
        padding: 2px 6px;
        font-size: 12px;
        min-width: 25px;
    }
    
    .page-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .npc-detail-header {
        padding: 15px 10px;
    }
    
    .npc-title {
        font-size: 20px;
    }
    
    .npc-description {
        font-size: 13px;
    }
    
    .back-button {
        max-width: 180px;
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .quests-table {
        font-size: 12px;
    }
    
    .quests-table th,
    .quests-table td {
        padding: 8px 6px;
    }
    
    .rewards-list {
        flex-direction: column;
        gap: 3px;
    }
    
    .reward-item {
        font-size: 9px;
        padding: 3px 6px;
    }
	
	.time-limit {
        font-size: 11px;
    }
    
    .tier-badge {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    /* NPC List */
    .quests-container {
        padding: 5px;
    }
    
    .npc-section {
        padding: 10px;
    }
    
    .npc-section .npc-title {
        font-size: 18px;
    }
    
    .quests-table th,
    .quests-table td {
        padding: 6px 4px;
    }
    
    .rewards-list {
        gap: 2px;
    }
    
    .reward-item {
        font-size: 9px;
        padding: 2px 4px;
    }
}