/* Main Journal Container */
.journal-container {
    max-width: 1400px;
    margin: 0 auto;
    background: 
        url('../Pictures/paper.avif') center/cover,
        linear-gradient(135deg, rgba(244, 228, 188, 0.9), rgba(230, 220, 180, 0.9));
    background-blend-mode: overlay;
    border-radius: 15px;
    box-shadow: 
        0 0 30px rgba(0,0,0,0.5),
        inset 0 0 20px rgba(0,0,0,0.2);
    padding: 30px;
    position: relative;
    border: 3px solid #8b4513;
    margin-top: 20px;
}

.journal-container::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 2px solid rgba(101, 67, 33, 0.4);
    border-radius: 10px;
    pointer-events: none;
    box-shadow: 
        inset 2px 2px 8px rgba(0,0,0,0.2),
        inset -2px -2px 8px rgba(255,255,255,0.3);
}

/* Open Book Layout */
.book-pages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    min-height: 850px;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.left-page, .right-page {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.book-pages::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #654321, #8b4513, #654321);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Individual Pages */
.page {
    background: 
        url('../Pictures/paper.avif') center/cover,
        linear-gradient(135deg, rgba(248, 243, 230, 0.95), rgba(240, 235, 215, 0.95));
    background-blend-mode: overlay;
    border-radius: 10px;
    padding: 0;
    box-shadow: 
        inset 0 0 20px rgba(101, 67, 33, 0.1),
        0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 0%, rgba(139, 69, 19, 0.1) 2%, transparent 4%),
        linear-gradient(-45deg, transparent 0%, rgba(139, 69, 19, 0.1) 2%, transparent 4%),
        radial-gradient(circle at 20% 80%, rgba(139, 69, 19, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(139, 69, 19, 0.08) 1px, transparent 1px);
    pointer-events: none;
    z-index: 1;
    border-radius: 10px;
}

/* Tab System Styles */
.tab-navigation {
    background: 
        url('../Pictures/leather.jpg') center/cover,
        linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(101, 67, 33, 0.9));
    background-blend-mode: overlay;
    width: 60px;
    display: flex;
    flex-direction: column;
    border-radius: 10px 0 0 10px;
    position: relative;
    z-index: 2;
    border: 1px solid #654321;
}

.tab-button {
    background: rgba(139, 69, 19, 0.8);
    border: none;
    color: #f4e4bc;
    font-family: 'MedievalSharp', serif;
    font-size: 0.8em;
    padding: 15px 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(101, 67, 33, 0.5);
    writing-mode: vertical-lr;
    text-orientation: mixed;
    min-height: 80px;
}

.tab-button:hover {
    background: rgba(139, 69, 19, 1);
    transform: translateX(3px);
}

