/**
 * Global Slay System CSS for SkillForge
 * 
 * This file provides centralized styling for the proof modal and modifier inputs
 * that can be used across all pages (Core Skills, Quest, Reading Room, and Challenges)
 * 
 * Uses the exact original styling from user_challenges.css
 */

:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f1c40f;
    --text-color: #333333;
    --background-color: #ffffff;
    --border-color: #cccccc;
    --heading-font: 'Press Start 2P', cursive;
    --body-font: 'VT323', 'Courier New', Courier, monospace;
    --base-font-size: 16px;
    --line-height: 1.5;
    --h1-font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
    --h1-font-size: 32px;
    --h1-font-weight: 700;
    --h1-line-height: 1.2;
    --h1-letter-spacing: 0px;
    --h1-text-shadow: 2px 2px 0px #000000;
    --h1-color: #8B4513;
    --h2-font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
    --h2-font-size: 24px;
    --h2-font-weight: 700;
    --h2-line-height: 1.3;
    --h2-letter-spacing: 0px;
    --h2-text-shadow: 2px 2px 0px #000000;
    --h2-color: #ffdead;
    --h3-font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
    --h3-font-size: 16px;
    --h3-font-weight: 600;
    --h3-line-height: 1.4;
    --h3-letter-spacing: 0px;
    --h3-text-shadow: 1px 1px 0px #000000;
    --h3-color: #b3ffb3;
    --h4-font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
    --h4-font-size: 14px;
    --h4-font-weight: 500;
    --h4-line-height: 1.4;
    --h4-letter-spacing: 0px;
    --h4-text-shadow: 1px 1px 0px #000000;
    --h4-color: #c0e0c0;
    --h5-font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
    --h5-font-size: 16px;
    --h5-font-weight: 400;
    --h5-line-height: 1.5;
    --h5-letter-spacing: 0px;
    --h5-text-shadow: none;
    --h5-color: #333333;
    --h6-font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
    --h6-font-size: 14px;
    --h6-font-weight: 400;
    --h6-line-height: 1.5;
    --h6-letter-spacing: 0px;
    --h6-text-shadow: none;
    --h6-color: #4a90e2;
    --table-header-bg: #f2f2f2;
    --table-header-text: #333333;
    --table-row-bg: #ffffff;
    --table-row-alt-bg: #f9f9f9;
    --table-border-color: #ddd;
    --table-padding: 12px;
    --table-border-width: 1px;
    --table-border-radius: 4px;
    --border-radius: 4px;
    --padding: 12px;
    --margin: 8px;
    --cs-primary: #8B4513;
    --cs-secondary: #D2691E;
    --cs-accent: #FFD700;
    --cs-success: #228B22;
    --cs-warning: #FF8C00;
    --cs-error: #DC143C;
    --cs-bg: #F5F5DC;
    --cs-card-bg: #FFF8DC;
    --cs-text: #2F4F4F;
    --cs-border: #DEB887;
    --cs-shadow: rgba(139, 69, 19, 0.1);
}

/* ===== PROOF MODAL STYLES ===== */

/* General Modal Container */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

/* Modal Container */
#proofModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    position: relative;
    z-index: 10000;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#proofModal .modal-content,
#slayRewardModal .modal-content {
    background-image: url('../images/ui/submit_slay_bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0 auto;
    padding: 20px;
    border: 4px solid #8B2E15;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    box-shadow: 8px 8px 0 #5D1F0E, -8px -8px 0 #5D1F0E, 8px -8px 0 #5D1F0E, -8px 8px 0 #5D1F0E,
                  -16px -16px 0 #3D1005, 16px 16px 0 #3D1005, 16px -16px 0 #3D1005, -16px 16px 0 #3D1005;
    border-radius: 8px;
    text-shadow: 2px 2px #000;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Press Start 2P', cursive;
    color: #fff;
}

