.quest-journal-modal {
    display: flex;
    flex-direction: column;
    width: 95vw;
    max-width: 1400px;
    height: 90%;
    max-height: 90%;
    overflow: hidden;
}

.quest-journal-modal .game-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
    /* Manage scroll internally */
}

/* Tabs - matching Workbench style but full width split */
.tab-container {
    display: flex;
    gap: 10px;
}

.journal-tab {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    color: #a0aec0;
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    clip-path: var(--game-clip-path);
    text-align: center;
    border-bottom: none;
    /* Override old */
}

.journal-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.journal-tab.active {
    background: #3182ce;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-color: transparent;
    /* Override old */
}

/* Main Layout */
.journal-layout {
    display: flex;
    flex-direction: row;
    height: 100%;
    overflow: hidden;
}

/* Quest List Column */
.quest-list-column {
    width: 40%;
    min-width: 300px;
    border-right: 1px solid var(--game-border-color);
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Search Bar (Game Style) - Removed (using Game.css global) */
.game-search-container {
    margin: 10px;
}

/* Quest List Area */
.quest-list-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    padding-bottom: 60px;
}

/* Quest List Cards */
.quest-list-item {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    clip-path: var(--game-clip-path);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quest-list-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.quest-list-item.selected {
    border-color: var(--game-color-primary);
    box-shadow: 0 0 0 1px var(--game-color-primary);
}

.quest-list-item h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #eee;
    font-weight: 600;
}

.quest-card-type {
    align-self: flex-start;
    font-size: 0.75rem;
    padding: 2px 8px;
    clip-path: var(--game-clip-path);
    background: rgba(0, 0, 0, 0.3);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quest-list-item.selected h4 {
    color: var(--game-color-primary);
}

.quest-status-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-active {
    background-color: #2196f3;
    box-shadow: 0 0 5px #2196f3;
}

.status-completed {
    background-color: #4caf50;
    box-shadow: 0 0 5px #4caf50;
}

/* Pagination - Sticky at Bottom */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid var(--game-border-color);
    background: rgba(18, 18, 18, 0.95);
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-top: auto;
}

/* Right Column: Quest Details */
.quest-details-column {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.quest-details-header {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.quest-details-header h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--game-color-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.quest-giver-info {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    clip-path: var(--game-clip-path);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.quest-giver-image {
    width: 100px;
    height: 100px;
    clip-path: var(--game-clip-path);
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    background: var(--game-bg-app)
}

.quest-giver-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

.label {
    color: #888;
    margin-right: 5px;
}

.value {
    color: #ddd;
    font-weight: 500;
}

.quest-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 30px;
    white-space: pre-wrap;
    background: rgba(0, 0, 0, 0.1);
    padding: 15px;
    clip-path: var(--game-clip-path);
    border-left: 2px solid var(--game-color-primary);
}

.quest-section-title {
    font-size: 0.9rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    margin-top: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
    display: inline-block;
}

.objective-list,
.rewards-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.objective-item {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #ccc;
    clip-path: var(--game-clip-path);
    display: flex;
    align-items: center;
}

.objective-item::before {
    content: "○";
    margin-right: 10px;
    color: #aaa;
    font-weight: bold;
}

.objective-item.met {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    color: #a5d6a7;
    text-decoration: none;
}

.objective-item.met::before {
    content: "✓";
    color: #4caf50;
}

.rewards-list li {
    padding: 10px;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    clip-path: var(--game-clip-path);
    display: flex;
    align-items: center;
}

.rewards-list li::before {
    content: "🎁";
    margin-right: 10px;
}

.history-dates {
    margin-top: auto;
    padding-top: 30px;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.completion-text {
    font-style: italic;
    color: #b0bec5;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid #b0bec5;
    clip-path: var(--game-clip-path);
    margin-bottom: 20px;
}

.empty-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 1.2rem;
    font-style: italic;
    background: repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.1) 10px,
            rgba(0, 0, 0, 0.15) 10px,
            rgba(0, 0, 0, 0.15) 20px);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Global Quest Styles */
.objective-item.global-objective {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.3);
    padding-bottom: 12px;
}

.objective-item.global-objective::before {
    content: none;
}

.objective-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-bottom: 4px;
}

.completed-badge {
    font-size: 0.8rem;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.global-progress-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 6px;
}

.progress-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill.global {
    height: 100%;
    background: linear-gradient(90deg, #2196f3, #64b5f6);
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
    transition: width 0.5s ease-out;
}

.personal-contribution {
    font-size: 0.85rem;
    color: #ccc;
    text-align: right;
    margin-top: 4px;
}

.contribution-value {
    color: #ffd700;
    font-weight: bold;
}