.tab-button.active {
    background: linear-gradient(135deg, #f4e4bc, #e8d7b0);
    color: #2c1810;
    transform: translateX(5px);
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.tab-button:first-child {
    border-radius: 10px 0 0 0;
}

.tab-button:last-child {
    border-bottom: none;
    border-radius: 0 0 0 10px;
}

/* Right Side Tab Navigation */
.tab-navigation-right {
    background: 
        url('../Pictures/leather.jpg') center/cover,
        linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(101, 67, 33, 0.9));
    background-blend-mode: overlay;
    width: 60px;
    display: flex;
    flex-direction: column;
    border-radius: 0 10px 10px 0;
    position: relative;
    z-index: 2;
    border: 1px solid #654321;
    order: 2; /* Place navigation on the right */
}

.tab-button-right {
    background: rgba(139, 69, 19, 0.8);
    border: none;
    color: #f4e4bc;
    font-family: 'MedievalSharp', serif;
    font-size: 0.8em;
    padding: 15px 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(101, 67, 33, 0.5);
    writing-mode: vertical-lr;
    text-orientation: mixed;
    min-height: 80px;
}

.tab-button-right:hover {
    background: rgba(139, 69, 19, 1);
    transform: translateX(-3px);
}

.tab-button-right.active {
    background: linear-gradient(135deg, #f4e4bc, #e8d7b0);
    color: #2c1810;
    transform: translateX(-5px);
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
}

.tab-button-right:first-child {
    border-radius: 0 10px 0 0;
}

.tab-button-right:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 0;
}

/* Right Page Layout */
.right-page {
    display: flex;
    flex-direction: row;
}

.right-page .tab-content-area {
    border-radius: 10px 0 0 10px;
    order: 1; /* Place content on the left */
}

/* Tab Content Area */
.tab-content-area {
    flex: 1;
    padding: 30px;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.tab-content {
    display: none;
    height: calc(100vh - 300px);
    width: 100%;
    max-width: 100%;
    min-height: 700px;
    max-height: 850px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.tab-content.active {
    display: block;
}

.tab-content h1 {
    font-family: 'MedievalSharp', serif;
    font-size: 2.2em;
    color: #654321;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tab-content h2 {
    font-family: 'MedievalSharp', serif;
    font-size: 1.5em;
    color: #8b4513;
    margin-bottom: 15px;
    border-bottom: 2px solid #d4c4a0;
    padding-bottom: 5px;
}

/* Essential Component Styles */

/* Notes Textarea */
.notes-textarea {
    width: 100%;
    height: 500px;
    max-height: 500px;
    background: rgba(244, 228, 188, 0.8);
    border: 2px solid #8b4513;
    border-radius: 5px;
    padding: 15px;
    font-family: 'Cinzel', serif;
    font-size: 1em;
    color: #2c1810;
    resize: vertical;
    margin-bottom: 15px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(8, 1fr);
    grid-auto-flow: column;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.stat-item {
    background: rgba(139, 69, 19, 0.1);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 8px;
    padding: 8px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    cursor: pointer;
}

.stat-item:hover {
    background: rgba(139, 69, 19, 0.2);
    border-color: rgba(139, 69, 19, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
}

.stat-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex-grow: 1;
}

.stat-name {
    font-size: 0.75em;
    font-weight: 600;
    color: #654321;
    margin-bottom: 1px;
    line-height: 1;
    text-align: left;
}

.stat-level {
    font-size: 0.8em;
    font-weight: bold;
    color: #2c1810;
    line-height: 1;
    text-align: left;
}

/* Player Lookup */
.player-lookup {
    margin-bottom: 25px;
    margin-right: 10px;
    padding: 20px;
    background: rgba(244, 228, 188, 0.3);
    border-radius: 10px;
    border: 2px solid rgba(139, 69, 19, 0.3);
}

.lookup-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.username-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 2px solid #8b4513;
    border-radius: 5px;
    background: rgba(244, 228, 188, 0.9);
    font-family: 'Cinzel', serif;
    font-size: 1em;
    color: #2c1810;
}

.username-input:focus {
    outline: none;
    border-color: #654321;
    box-shadow: 0 0 5px rgba(139, 69, 19, 0.3);
}

#lookup-btn {
    background: linear-gradient(135deg, #8b4513, #654321);
    color: #f4e4bc;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#lookup-btn:hover {
    background: linear-gradient(135deg, #654321, #8b4513);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* To-Do List Styles */
.todo-stats-panel {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(244, 228, 188, 0.3);
    border-radius: 10px;
    border: 2px solid rgba(139, 69, 19, 0.3);
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 10px;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.stat-label {
    font-size: 0.9em;
    color: #654321;
    margin-bottom: 5px;
    font-weight: 600;
}

.stat-value {
    font-size: 1.4em;
    font-weight: bold;
    color: #2c1810;
}

.todo-goals-container {
    background: rgba(244, 228, 188, 0.2);
    border-radius: 10px;
    padding: 20px;
    border: 2px solid rgba(139, 69, 19, 0.2);
}

.todo-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.primary-btn, .secondary-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background: linear-gradient(135deg, #8b4513, #654321);
    color: #f4e4bc;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #654321, #4a2c17);
    transform: translateY(-1px);
}

.secondary-btn {
    background: rgba(139, 69, 19, 0.2);
    color: #654321;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.secondary-btn:hover {
    background: rgba(139, 69, 19, 0.3);
}

.goals-list {
    min-height: 200px;
}

.goal-item {
    background: rgba(244, 228, 188, 0.5);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    flex-wrap: wrap;
    gap: 10px;
}

.goal-item:hover {
    background: rgba(244, 228, 188, 0.7);
    border-color: rgba(139, 69, 19, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.goal-item.completed {
    opacity: 0.7;
    background: rgba(139, 69, 19, 0.1);
}

.goal-content {
    flex: 1;
    min-width: 200px;
}

.goal-label {
    font-weight: 600;
    color: #2c1810;
    margin-bottom: 5px;
}

.goal-description {
    font-size: 0.9em;
    color: #654321;
}

.goal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.mark-complete-btn, .remove-goal-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Cinzel', serif;
}

.mark-complete-btn {
    background: #51cf66;
    color: white;
}

.mark-complete-btn:hover {
    background: #40c057;
}

.mark-complete-btn.completed {
    background: #868e96;
    opacity: 0.7;
}

.remove-goal-btn {
    background: #ff6b6b;
    color: white;
}

.remove-goal-btn:hover {
    background: #ff5252;
}

.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #654321;
    font-style: italic;
}

/* Quest Detail Content Styles */
.quest-section {
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid #d4c4a0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.quest-section h3 {
    font-family: 'MedievalSharp', serif;
    color: #654321;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.quest-section h4 {
    font-family: 'MedievalSharp', serif;
    color: #8b4513;
    margin: 15px 0 8px 0;
    font-size: 1em;
}

.quest-section p {
    color: #2c1810;
    line-height: 1.5;
    margin: 0;
}

.item-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.item-list li {
    padding: 3px 0;
    color: #654321;
}

.reward-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.reward-item {
    background: rgba(139, 69, 19, 0.2);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    color: #654321;
    border: 1px solid #d4c4a0;
}

/* Removed .completion-checkbox - no longer used */

/* Quest and Diary Styles */
.quest-filters {
    margin-bottom: 20px;
    margin-right: 10px;
    padding: 20px;
    background: rgba(244, 228, 188, 0.3);
    border-radius: 10px;
    border: 2px solid rgba(139, 69, 19, 0.3);
}

.quest-search {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 2px solid #8b4513;
    border-radius: 5px;
    background: rgba(244, 228, 188, 0.9);
    font-family: 'Cinzel', serif;
    font-size: 1em;
    color: #2c1810;
}

.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quest-filter {
    flex: 1;
    min-width: 150px;
    padding: 8px 12px;
    border: 2px solid #8b4513;
    border-radius: 5px;
    background: rgba(244, 228, 188, 0.9);
    font-family: 'Cinzel', serif;
    color: #2c1810;
}

.quest-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.quest-item {
    background: rgba(244, 228, 188, 0.5);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.quest-item:hover {
    background: rgba(244, 228, 188, 0.7);
    border-color: rgba(139, 69, 19, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quest-item.completed {
    opacity: 0.5;
    background: rgba(134, 204, 150, 0.514);
}

.quest-info {
    flex: 1;
    min-width: 200px;
}

.quest-info h3 {
    color: #2c1810;
    margin-bottom: 5px;
}

.quest-info p {
    color: #654321;
    font-size: 0.9em;
}

.quest-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.difficulty-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: capitalize;
}

.difficulty-badge.novice {
    background: #51cf66;
    color: white;
}

.difficulty-badge.intermediate {
    background: #339af0;
    color: white;
}

.difficulty-badge.experienced {
    background: #ff8c00;
    color: white;
}

.difficulty-badge.master {
    background: #e64980;
    color: white;
}

.difficulty-badge.grandmaster {
    background: #9c36b5;
    color: white;
}

.add-to-todo-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #8b4513, #654321);
    color: #f4e4bc;
    border: none;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    transition: all 0.2s ease;
}

.add-to-todo-btn:hover {
    background: linear-gradient(135deg, #654321, #4a2c17);
    transform: translateY(-1px);
}

.back-button {
    padding: 8px 16px;
    background: rgba(139, 69, 19, 0.2);
    color: #654321;
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.back-button:hover {
    background: rgba(139, 69, 19, 0.3);
}

/* Diary List */
.diary-list {
    max-height: 650px;
    overflow-y: auto;
    padding: 10px;
}

.diary-entry {
    margin-bottom: 20px;
    background: rgba(244, 228, 188, 0.3);
    border-radius: 10px;
    padding: 15px;
    border: 2px solid rgba(139, 69, 19, 0.3);
}

.diary-header-item {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c1810;
    margin-bottom: 10px;
    text-align: center;
    padding: 10px;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 8px;
}

.diary-difficulties {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.difficulty-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(244, 228, 188, 0.5);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 12px;
}

.difficulty-item:hover {
    background: rgba(244, 228, 188, 0.7);
    border-color: rgba(139, 69, 19, 0.5);
    transform: translateX(5px);
}

.difficulty-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.difficulty-indicator.easy {
    background: #51cf66;
}

.difficulty-indicator.medium {
    background: #339af0;
}

.difficulty-indicator.hard {
    background: #ff8c00;
}

.difficulty-indicator.elite {
    background: #e64980;
}

.difficulty-info {
    flex: 1;
}

.difficulty-name {
    font-weight: 600;
    color: #2c1810;
    margin-bottom: 2px;
}

.difficulty-progress {
    font-size: 0.9em;
    color: #654321;
}

.difficulty-arrow {
    color: #654321;
    font-size: 1.2em;
    font-weight: bold;
}

/* Completed Difficulty Styling */
.difficulty-item.completed {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    position: relative;
}

.difficulty-item.completed::before {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 15px;
    color: #28a745;
    font-size: 1.2em;
    font-weight: bold;
    z-index: 1;
}

.difficulty-item.completed .difficulty-name {
    color: #155724;
    font-weight: bold;
}

.difficulty-item.completed .difficulty-progress {
    color: #155724;
}

/* Slayer and Potion containers */
.slayer-container, .potion-container {
    padding: 20px;
    background: rgba(244, 228, 188, 0.2);
    border-radius: 10px;
    border: 2px solid rgba(139, 69, 19, 0.2);
    max-height: 800px;
    overflow-y: auto;
}

.slayer-selector, .potion-selector {
    margin-bottom: 20px;
}

.slayer-selector label, .potion-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #654321;
}

.monster-selector, .potion-selector select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #8b4513;
    border-radius: 5px;
    background: rgba(244, 228, 188, 0.9);
    font-family: 'Cinzel', serif;
    font-size: 1em;
    color: #2c1810;
}

.monster-info-container, .potion-info-container {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
}

.monster-placeholder, .potion-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #654321;
    font-style: italic;
}

.monster-info, .potion-info {
    background: rgba(244, 228, 188, 0.3);
    border-radius: 10px;
    padding: 20px;
    border: 2px solid rgba(139, 69, 19, 0.3);
}

.monster-header, .potion-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(139, 69, 19, 0.3);
}

.monster-section, .potion-section {
    margin-bottom: 20px;
}

.monster-section h4, .potion-section h4 {
    color: #654321;
    margin-bottom: 8px;
}

.monster-section p, .potion-section p {
    color: #2c1810;
    line-height: 1.4;
}

.ingredient-list {
    list-style: none;
    padding: 0;
}

.ingredient-list li {
    padding: 4px 0;
    color: #2c1810;
}

.potion-calculator {
    background: rgba(139, 69, 19, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.potion-calculator input {
    width: 100%;
    max-width: 200px;
    padding: 8px 12px;
    margin: 8px 0;
    border: 2px solid #8b4513;
    border-radius: 4px;
    background: rgba(244, 228, 188, 0.9);
    font-family: 'Cinzel', serif;
    color: #2c1810;
}

.calculation-results {
    margin-top: 15px;
    padding: 10px;
    background: rgba(244, 228, 188, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

/* Original To-Do List Styles */
#master-list-container {
    flex: 1;
    margin-bottom: 10px;
    background: rgba(244, 228, 188, 0.2);
    border-radius: 10px;
    padding: 20px;
    border: 2px solid rgba(139, 69, 19, 0.2);
    max-height: 30vh;
    overflow-y: auto;
}

#master-goals-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.goal-category {
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid #d4c4a0;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.goal-category h4 {
    margin: 0 0 8px 0;
    color: #654321;
    font-family: 'MedievalSharp', serif;
    font-size: 1.1em;
    border-bottom: 1px solid #d4c4a0;
    padding-bottom: 5px;
}

.goal-checkbox {
    margin-right: 8px;
    cursor: pointer;
    transform: scale(1.2);
}

/* Goal items within categories */
.goal-category .goal-item {
    margin-bottom: 10px;
    border-radius: 6px;
}

.goal-category .goal-item:last-child {
    margin-bottom: 0;
}

/* Requirements Container */
#requirements-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(244, 228, 188, 0.2);
    border-radius: 10px;
    border: 2px solid rgba(139, 69, 19, 0.2);
    min-height: 45vh;
    max-height: 45vh;
}

.requirements-tab-navigation {
    display: flex;
    background: rgba(139, 69, 19, 0.2);
    border-radius: 8px 8px 0 0;
    padding: 5px;
    gap: 5px;
}

.requirements-tab-button {
    flex: 1;
    padding: 8px 12px;
    background: rgba(139, 69, 19, 0.3);
    border: none;
    border-radius: 5px;
    color: #654321;
    font-family: 'Cinzel', serif;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.requirements-tab-button:hover {
    background: rgba(139, 69, 19, 0.5);
    color: #f4e4bc;
}

.requirements-tab-button.active {
    background: linear-gradient(135deg, #8b4513, #654321);
    color: #f4e4bc;
    font-weight: 600;
}

.requirements-tab-panel {
    display: none;
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.requirements-tab-panel.active {
    display: flex;
    flex-direction: column;
}

#skill-requirements {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(8, 1fr);
    grid-auto-flow: column;
    gap: 8px;
    flex: 1;
    max-height: 100%;
}

.requirement-item {
    background: rgba(139, 69, 19, 0.1);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    box-sizing: border-box;
}

.requirement-item.met {
    background: rgba(34, 139, 34, 0.2);
    border-color: rgba(34, 139, 34, 0.5);
    color: #228b22;
}

.requirement-item.unmet {
    background: rgba(255, 69, 0, 0.2);
    border-color: rgba(255, 69, 0, 0.5);
    color: #ff4500;
}

.requirement-skill-name {
    font-size: 0.7em;
    font-weight: 600;
    color: #654321;
    margin-bottom: 2px;
}

.requirement-level {
    font-size: 0.8em;
    font-weight: bold;
}

/* Task Steps */
.task-steps-container {
    max-height: 380px;
    overflow-y: auto;
    padding-right: 8px;
    margin-right: 2px;
    box-sizing: border-box;
}

.task-step-item {
    background: linear-gradient(135deg, #f4e4bc, #e8d5a3);
    border: 2px solid #d2b48c;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.task-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d2b48c;
}

.task-step-title {
    font-family: 'MedievalSharp', serif;
    font-size: 1.1em;
    color: #e6bb90;
    font-weight: 600;
}

.task-step-difficulty {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: capitalize;
}

.task-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-step-list li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(210, 180, 140, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-step-list li:last-child {
    border-bottom: none;
}

/* Removed .task-step-checkbox - no longer used */

.task-step-description {
    flex: 1;
    color: #2c1810;
    font-size: 0.9em;
    line-height: 1.3;
}

.task-step-list-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(210, 180, 140, 0.3);
}

.task-step-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.task-step-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.quest-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Completion Status Styling */
.quest-section.completed {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    position: relative;
}

.quest-section.completed::before {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 15px;
    color: #28a745;
    font-size: 1.5em;
    font-weight: bold;
}

.quest-section.completed h3 {
    color: #155724;
}

.mark-complete-btn.completed {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    cursor: default;
}

.mark-complete-btn.completed:hover {
    background: linear-gradient(135deg, #28a745, #20c997);
    transform: none;
}

.task-step-list-item:last-child {
    border-bottom: none;
}

.task-step-list-item.completed {
    opacity: 0.7;
}

.task-step-list-item.completed .task-step-description {
    text-decoration: line-through;
    color: #666;
}

.task-step-rewards {
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid #d4c4a0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.task-step-rewards h4 {
    margin: 0 0 8px 0;
    color: #654321;
    font-family: 'MedievalSharp', serif;
    font-size: 1.1em;
}

.task-step-rewards p {
    margin: 0;
    color: #2c1810;
    line-height: 1.4;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #f4e4bc, #e8d5a3);
    border: 3px solid #8b4513;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-family: 'Cinzel', serif;
}

.modal-header {
    background: linear-gradient(135deg, #8b4513, #654321);
    color: #f4e4bc;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-family: 'MedievalSharp', serif;
    font-size: 1.4em;
}

.modal-close {
    background: none;
    border: none;
    color: #f4e4bc;
    font-size: 1.8em;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(244, 228, 188, 0.2);
}

.modal-body {
    padding: 25px;
    color: #2c1810;
}

.modal-item-info {
    margin-bottom: 20px;
}

.modal-item-info h3 {
    margin: 0 0 10px 0;
    color: #654321;
    font-family: 'MedievalSharp', serif;
    font-size: 1.2em;
}

.modal-item-info p {
    margin: 0 0 10px 0;
    line-height: 1.4;
}

#modal-item-details {
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid #d4c4a0;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    font-size: 0.9em;
}

.modal-question {
    font-weight: bold;
    text-align: center;
    color: #654321;
    margin: 0;
    font-size: 1.1em;
}

.modal-footer {
    padding: 0 25px 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal-cancel {
    background: linear-gradient(135deg, #666, #555);
    color: #f4e4bc;
}

.modal-cancel:hover {
    background: linear-gradient(135deg, #555, #444);
    transform: translateY(-2px);
}

.modal-confirm {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
}

.modal-confirm:hover {
    background: linear-gradient(135deg, #357abd, #2968a3);
    transform: translateY(-2px);
}

.modal-remove {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
}

.modal-remove:hover {
    background: linear-gradient(135deg, #c82333, #bd2130) !important;
    transform: translateY(-2px);
}

/* Skill Level Input Styles */
.skill-level-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #654321;
}

.level-input-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.level-input {
    width: 80px;
    padding: 8px;
    border: 2px solid #8b4513;
    border-radius: 5px;
    background: rgba(244, 228, 188, 0.9);
    font-family: 'Cinzel', serif;
    font-size: 1em;
    text-align: center;
}

.level-info {
    color: #654321;
    font-size: 0.9em;
}

#current-level {
    font-weight: bold;
    color: #8b4513;
}

/* Requirements and Task Steps Styles */
.requirement-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid #d4c4a0;
    border-radius: 4px;
    padding: 4px 6px;
    position: relative;
    min-height: 32px;
    font-size: 0.85em;
    justify-content: space-between;
}

.requirement-item.needs-training {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
}

.requirement-item.achievable {
    background: rgba(81, 207, 102, 0.2);
    border-color: #51cf66;
}

.requirement-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    flex-shrink: 0;
    text-align: left;
    display: inline-block;
    object-fit: contain;
}

.requirement-item.needs-training .requirement-icon {
    opacity: 1;
}

.requirement-level {
    font-size: 1.1em;
    color: #654321;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    flex: 1;
    margin-left: 8px;
    display: inline-block;
}

.requirement-item.needs-training .requirement-level {
    color: #dc3545;
    font-weight: bold;
}

.task-step-detail {
    border: 2px solid #d4c4a0;
    border-radius: 10px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(244, 228, 188, 0.8), rgba(230, 220, 180, 0.8));
    overflow: hidden;
}

.task-step-detail.completed {
    opacity: 0.7;
    border-color: #51cf66;
    background: linear-gradient(135deg, rgba(81, 207, 102, 0.1), rgba(81, 207, 102, 0.2));
}

.task-step-header {
    padding: 12px 15px;
    background: linear-gradient(135deg, #8b4513, #654321);
    color: #f4e4bc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-step-title {
    font-weight: 600;
    font-size: 1.1em;
}

.task-step-difficulty {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
}

.task-step-difficulty.easy {
    background: #51cf66;
    color: white;
}

.task-step-difficulty.medium {
    background: #ffd43b;
    color: #2c1810;
}

.task-step-difficulty.hard {
    background: #ff6b6b;
    color: white;
}

.task-step-difficulty.elite {
    background: #9c36b5;
    color: white;
}

.task-step-content {
    padding: 15px;
}

.task-description h4 {
    color: #2c1810;
    margin: 0 0 8px 0;
    font-size: 1em;
}

.task-description p {
    margin: 0 0 15px 0;
    color: #2c1810;
    line-height: 1.5;
}

.task-requirements h4 {
    color: #2c1810;
    margin: 15px 0 8px 0;
    font-size: 1em;
}

.requirement-list {
    margin: 0 0 15px 0;
    padding-left: 20px;
    color: #2c1810;
}

.requirement-list li {
    margin-bottom: 4px;
    line-height: 1.4;
}

.task-notes h4 {
    color: #2c1810;
    margin: 15px 0 8px 0;
    font-size: 1em;
}

.task-notes p {
    margin: 0 0 15px 0;
    color: #666;
    font-style: italic;
    line-height: 1.5;
}

.task-actions {
    border-top: 1px solid rgba(139, 69, 19, 0.2);
    padding-top: 15px;
    margin-top: 15px;
}

/* Removed .task-completion-check - no longer used */

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(8, 1fr);
    grid-auto-flow: column;
    gap: 6px;
    height: calc(100% - 50px);
    max-height: 400px;
}

/* Wiki Link Styles */
.wiki-link {
    color: #8b4513;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.wiki-link:hover {
    color: #654321;
    text-decoration: none;
}

#monster-name .wiki-link {
    color: #654321;
    font-size: 1.2em;
}

#monster-name .wiki-link:hover {
    color: #8b4513;
}

/* Group Iron Stats Styling */
.group-lookup-section {
    margin-bottom: 20px;
    margin-right: 10px;
    padding: 20px;
    background: rgba(244, 228, 188, 0.3);
    border-radius: 10px;
    border: 2px solid rgba(139, 69, 19, 0.3);
}

.group-stats-container {
    background: rgba(244, 228, 188, 0.5);
    border: 2px solid #8b4513;
    border-radius: 10px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
    margin-right: 10px;
}

.group-header {
    background: linear-gradient(135deg, #f4e4bc, #e8d5a3);
    color: #2e1a0a;
    border: 2px solid #8b4513;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.group-header h2 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
    color: #8b4513;
    font-weight: 700;
    font-family: 'MedievalSharp', serif;
}

.group-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.group-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.group-stat-label {
    font-size: 0.9em;
    color: #654321;
    margin-bottom: 5px;
    font-weight: 600;
}

.group-stat-value {
    font-size: 1.4em;
    font-weight: bold;
    color: #2c1810;
}

.group-members {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.group-member {
    background: rgba(244, 228, 188, 0.3);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.3);
}

.member-header h3 {
    margin: 0;
    color: #654321;
    font-family: 'MedievalSharp', serif;
    font-size: 1.2em;
}

.member-total-level {
    color: #8b4513;
    font-weight: 600;
    font-size: 1em;
}

.member-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(8, 1fr);
    grid-auto-flow: column;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.member-stat-item {
    background: rgba(139, 69, 19, 0.1);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 8px;
    padding: 6px;
    position: relative;
    min-height: 45px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}

.member-stat-item .stat-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

.member-stat-item .stat-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex-grow: 1;
}

.member-stat-item .stat-name {
    font-size: 0.7em;
    font-weight: 600;
    color: #654321;
    margin-bottom: 1px;
    line-height: 1;
    text-align: left;
}

.member-stat-item .stat-level {
    font-size: 0.75em;
    font-weight: bold;
    color: #2c1810;
    line-height: 1;
    text-align: left;
}

.no-stats {
    text-align: center;
    color: #8b4513;
    font-style: italic;
    padding: 20px;
}

.loading-state {
    text-align: center;
    padding: 40px;
    color: #654321;
}

.loading-spinner {
    border: 4px solid rgba(139, 69, 19, 0.3);
    border-top: 4px solid #8b4513;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-state {
    text-align: center;
    padding: 40px;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.3);
    border-radius: 10px;
    margin-right: 10px;
}

#group-lookup-btn {
    background: linear-gradient(135deg, #8b4513, #654321);
    color: #f4e4bc;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#group-lookup-btn:hover {
    background: linear-gradient(135deg, #654321, #8b4513);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Collection Log Styling */
.collection-lookup-section {
    margin-bottom: 20px;
    margin-right: 10px;
    padding: 20px;
    background: rgba(244, 228, 188, 0.3);
    border-radius: 10px;
    border: 2px solid rgba(139, 69, 19, 0.3);
}

.collection-note {
    margin-top: 10px;
    font-size: 0.9em;
    color: #8b4513;
    font-style: italic;
    text-align: center;
}

.collection-log-container {
    background: rgba(244, 228, 188, 0.5);
    border: 2px solid #8b4513;
    border-radius: 10px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
    margin-right: 10px;
}

.collection-header {
    background: linear-gradient(135deg, #f4e4bc, #e8d5a3);
    color: #2e1a0a;
    border: 2px solid #8b4513;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.collection-header h2 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
    color: #8b4513;
    font-weight: 700;
    font-family: 'MedievalSharp', serif;
}

.collection-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.collection-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.collection-stat-label {
    font-size: 0.9em;
    color: #654321;
    margin-bottom: 5px;
    font-weight: 600;
}

.collection-stat-value {
    font-size: 1.4em;
    font-weight: bold;
    color: #2c1810;
}

.collection-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.collection-category {
    background: rgba(244, 228, 188, 0.3);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category-header:hover {
    background: rgba(139, 69, 19, 0.1);
    border-radius: 5px;
}

.category-header h3 {
    margin: 0;
    color: #654321;
    font-family: 'MedievalSharp', serif;
    font-size: 1.1em;
}

.category-progress {
    color: #8b4513;
    font-weight: 600;
    font-size: 0.9em;
}

.category-items {
    display: none;
    margin-top: 10px;
}

.category-items.expanded {
    display: block;
}

.collection-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.collection-item {
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 5px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.collection-item.obtained {
    background: rgba(34, 139, 34, 0.2);
    border-color: rgba(34, 139, 34, 0.5);
}

.collection-item.not-obtained {
    background: rgba(139, 69, 19, 0.1);
    border-color: rgba(139, 69, 19, 0.3);
    opacity: 0.6;
}

.item-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

.item-name {
    font-size: 0.8em;
    color: #2c1810;
    font-weight: 500;
}

.item-quantity {
    font-size: 0.7em;
    color: #654321;
    margin-left: auto;
}

#collection-lookup-btn {
    background: linear-gradient(135deg, #8b4513, #654321);
    color: #f4e4bc;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#collection-lookup-btn:hover {
    background: linear-gradient(135deg, #654321, #8b4513);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Collection Log Sync Instructions */
.collection-sync-instructions {
    margin: 20px 0;
    padding: 0;
}

.sync-notice {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sync-notice h3 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 10px;
}

.sync-steps {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.sync-steps h4 {
    color: #495057;
    margin-top: 0;
}

.sync-steps ol {
    margin: 10px 0;
    padding-left: 20px;
}

.sync-steps li {
    margin: 8px 0;
    line-height: 1.5;
}

.sync-steps ul {
    margin: 5px 0;
    padding-left: 20px;
}

.sync-steps ul li {
    margin: 3px 0;
}

.sync-tip {
    background: rgba(23, 162, 184, 0.1);
    border-left: 4px solid #17a2b8;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-top: 15px;
}

.sync-tip p {
    margin: 0;
    color: #0c5460;
}

/* Player Stats Collection Log Summary */
#player-collection-summary {
    margin: 20px 0;
    margin-right: 10px;
}

#player-collection-summary.collection-header {
    background: linear-gradient(135deg, #f4e4bc, #e8d5a3);
    color: #2e1a0a;
    border: 2px solid #8b4513;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

#player-collection-summary h2 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
    color: #8b4513;
    font-weight: 700;
    font-family: 'MedievalSharp', serif;
}

#player-collection-summary .collection-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

#player-collection-summary .collection-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

#player-collection-summary .collection-stat-label {
    font-size: 1.0em;
    color: #654321;
    margin-bottom: 8px;
    font-weight: 600;
}

#player-collection-summary .collection-stat-value {
    font-size: 1.6em;
    font-weight: bold;
    color: #2c1810;
}

/* Collection Log Error Display */
#player-collection-summary.collection-error {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    color: #856404;
    max-height: 400px;
    overflow-y: auto;
}

.collection-error-content {
    text-align: left;
    padding: 15px;
    font-size: 0.85em;
}

.collection-error-content h2 {
    color: #856404;
    margin: 0 0 10px 0;
    font-size: 1.3em;
    text-align: center;
}

.collection-error-content > p {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.0em;
}

.templeosrs-setup {
    background: rgba(255, 255, 255, 0.8);
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
    max-height: 250px;
    overflow-y: auto;
}

.templeosrs-setup h3 {
    color: #495057;
    margin: 0 0 8px 0;
    font-size: 1.0em;
    font-weight: bold;
}

.templeosrs-setup ol {
    margin: 0;
    padding-left: 16px;
    font-size: 0.9em;
}

.templeosrs-setup li {
    margin: 6px 0;
    line-height: 1.3;
}

.templeosrs-setup ul {
    margin: 3px 0;
    padding-left: 16px;
}

.templeosrs-setup ul li {
    margin: 2px 0;
    font-size: 0.85em;
}

.error-note {
    background: rgba(23, 162, 184, 0.1);
    border-left: 3px solid #17a2b8;
    padding: 8px;
    border-radius: 0 6px 6px 0;
    margin-top: 10px;
}

.error-note p {
    margin: 0;
    color: #0c5460;
    font-style: italic;
    font-size: 0.8em;
}