#approvalModal .modal-content,
#feedbackModal .modal-content {
    background-image: url('../images/page_bg/qualityControl.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-color: rgba(0, 0, 0, 0.85); /* Dark overlay for readability */
    margin: 0 auto;
    padding: 20px;
    border: 4px solid #8B2E15;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    box-shadow: 8px 8px 0 #5D1F0E, -8px -8px 0 #5D1F0E, 8px -8px 0 #5D1F0E, -8px 8px 0 #5D1F0E,
                  -16px -16px 0 #3D1005, 16px 16px 0 #3D1005, 16px -16px 0 #3D1005, -16px 16px 0 #3D1005;
    border-radius: 8px;
    text-shadow: 2px 2px #000;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Press Start 2P', cursive;
    color: #fff;
}

/* Modal Header - Hidden for proof modal */
.modal-header {
    display: none;
}

#proofModal .modal-header {
    display: none !important;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

#proofModal .modal-header h2 {
    margin: 0;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    text-shadow: 2px 2px #000;
}

#slayRewardModal .modal-header,
#approvalModal .modal-header,
#feedbackModal .modal-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 2px solid #8B2E15;
    margin-bottom: 15px;
}

#slayRewardModal .modal-header h2,
#approvalModal .modal-header h2,
#feedbackModal .modal-header h2 {
    margin: 0;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    text-shadow: 2px 2px #000;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

#proofModal .modal-header .close,
#slayRewardModal .modal-header .close,
#approvalModal .modal-header .close,
#feedbackModal .modal-header .close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#proofModal .modal-header .close:hover,
#proofModal .modal-header .close:focus,
#slayRewardModal .modal-header .close:hover,
#slayRewardModal .modal-header .close:focus,
#approvalModal .modal-header .close:hover,
#approvalModal .modal-header .close:focus,
#feedbackModal .modal-header .close:hover,
#feedbackModal .modal-header .close:focus {
    color: #fff;
    text-decoration: none;
}

/* Modal Body */
.modal-body {
    padding: 20px;
    color: #000;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

#proofModal .modal-body,
#slayRewardModal .modal-body,
#approvalModal .modal-body,
#feedbackModal .modal-body {
    padding: 20px;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: 2px 2px #000;
    background: rgba(0, 0, 0, 0.3); /* Additional opacity for content area */
    border-radius: 4px;
}

#approvalModal .modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 2px solid #daa520;
    background: #fff;
    padding: 5px;
}

#approvalModal .modal-body .written-proof {
    background: rgba(0, 0, 0, 0.6); /* More opaque for better readability */
    border: 1px solid rgba(255,255,255,0.4);
    padding: 15px;
    border-radius: 4px;
    white-space: pre-wrap;
    color: #fff;
    text-shadow: 1px 1px #000;
}

#approvalModal .modal-body > div > div {
    background: rgba(0, 0, 0, 0.5); /* Opaque background for description and proof sections */
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

/* ===== PROOF TYPE STYLES ===== */

.proof-type-row {
    display: flex;
    align-items: flex-start;
    margin: 4px 0;
    padding: 6px;
    justify-content: flex-start;
}

.proof-type-row label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    color: #fff;
    flex-grow: 0;
    font-size: 0.8rem;
    text-shadow: 2px 2px #000;
    text-align: left;
}

.proof-type-checkbox {
    margin-right: 12px;
    transform: scale(1.2);
}

.proof-type-checkbox:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.proof-type-input {
    margin-left: 10px;
    flex-shrink: 0;
    text-align: left;
}

/* ===== MODIFIER INPUTS SECTION ===== */

#proofModal .modifier-inputs-section,
.modifier-inputs-section {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(58, 46, 40, 0.85);
    border: 2px solid #5D1F0E;
    border-radius: 5px;
    box-shadow: 5px 5px 0 #2A1E18;
}

/* ===== SUBMIT EVIDENCE CARD ===== */

