/* Full Width Container */
.container-full {
    max-width: 100%;
    width: 100%;
    padding: 0 var(--spacing-lg);
}

/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    max-width: 100%;
    width: 100%;
}

.main-grid .section {
    max-width: 100%;
}

@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

/* Inline Quest Selection Styles */
.quest-actions-inline {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.quest-search-inline {
    margin: 15px 0;
}

.quest-columns-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.quest-column-inline {
    display: flex;
    flex-direction: column;
}

.quest-column-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border-radius: 8px 8px 0 0;
    border: 2px solid var(--border-color);
    border-bottom: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.quest-column-header-inline h5 {
    margin: 0;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.quest-list-inline {
    max-height: 800px;
    overflow-y: auto;
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: var(--bg-primary);
    padding: 12px;
    flex: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.quest-list-inline::-webkit-scrollbar {
    width: 8px;
}

.quest-list-inline::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

.quest-list-inline::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.quest-list-inline::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Quest Selection Modal Styles */

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

.quest-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.quest-column {
    display: flex;
    flex-direction: column;
}

.quest-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #2a2a2a;
    border-radius: 6px 6px 0 0;
    border: 1px solid #444;
    border-bottom: none;
}

.quest-column-header h5 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.quest-count {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #000;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.6);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.quest-selection-header h4 {
    margin: 0;
    color: #fff;
}

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

.quest-search {
    margin: 20px 0;
}

.quest-search-input {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s;
}

.quest-search-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.quest-list {
    max-height: 800px;
    overflow-y: auto;
    border: 1px solid #444;
    border-radius: 0 0 6px 6px;
    background: #1a1a1a;
    padding: 15px;
    flex: 1;
}

.quest-list-selected {
    background: var(--bg-primary);
}

.quest-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    margin-bottom: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s;
}

.quest-item:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: translateX(2px);
}

.quest-item.hidden {
    display: none;
}

/* Selected quest styling */
.quest-list-selected .quest-item {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.quest-list-selected .quest-item:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: var(--primary-color);
}

.quest-info {
    flex: 1;
}

.quest-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 13px;
}

.quest-rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.quest-reward-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
}

.reward-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.quest-requirements {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 6px;
    opacity: 0.7;
}

/* Scrollbar styling for quest list */
.quest-list::-webkit-scrollbar {
    width: 8px;
}

.quest-list::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.quest-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.quest-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Prioritized Quest Styling */
.quest-item.quest-prioritized {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.1) 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    position: relative;
}

.quest-item.quest-prioritized::before {
    content: '⭐';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
    animation: pulse 2s ease-in-out infinite;
}

.quest-item.quest-prioritized:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 165, 0, 0.2) 100%);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Context Menu Styling */
.quest-context-menu {
    position: absolute;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    min-width: 200px;
    overflow: hidden;
}

.context-menu-header {
    padding: 10px 15px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.context-menu-item {
    padding: 10px 15px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.context-menu-item:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Validation Error Modal */
.validation-error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.validation-error-modal {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.validation-error-header {
    padding: 20px;
    background: rgba(244, 67, 54, 0.1);
    border-bottom: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 12px 12px 0 0;
    position: relative;
}

.validation-error-header h3 {
    margin: 0;
    color: #f44336;
    font-size: 18px;
    padding-right: 40px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #f44336;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #fff;
}

.validation-error-body {
    padding: 20px;
}

.validation-error-body p {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.validation-error-body p:last-child {
    margin-bottom: 0;
}

.validation-error-footer {
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
    text-align: right;
}

.validation-error-btn {
    padding: 10px 24px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.validation-error-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.validation-error-btn-primary {
    background: var(--primary-color);
}

.validation-error-btn-primary:hover {
    background: var(--primary-hover);
}

.validation-error-btn:not(.validation-error-btn-primary) {
    background: #666;
}

.validation-error-btn:not(.validation-error-btn-primary):hover {
    background: #555;
}

.validation-confirm-btn {
    background: var(--success-color) !important;
    color: #000 !important;
    font-weight: 600;
}

.validation-confirm-btn:hover {
    background: #00CC00 !important;
    box-shadow: 0 4px 8px rgba(0, 255, 0, 0.3);
}

.validation-cancel-btn {
    background: var(--danger-color) !important;
    color: #fff !important;
    font-weight: 600;
}

.validation-cancel-btn:hover {
    background: #CC0000 !important;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.validation-error-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.validation-error-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Removal Confirmation Buttons */
.removal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.removal-btn-yes {
    background: #f44336;
    color: #fff;
}

.removal-btn-yes:hover {
    background: #d32f2f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

.removal-btn-no {
    background: var(--primary-color);
    color: #fff;
}

.removal-btn-no:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.removal-btn-cancel {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.removal-btn-cancel:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-secondary);
}
