body { 
    background: #ede2d0; 
}

.processing-modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background: rgba(0,0,0,0.4); 
    z-index: 1000; 
    justify-content: center; 
    align-items: center; 
}

.processing-modal.active { 
    display: flex; 
}

.notification-bar { 
    margin-top: 1em; 
}

.monster-stats-table td { 
    padding: 2px 8px; 
}

.copy-monster-name {
    position: relative;
    cursor: pointer;
}

.copy-monster-name::after {
    content: "Copied";
    position: absolute;
    top: -1.5em;
    left: 0;
    background: #333;
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.copy-monster-name.copied::after {
    opacity: 1;
}

.filter-toggle {
    margin: 2px;
}

.compact-filters {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px;
}

.compact-filters .btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.compact-filters small {
    font-weight: 600;
}

.nav-button {
    min-width: 100px;
}

/* AI Modification Styles */
.ai-modify-section {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 10px;
}

.modification-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 5px;
}

.modification-compare .arrow {
    font-size: 1.2em;
    font-weight: bold;
    color: #007bff;
    text-align: center;
}

.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

/* Image Upload Styles */
.image-upload-area {
    position: relative;
    width: 100%;
    min-height: 200px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.image-upload-area:hover {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

.image-upload-area.drag-over {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
    transform: scale(1.02);
}

.upload-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.upload-content {
    text-align: center;
    color: #6c757d;
}

.upload-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 0.5em;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 123, 255, 0.9);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.image-upload-area.drag-over .upload-overlay {
    display: flex;
}

#monster-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.image-upload-area.has-image {
    border-style: solid;
    border-color: #28a745;
}

.image-upload-area.has-image:hover {
    border-color: #007bff;
}

/* Monster Card Styles - From monster-cards.php */
@font-face {
    font-family: 'headline';
    src: url('fonts/A-Charming-Font.ttf.woff') format('woff'),
         url('fonts/A-Charming-Font.ttf.svg#A-Charming-Font') format('svg'),
         url('fonts/A-Charming-Font.ttf.eot'),
         url('fonts/A-Charming-Font.ttf.eot?#iefix') format('embedded-opentype'),
         url('fonts/A-Charming-Font.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'subhead';
    src: url('fonts/Cinzel-Bold.ttf.woff') format('woff'),
         url('fonts/Cinzel-Bold.ttf.svg#Cinzel-Bold') format('svg'),
         url('fonts/Cinzel-Bold.ttf.eot'),
         url('fonts/Cinzel-Bold.ttf.eot?#iefix') format('embedded-opentype'),
         url('fonts/Cinzel-Bold.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.monster-card-display {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.monster-card {
    background-color: #F0EAD6;
    border: 3mm solid #951b25;
    font-family: 'Arial', sans-serif;
    display: inline-block;
    vertical-align: top;
    height: 8.3cm;
    width: 12.6cm;
    position: relative;
    margin-bottom: 20px;
    cursor: pointer;
}

.monster-card p {
    margin-bottom: 2px;
}

.monster-card.epic {
    height: 6in;
    width: 4.75in;
}

.monster-card.xlarge {
    height: 5in;
    width: 4.75in;
}

.monster-card.large {
    height: 3.5in;
    width: 4.75in;
}

.monster-card.medium {
    height: 5in;
    width: 2.5in;
}

.monster-card.small {
    height: 3.5in;
    width: 2.5in;
}

.monster-card .monster-name {
    font-size: 14px;
    font-weight: bold;
    margin:0;
    color: black;
    font-family: 'subhead';
}

.monster-card .red-break {
    border-bottom: 2px solid #951b25;
    width: 100%;
    min-height: 1px;
    padding: 0;
    margin: 0;
    display: block;
}

.monster-card .monster-detail span {
    font-weight: bold;
    font-family: 'subhead';
    display: inline-block;
}

.monster-card h3 {
    font-weight: bold;
    font-family: 'subhead';
    font-size: 10px;
    display: block;
    margin-bottom: 0px;
    text-transform: uppercase;
}

.monster-card .monster-description {
    font-size: 8px;
    line-height: 1.25;
    color: #444; 
    padding:5px; 
}

.monster-card .monster-footer {
    font-size: 8px;
    text-align: left;
    position: absolute;
    bottom: -5px;
    padding-top:3px;
    left: -1px;
    right: -1px;
    color: #FFF;
    background-color: #951b25;
    display: block;
    font-weight: bold;
    font-family: 'subhead';
}

/* Print-specific styles for single card printing */
@media print {
    body * {
        visibility: hidden;
    }
    .monster-card.print-focus, .monster-card.print-focus * {
        visibility: visible;
    }
    .monster-card.print-focus {
        position: absolute;
        top: 0;
        left: 0;
        page-break-inside: avoid;
        margin: 0 auto;
    }
    .monster-card:not(.print-focus) {
        display: none;
    }
}