.submit-evidence-card {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(58, 46, 40, 0.85);
    border: 2px solid #5D1F0E;
    border-radius: 8px;
    box-shadow: 5px 5px 0 #2A1E18;
}

.submit-evidence-card h4 {
    font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 15px 0;
    text-align: left;
}

/* ===== FINALIZE SLAY HEADER ===== */

.finalize-slay-header {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(74, 62, 56, 0.85);
    border: 2px solid #6D2F1E;
    border-radius: 8px;
    box-shadow: 4px 4px 0 #2A1E18;
}

.finalize-slay-header h2 {
    font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

.finalize-slay-header .challenge-title {
    color: #ccc;
    font-family: 'VT323', 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin: 8px 0 0 0;
    text-align: center;
}

.modifier-inputs-section h4 {
    font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 15px 0;
    text-align: left;
}

.modifier-group {
    background-color: rgba(74, 62, 56, 0.85);
    border: 1px solid #6D2F1E;
    padding: 6px;
    margin: 4px 0;
    border-radius: 3px;
    box-shadow: 3px 3px 0 #2A1E18;
}

.modifier-group h6 {
    font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 4px 0;
    text-align: left;
    width: 100%;
    color: inherit !important;
    text-shadow: none !important;
}

#proofModal .modifier-description,
.modifier-description {
    color: #ffffff !important;
    font-size: 0.5rem !important;
    margin: 0 0 4px 0 !important;
    font-style: italic !important;
    text-shadow: 1px 1px #000 !important;
    text-align: left !important;
    width: 100% !important;
}

/* Ensure h6 elements in the proof modal have no color styling */
#proofModal .modifier-group h6 {
    color: inherit !important;
    text-shadow: none !important;
}

.modifier-input-row {
    margin: 3px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    text-align: left;
}

#proofModal .modifier-input-row label,
.modifier-input-row label {
    font-family: var(--body-font) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    text-align: left !important;
    width: 100% !important;
    color: inherit !important;
    display: block !important;
    margin-bottom: 5px !important;
}

.modifier-input-row input,
.modifier-input-row select {
    background: #ffffff;
    border: 2px solid #cccccc;
    border-radius: 4px;
    padding: 6px 8px;
    color: #333333;
    font-family: 'VT323', 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    transition: all 0.2s ease;
}

.modifier-input-row input:focus,
.modifier-input-row select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}

.modifier-input-row input::placeholder {
    color: #cccccc;
    opacity: 1;
}

.modifier-input-row select option {
    background: #ffffff;
    color: #333333;
}

/* Make number inputs narrower for page counts */
.modifier-input-row input[type="number"] {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
}

/* ===== PROOF INPUT STYLES ===== */

.proof-input {
    background: #ffffff;
    border: 2px solid #cccccc;
    border-radius: 4px;
    padding: 8px 12px;
    color: #333333;
    font-family: 'VT323', 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    transition: all 0.2s ease;
}

.proof-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}

.proof-input::placeholder {
    color: #cccccc;
    opacity: 1;
}

/* File upload styling */
.custom-file-label {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: normal;
    border: 1px solid #45a049;
    text-align: center;
    min-width: 100px;
    font-size: 0.8rem;
    margin-top: 2px;
}

.custom-file-label:hover {
    background: #45a049;
}

.file-chosen {
    color: #4CAF50;
    font-style: italic;
}

/* ===== ACTION BUTTONS ===== */

#proofModal .action-btn,
.action-btn {
    background-color: #8B2E15 !important;
    color: white !important;
    border: 3px solid #5D1F0E !important;
    padding: 18px 20px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-size: 16px !important;
    margin: 4px 2px !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    font-family: 'Press Start 2P', cursive !important;
    font-weight: normal !important;
    min-width: 120px !important;
    text-shadow: 2px 2px #000 !important;
    box-shadow: 4px 4px 0 #3D1005 !important;
}

.action-btn.primary {
    background: #8B2E15;
    border: 3px solid #5D1F0E;
}

.action-btn.primary:hover {
    background: #5D1F0E;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #3D1005;
}

.action-btn.secondary {
    background: #5D1F0E;
    color: white;
    border: 3px solid #3D1005;
    text-shadow: 2px 2px #000;
}

.action-btn.secondary:hover {
    background: #3D1005;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #2A1E18;
}

/* ===== PROOF ACTIONS ===== */

.proof-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    width: 100%;
}

/* Proof actions use the general action-btn styles above */

/* Special styling for the Submit & Slay button */
#proofModal .slay-button,
.slay-button {
    background-color: #FF8C00 !important;
    color: white !important;
    border: 3px solid #C04E26 !important;
    padding: 18px 36px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-size: 20px !important;
    margin: 20px auto !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    font-family: 'Press Start 2P', cursive !important;
    font-weight: normal !important;
    min-width: 220px !important;
    text-shadow: 2px 2px #000 !important;
    box-shadow: 7px 7px 0 #8B2E15 !important;
    transition: all 0.1s ease !important;
}

.slay-button:hover {
    background-color: #C04E26;
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 #8B2E15;
}

/* ===== REWARDS MODAL STYLES ===== */

/* Modal actions layout */
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #5D1F0E;
}

/* ===== REWARD DISPLAY STYLES ===== */

.reward-total {
    font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
    font-size: 1.8em;
    font-weight: bold;
    margin: 6px 0;
    color: #FF8C00;
    text-align: center;
    text-shadow: 2px 2px #000;
}

.reward-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(58, 46, 40, 0.85);
    border: 2px solid #5D1F0E;
    border-radius: 8px;
    box-shadow: 5px 5px 0 #2A1E18;
}

.reward-item {
    width: 140px;
    text-align: center;
    font-size: 0.8em;
    position: relative;
    cursor: pointer;
    background-color: rgba(74, 62, 56, 0.85);
    border: 1px solid #6D2F1E;
    border-radius: 6px;
    padding: 8px;
    box-shadow: 3px 3px 0 #2A1E18;
    transition: all 0.2s ease;
}

.reward-item:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #2A1E18;
}

.reward-item img {
    width: 128px;
    height: 128px;
    object-fit: contain;
    border: 2px solid #8B2E15;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.9);
}

.reward-item .qty {
    position: absolute;
    bottom: 2px;
    right: 6px;
    background: #FF8C00;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: bold;
    text-shadow: 1px 1px #000;
    border: 1px solid #C04E26;
}

.reward-item p {
    margin: 8px 0 0 0;
    color: #fff;
    font-weight: bold;
    font-family: 'VT323', 'Courier New', Courier, monospace;
    text-shadow: 1px 1px #000;
}

/* ===== MODIFIER BREAKDOWN STYLES ===== */

.modifier-breakdown {
    margin: 10px 0;
    padding: 12px;
    background-color: rgba(74, 62, 56, 0.85);
    border: 2px solid #6D2F1E;
    border-radius: 6px;
    box-shadow: 3px 3px 0 #2A1E18;
}

.modifier-breakdown h6 {
    margin: 0 0 8px 0;
    color: #FF8C00;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: left;
    font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
    text-shadow: 1px 1px #000;
}

.modifier-breakdown p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #fff;
    font-family: 'VT323', 'Courier New', Courier, monospace;
    text-shadow: 1px 1px #000;
}

/* ===== XP BAR STYLES ===== */

.xp-row {
    display: flex;
    align-items: center;
    margin: 4px 0;
    gap: 6px;
}

.xp-bar {
    border: 2px solid #C04E26;
    background: #1E1715;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
    width: 200px;
    position: relative;
}

.xp-bar span {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 0.8em;
    color: #fff;
    top: 4px;
}

.xp-fill {
    background: #FF8C00;
    height: 100%;
    border-radius: 2px;
}

/* ===== LOADING STATES ===== */

#proofModal .modifier-inputs-section p,
.modifier-inputs-section p {
    text-align: left;
    color: #e8dfd5;
    font-style: italic;
    padding: 10px;
    text-shadow: none !important;
}

#proofModal .modifier-inputs-section p.no-modifiers-text,
#proofModal .no-modifiers-text,
.no-modifiers-text {
    color: #f0e6d8 !important;
    font-family: 'VT323', 'Courier New', Courier, monospace !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-shadow: none !important;
    padding: 14px 10px !important;
    margin: 0 !important;
}

/* ===== ERROR STATES ===== */

.modifier-input-row input.error,
.modifier-input-row select.error {
    border-color: #DC3545;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
}

.proof-input.error {
    border-color: #DC3545;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
}

/* ===== SUCCESS STATES ===== */

.modifier-input-row input.success,
.modifier-input-row select.success {
    border-color: #28A745;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
}

.proof-input.success {
    border-color: #28A745;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
}

/* ===== CUSTOM SCROLLBAR STYLES ===== */

/* Webkit browsers (Chrome, Safari, Edge) */
#proofModal .modal-content::-webkit-scrollbar {
    width: 12px;
}

#proofModal .modal-content::-webkit-scrollbar-track {
    background: rgba(139, 46, 21, 0.3);
    border-radius: 6px;
    border: 1px solid #8B2E15;
}

#proofModal .modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8B2E15, #D2691E);
    border-radius: 6px;
    border: 1px solid #5D1F0E;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
}

#proofModal .modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #D2691E, #FF8C00);
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.5);
}

/* Firefox */
#proofModal .modal-content {
    scrollbar-width: thin;
    scrollbar-color: #8B2E15 rgba(139, 46, 21, 0.3);
}

/* Rewards Modal Specific Styles */
#slayRewardModal .reward-section {
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #8B2E15;
    border-radius: 6px;
    backdrop-filter: blur(2px);
}

#slayRewardModal .reward-section p,
#slayRewardModal .reward-section h6 {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#slayRewardModal .modifier-section {
    margin: 10px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #4CAF50;
    border-radius: 6px;
    backdrop-filter: blur(2px);
}

#slayRewardModal .modifier-section p,
#slayRewardModal .modifier-section h6 {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#slayRewardModal .base-xp {
    color: #ffd700;
    font-size: 0.8em;
}

#slayRewardModal .modifier-change {
    color: #4CAF50;
}

#slayRewardModal .modifier-total {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #4CAF50;
    font-weight: bold;
}

#slayRewardModal .items-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

#slayRewardModal .item-card {
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #8B2E15;
    border-radius: 6px;
    min-width: 100px;
    backdrop-filter: blur(2px);
}

#slayRewardModal .item-card img {
    width: 60px;
    height: 60px;
    image-rendering: pixelated;
    border: 2px solid #8B2E15;
    display: block;
    margin: 0 auto 8px auto;
    border-radius: 4px;
}

#slayRewardModal .item-card p {
    margin: 5px 0 0 0;
    font-size: 0.6em;
}

#slayRewardModal .quantity {
    font-size: 0.5em;
    color: #ffd700;
}

/* Level Up Section Styles */
#slayRewardModal .level-up-section {
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #ffd700;
    border-radius: 6px;
    backdrop-filter: blur(2px);
}

#slayRewardModal .level-up-section h6 {
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    font-size: 0.8em;
}

#slayRewardModal .level-up-item {
    margin: 8px 0;
    padding: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    border-left: 3px solid #ffd700;
}

#slayRewardModal .level-up-item.overall {
    border-left-color: #4CAF50;
}

#slayRewardModal .level-up-item.attribute {
    border-left-color: #2196F3;
}

#slayRewardModal .level-up-item p {
    margin: 0;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-size: 0.7em;
}

#slayRewardModal .level-reward {
    margin: 5px 0 5px 15px;
    padding: 5px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 3px;
    font-size: 0.6em;
    color: #ffd700;
}