/* Post-Apocalyptic Mad Max Theme */
:root {
    --rust: #8B4513;
    --metal: #3A3A3A;
    --worn-metal: #555555;
    --oil: #0A0A0A;
    --toxic: #7FFF00;
    --warning: #FF8C00;
    --blood: #8B0000;
    --dust: #C2B280;
    --radiation: #32CD32;
    --ash: #696969;
}

body {
    background-color: var(--oil);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%230A0A0A"/><path d="M0 0L100 100M100 0L0 100" stroke="%23222222" stroke-width="1"/></svg>');
    font-family: 'Courier New', monospace;
    color: #DDD;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 0;
}

.nuclear-batch {
    animation: pulse 2s infinite;
    padding: 2px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
/* Rusty Card Styles */
.card {
    background-color: var(--metal);
    border: 2px solid #8B4513;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.5);
    position: relative;
    overflow: visible;
    z-index: 5;
    margin-bottom: 1.5rem;
}

.card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent 30%, var(--rust) 30%, var(--rust) 40%, transparent 40%, transparent 60%, var(--rust) 60%, var(--rust) 70%, transparent 70%);
    background-size: 8px 8px;
    z-index: -1;
    opacity: 0.4;
}

.card-header {
    background: linear-gradient(to right, #704214, #b87333, #704214);
    color: #FFD700;
    text-shadow: 1px 1px 2px #000, 0 0 5px #8B4513;
    border-bottom: 2px solid #8B4513;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.card-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(139, 69, 19, 0.05) 10px, rgba(139, 69, 19, 0.05) 20px);
    pointer-events: none;
    z-index: -1;
}

.card-header h3 {
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    font-weight: normal;
}

.card-body {
    padding: 1.5rem;
    background-color: var(--metal);
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23CD7F32' fill-opacity='0.1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    position: relative;
    z-index: 1;
}

.card.shadow {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Operation Cards */
.operation-card {
    background-color: rgba(42, 42, 42, 0.7);
    border: 2px solid #8B4513;
    transition: all 0.3s ease;
}

.operation-card:hover {
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.5);
    transform: translateY(-5px);
}

.form-check-input:checked + .form-check-label {
    color: #FFD700;
    font-weight: bold;
}

.operation-options {
    border-top: 1px solid #8B4513;
    margin-top: 10px;
    padding-top: 10px;
}

/* Range Sliders */
.form-range::-webkit-slider-thumb {
    background-color: #CD7F32;
}

.form-range::-moz-range-thumb {
    background-color: #CD7F32;
}

.form-range::-webkit-slider-runnable-track {
    background-color: #704214;
}

.form-range::-moz-range-track {
    background-color: #704214;
}

/* Form controls */
.form-control, .form-select {
    background-color: #2a2a2a;
    border: 2px solid #8B4513;
    color: #FFD700;
}

.form-control:focus, .form-select:focus {
    background-color: #333;
    border-color: #CD7F32;
    box-shadow: 0 0 0 0.25rem rgba(205, 127, 50, 0.25);
    color: #FFD700;
}

.form-control::placeholder {
    color: #b87333;
    opacity: 0.7;
}

.form-check-input:focus {
    border-color: #CD7F32;
    box-shadow: 0 0 0 0.25rem rgba(205, 127, 50, 0.25);
}

.input-group-text {
    background-color: #704214;
    border: 2px solid #8B4513;
    color: #FFD700;
}

.form-check-input {
    background-color: var(--worn-metal);
    border: 2px solid var(--rust);
}

.form-range {
    height: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 0;
    padding: 0.6rem 1.5rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.1) 10px, rgba(0, 0, 0, 0.1) 20px);
    pointer-events: none;
}

.btn-primary {
    background-color: #CD7F32;
    border-color: #8B4513;
    color: #000;
    box-shadow: 0 4px 0 var(--metal);
    animation: bronze-pulse 2s infinite;
}

.btn-primary:hover {
    background-color: #D4AF37;
    border-color: #8B4513;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--metal);
}

@keyframes bronze-pulse {
    0% { box-shadow: 0 0 5px rgba(205, 127, 50, 0.5); }
    50% { box-shadow: 0 0 15px rgba(205, 127, 50, 0.8); }
    100% { box-shadow: 0 0 5px rgba(205, 127, 50, 0.5); }
}

.btn-outline-secondary {
    border: 2px solid #aaaaaa;
    color: #dddddd;
}

.btn-outline-secondary:hover {
    background-color: #aaaaaa;
    color: #222222;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid #CD7F32;
    color: #CD7F32;
}

.btn-outline-primary:hover {
    background-color: #CD7F32;
    color: #000;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

/* Result Page */
.result-image-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    background-color: var(--worn-metal);
    border: 3px solid var(--rust);
    position: relative;
    z-index: 1;
}

.result-image-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(139, 69, 19, 0.05) 10px, rgba(139, 69, 19, 0.05) 20px);
    pointer-events: none;
    z-index: -1;
}

.result-image {
    max-height: 500px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: contrast(1.1) saturate(0.9);
}

/* Preview Section */
.preview-section .card {
    height: auto;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    z-index: 2;
}

.preview-section .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    min-height: 300px;
}

#preview-placeholder {
    padding: 2rem 0;
    color: var(--ash);
    margin: 1rem 0;
}

/* Preview Container */
#preview-container {
    position: relative;
    border: 2px solid #CD7F32;
    background-color: rgba(30, 30, 30, 0.9);
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #CD7F32 #2a2a2a;
}

/* Custom scrollbar for Webkit browsers */
#preview-container::-webkit-scrollbar {
    width: 8px;
}

#preview-container::-webkit-scrollbar-track {
    background: #2a2a2a;
}

#preview-container::-webkit-scrollbar-thumb {
    background-color: #CD7F32;
    border-radius: 4px;
}

#preview-container::-webkit-scrollbar-thumb:hover {
    background-color: #FFD700;
}

#preview-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(205, 127, 50, 0.1),
        rgba(205, 127, 50, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 20px
    );
    pointer-events: none;
    z-index: 1;
}

#preview-image {
    max-width: 100%;
    max-height: 250px; /* Allow space for the header */
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.preview-header {
    background: linear-gradient(to right, #704214, #CD7F32, #704214);
    color: #FFD700;
    text-align: center;
    font-weight: bold;
    padding: 5px;
    border-bottom: 1px solid #CD7F32;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    position: relative;
    z-index: 2;
}

/* File Size Display */
#file-size-display {
    color: #FFD700;
    background-color: rgba(42, 42, 42, 0.8);
    border: 1px solid #8B4513;
    padding: 5px 10px;
    margin-top: 10px;
    text-align: center;
}

#preview-info .alert {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--worn-metal);
    border: 1px solid var(--rust);
    color: #DDD;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--toxic);
    border-width: 0.3rem;
}

/* Image Info */
#image-info .alert {
    border-left: 4px solid var(--warning);
    background-color: rgba(255, 140, 0, 0.1);
    position: relative;
    overflow: hidden;
}

#image-info .alert::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 140, 0, 0.05) 10px, rgba(255, 140, 0, 0.05) 20px);
    pointer-events: none;
}

#image-info .alert-heading {
    color: var(--warning);
    margin-bottom: 0.5rem;
    font-family: 'Impact', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#image-info i.fa-info-circle {
    color: var(--warning);
}

/* Form Switch */
.form-switch .form-check-input {
    width: 2.5em;
    margin-left: -2.8em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23555555'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%230A0A0A'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%237FFF00'/%3e%3c/svg%3e");
}

#aspect-ratio-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--toxic);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--metal);
}

::-webkit-scrollbar-thumb {
    background: var(--rust);
    border: 2px solid var(--metal);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--toxic);
}

/* Navbar */
.navbar {
    background-color: #8B4513 !important;
    background-image: linear-gradient(to right, #704214, #b87333, #704214);
    border-bottom: 3px solid var(--rust);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 5;
}

.navbar-brand {
    font-family: 'Special Elite', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(139, 69, 19, 0.7);
    display: flex;
    align-items: center;
    position: relative;
    font-weight: bold;
}

/* Rusty Text Effect for Title */
.rusty-text {
    color: #FFD700 !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="50" viewBox="0 0 200 50"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.5 0"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Card header title styling */
.card-header h3 .rusty-text {
    font-size: 1.5rem;
    color: #7FFF00 !important;
    text-shadow: 0 0 10px rgba(127, 255, 0, 0.5);
}

/* Card Header */
.card-header.bg-primary {
    background-color: #8B4513 !important;
    background-image: linear-gradient(to right, #704214, #b87333, #704214);
    border-bottom: 3px solid var(--rust);
}

/* Footer */
.footer {
    position: relative;
    z-index: 5;
    background: linear-gradient(to right, #704214, #b87333, #704214);
    border-top: 3px solid var(--rust);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
}

.footer .text-muted {
    color: #FFD700 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--rust), var(--toxic), var(--rust));
}

/* Alerts */
.alert-info {
    background-color: rgba(42, 42, 42, 0.8);
    border: 1px solid #8B4513;
    color: #FFD700;
}

.alert-info .alert-heading {
    color: #CD7F32;
}

.alert-success {
    background-color: rgba(42, 42, 42, 0.8);
    border: 1px solid #8B4513;
    color: #FFD700;
}

.alert-success .alert-heading {
    color: #CD7F32;
}

.alert-danger {
    background-color: rgba(42, 42, 42, 0.8);
    border: 1px solid #8B4513;
    color: #FFD700;
}

.alert-danger .alert-heading {
    color: #CD7F32;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
    }
    
    .preview-section {
        margin-top: 2rem;
    }
    
    #preview-container {
        max-height: 250px;
    }
    
    #preview-image {
        max-height: 250px;
    }
}

/* Dystopian Decorative Elements */
.card::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2L2 12h3v8h14v-8h3L12 2z" fill="%238B4513"/></svg>');
    background-size: contain;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.form-label {
    position: relative;
    padding-left: 20px;
    color: #FFD700;
    text-shadow: 1px 1px 2px #000;
    font-weight: bold;
}

.form-label::before {
    content: "//";
    position: absolute;
    left: 0;
    color: var(--toxic);
    font-weight: bold;
}

/* Radiation Animation */
@keyframes radiation-pulse {
    0% { box-shadow: 0 0 5px rgba(127, 255, 0, 0.5); }
    50% { box-shadow: 0 0 15px rgba(127, 255, 0, 0.8); }
    100% { box-shadow: 0 0 5px rgba(127, 255, 0, 0.5); }
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.5), transparent);
    transform: translateX(-100%);
    animation: btn-shine 3s infinite;
}

@keyframes btn-shine {
    100% {
        transform: translateX(100%);
    }
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 4;
    animation: noise-animation 0.5s infinite;
}

@keyframes noise-animation {
    0% { opacity: 0.05; }
    50% { opacity: 0.07; }
    100% { opacity: 0.05; }
}

/* Warning Stripes */
.warning-stripes {
    background: repeating-linear-gradient(
        45deg,
        #8B4513,
        #8B4513 10px,
        #000000 10px,
        #000000 20px
    );
    padding: 2px 0;
    margin: 0 0 10px 0;
    position: relative;
    overflow: hidden;
}

.warning-text {
    color: #FFD700;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* Radiation Meter */
.radiation-meter {
    width: 50px;
    height: 10px;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.radiation-level {
    height: 100%;
    width: 70%;
    background-color: #7FFF00;
    animation: radiation-pulse 2s infinite;
}

@keyframes radiation-pulse {
    0% { width: 60%; background-color: #7FFF00; }
    50% { width: 80%; background-color: #ADFF2F; }
    100% { width: 60%; background-color: #7FFF00; }
}

/* Coordinates */
.coordinates {
    display: flex;
    align-items: center;
}

.coordinates .text-warning {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Btn Wasteland */
.btn-wasteland {
    background: linear-gradient(to right, #704214, #b87333, #704214);
    border: 2px solid #8B4513;
    color: #FFD700;
    text-shadow: 1px 1px 2px #000;
    position: relative;
    overflow: hidden;
}

.btn-wasteland:hover {
    background: linear-gradient(to right, #8B4513, #CD7F32, #8B4513);
    color: #FFFFFF;
    border-color: #CD7F32;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(205, 127, 50, 0.5);
}

.btn-wasteland:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(205, 127, 50, 0.5);
}

/* Scan Line Effect */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--toxic);
    opacity: 0.7;
    z-index: 10;
    pointer-events: none;
    animation: scan-line 2s linear;
}

@keyframes scan-line {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

/* Terminal Text Effect */
.terminal-text {
    font-family: 'Special Elite', 'Courier New', monospace;
    color: var(--toxic);
    text-shadow: 0 0 5px rgba(127, 255, 0, 0.5);
    position: relative;
}

/* Button Press Effect */
.btn-pressed {
    transform: translateY(2px) !important;
    box-shadow: 0 2px 0 var(--metal) !important;
}

/* Dystopian Card Content */
.card-body > * {
    position: relative;
    z-index: 5;
}

/* Spacing Adjustments */
.mb-4 {
    margin-bottom: 2rem !important;
}

.row {
    margin-bottom: 1rem;
}

/* Logo Styles */
.logo-img {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(127, 255, 0, 0.7));
    transition: all 0.3s ease;
}

.navbar-brand:hover .logo-img {
    filter: drop-shadow(0 0 8px rgba(127, 255, 0, 1));
    transform: scale(1.1);
}

/* Small Logo in Card Header */
.logo-img-sm {
    height: 24px;
    width: auto;
    filter: drop-shadow(0 0 3px rgba(127, 255, 0, 0.5));
    vertical-align: middle;
    margin-top: -3px;
}

/* Form Check Labels */
.form-check-label {
    color: #FFF;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    font-weight: bold;
}

/* Text in operation cards */
.operation-card .form-text,
.operation-card .text-muted {
    color: #CCC !important;
}

/* Button Group for Resize Type */
.btn-group {
    margin-bottom: 1rem;
}

.btn-check + .btn-outline-secondary {
    color: #CCC;
    border-color: var(--rust);
    background-color: rgba(40, 40, 40, 0.7);
}

.btn-check:checked + .btn-outline-secondary {
    color: #FFF;
    background-color: var(--rust);
    border-color: var(--toxic);
    box-shadow: 0 0 5px rgba(127, 255, 0, 0.5);
}

.btn-check:hover + .btn-outline-secondary {
    border-color: var(--toxic);
    color: var(--toxic);
}

.card-footer {
    background: linear-gradient(to right, #704214, #b87333, #704214);
    border-top: 2px solid #8B4513;
}

.progress {
    background-color: #704214;
    border: 1px solid #8B4513;
}

.progress-bar {
    background-color: #ff0000;
}

/* Batch Explosion Animation */
.batch-explosion {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,0,0,1) 0%, rgba(255,165,0,0.8) 50%, rgba(255,255,0,0) 100%);
    border-radius: 50%;
    z-index: 10;
    animation: explosion 1s forwards;
    pointer-events: none;
}

@keyframes explosion {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    10% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.2);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

.max-height-300 {
    max-height: 300px;
}

/* Batch Processing Styles */
.batch-processing-card {
    border: 2px solid #990000;
    background-color: rgba(30, 30, 30, 0.9);
}

.nuclear-batch-card {
    border: 2px solid #ff0000;
    background-color: rgba(30, 30, 30, 0.9);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    height: 100%;
    animation: nuclear-glow 4s infinite alternate;
}

@keyframes nuclear-glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
    }
}

.nuclear-batch-card .card-header {
    background: linear-gradient(to right, #990000, #ff0000, #990000) !important;
    border-bottom: 2px solid #ff0000;
    padding: 0.5rem 1rem;
}

.nuclear-batch-card .card-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nuclear-batch {
    animation: radiation-pulse 2s infinite;
}

@keyframes radiation-pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.batch-processing-card .card-header {
    background: linear-gradient(to right, #990000, #ff0000, #990000) !important;
    border-bottom: 2px solid #ff0000;
}

.batch-drop-area {
    border: 2px dashed #ff0000;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    background-color: rgba(50, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 5px;
}

.batch-drop-area.ready {
    animation: ready-pulse 2s infinite;
}

@keyframes ready-pulse {
    0% {
        border-color: #ff0000;
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
    }
    50% {
        border-color: #ff5555;
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    }
    100% {
        border-color: #ff0000;
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
    }
}

.batch-drop-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 0, 0, 0.1),
        rgba(255, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 20px
    );
    z-index: 0;
}

.batch-drop-area:hover {
    background-color: rgba(80, 0, 0, 0.4);
    border-color: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.batch-error-message {
    color: #ff3333;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    font-size: 14px;
    padding: 5px;
    background-color: rgba(50, 0, 0, 0.3);
    border-radius: 4px;
    border: 1px dashed #ff3333;
    margin-bottom: 5px;
    animation: error-pulse 2s infinite;
}

.batch-status-container {
    padding: 5px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    word-wrap: break-word;
    max-width: 100%;
    overflow: hidden;
}

.batch-success-message {
    color: #00ff9d;
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.5);
    background-color: rgba(0, 50, 20, 0.3);
    border: 1px dashed #00ff9d;
    padding: 5px;
    border-radius: 4px;
    animation: success-pulse 2s infinite;
}

@keyframes success-pulse {
    0% {
        background-color: rgba(0, 50, 20, 0.3);
    }
    50% {
        background-color: rgba(0, 80, 40, 0.5);
    }
    100% {
        background-color: rgba(0, 50, 20, 0.3);
    }
}

@keyframes error-pulse {
    0% {
        background-color: rgba(50, 0, 0, 0.3);
    }
    50% {
        background-color: rgba(80, 0, 0, 0.5);
    }
    100% {
        background-color: rgba(50, 0, 0, 0.3);
    }
}

.batch-drop-area.active {
    background-color: rgba(100, 0, 0, 0.5);
    border-color: #ff5555;
}

.batch-icon {
    font-size: 24px;
    color: #ff3333;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
    }
    50% {
        transform: scale(1.2);
        text-shadow: 0 0 15px rgba(255, 0, 0, 0.9);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
    }
}

.batch-text {
    font-size: 24px;
    font-weight: bold;
    color: #ff3333;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

.batch-subtext {
    color: #ff9999;
    font-size: 13px;
    margin-bottom: 3px;
    position: relative;
    z-index: 2;
}

.batch-info {
    color: #cc6666;
    font-size: 11px;
    position: relative;
    z-index: 2;
}

.btn-outline-danger {
    border: 2px solid #ff0000;
    color: #ff0000;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background-color: #ff0000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.progress {
    height: 20px;
    background-color: #333333;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #ff0000;
}

.progress-bar.bg-danger {
    background-color: #ff0000;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed #CD7F32;
    background-color: rgba(42, 42, 42, 0.7);
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.file-upload-area:hover {
    border-color: #FFD700;
    background-color: rgba(42, 42, 42, 0.9);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.file-upload-area::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid #8B4513;
    pointer-events: none;
}

.file-upload-icon {
    font-size: 48px;
    color: #CD7F32;
    margin-bottom: 15px;
    display: block;
}

.file-upload-text {
    color: #FFD700;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
}

.file-upload-subtext {
    color: #b87333;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Supported formats text */
.supported-formats {
    position: relative;
    z-index: 10;
    color: #FFD700;
    background-color: rgba(42, 42, 42, 0.9);
    border: 1px solid #8B4513;
    padding: 8px 10px;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(205, 127, 50, 0.2) 10px,
        rgba(205, 127, 50, 0.2) 20px
    );
    animation: formats-pulse 2s infinite;
}

@keyframes formats-pulse {
    0% { box-shadow: 0 0 10px rgba(205, 127, 50, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.7); }
    100% { box-shadow: 0 0 10px rgba(205, 127, 50, 0.5); }
}

.supported-formats i {
    color: #CD7F32;
    animation: icon-pulse 2s infinite;
}

@keyframes icon-pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Effects Sidebar */
.effects-sidebar {
    border: 1px solid #8B4513;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #1a1a1a;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.effects-sidebar .nav-tabs {
    background: linear-gradient(to right, #704214, #b87333, #704214);
    border-bottom: none;
}

.effects-sidebar .nav-tabs .nav-link {
    color: #FFD700;
    border: none;
    border-radius: 0;
    padding: 8px 12px;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px #000;
    transition: all 0.3s ease;
}

.effects-sidebar .nav-tabs .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.effects-sidebar .nav-tabs .nav-link.active {
    background-color: #1a1a1a;
    color: #FFD700;
    font-weight: bold;
    border-top: 2px solid #CD7F32;
}

.effects-sidebar .tab-content {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
    color: #ddd;
}

.effect-card {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-left: 4px solid #CD7F32;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.effect-card:hover {
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
    transform: translateY(-2px);
}

.effect-card .card-body {
    padding: 10px;
}

.effect-card .form-check-input:checked ~ .form-check-label {
    color: #CD7F32;
}

.effect-card .form-check-input:checked {
    background-color: #CD7F32;
    border-color: #8B4513;
}

.effect-card .form-range::-webkit-slider-thumb {
    background: #CD7F32;
}

.effect-card .form-range::-moz-range-thumb {
    background: #CD7F32;
}

.effect-card .text-muted {
    color: #aaa !important;
}

/* Nuclear Attack Button Styles */
.nuclear-button-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    perspective: 1000px;
}

.btn-nuclear {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #ff0000, #990000);
    border: none;
    box-shadow: 
        0 0 10px #ff0000,
        0 0 20px rgba(255, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.btn-nuclear:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 15px #ff0000,
        0 0 30px rgba(255, 0, 0, 0.7),
        inset 0 0 25px rgba(255, 255, 255, 0.4);
}

.btn-nuclear:active {
    transform: scale(0.95) translateY(5px);
    box-shadow: 
        0 0 5px #ff0000,
        0 0 10px rgba(255, 0, 0, 0.3),
        inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.nuclear-button-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}

.nuclear-icon {
    font-size: 40px;
    margin-bottom: 5px;
    animation: pulse 2s infinite;
}

.nuclear-text {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nuclear-button-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
    z-index: 1;
    animation: ring-pulse 3s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}

@keyframes ring-pulse {
    0% {
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
        border-color: #ff0000;
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.9);
        border-color: #ff3333;
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
        border-color: #ff0000;
    }
}

/* Nuclear Glitch Effect */
.nuclear-glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.2);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: overlay;
    transition: opacity 0.2s ease;
}

.nuclear-glitch-overlay.active {
    animation: nuclear-glitch 1s forwards;
}

.nuclear-glitch-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: 0;
}

.nuclear-glitch-lines.active {
    animation: glitch-lines 1s forwards;
}

.nuclear-rgb-shift {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.nuclear-rgb-shift.active {
    animation: rgb-shift 1s forwards;
}

@keyframes nuclear-glitch {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    15% {
        opacity: 0.2;
    }
    20% {
        opacity: 0.9;
    }
    30% {
        opacity: 0.3;
    }
    40% {
        opacity: 0.7;
    }
    70% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.9;
    }
    100% {
        opacity: 0;
    }
}

@keyframes glitch-lines {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    10% {
        opacity: 0.8;
        transform: translateY(-20px);
    }
    20% {
        opacity: 0.2;
        transform: translateY(20px);
    }
    30% {
        opacity: 0.7;
        transform: translateY(-10px);
    }
    40% {
        opacity: 0.5;
        transform: translateY(10px);
    }
    50% {
        opacity: 0.9;
        transform: translateY(-5px);
    }
    60% {
        opacity: 0.3;
        transform: translateY(5px);
    }
    100% {
        opacity: 0;
        transform: translateY(0);
    }
}

@keyframes rgb-shift {
    0% {
        opacity: 0;
        filter: blur(0);
        transform: scale(1);
    }
    10% {
        opacity: 0.8;
        filter: blur(1px);
        transform: scale(1.01);
    }
    20% {
        opacity: 0.5;
        filter: blur(2px);
        transform: scale(1.02);
    }
    30% {
        opacity: 0.7;
        filter: blur(1px);
        transform: scale(1.01);
    }
    40% {
        opacity: 0.9;
        filter: blur(3px);
        transform: scale(1.03);
    }
    50% {
        opacity: 0.6;
        filter: blur(2px);
        transform: scale(1.02);
    }
    60% {
        opacity: 0.8;
        filter: blur(4px);
        transform: scale(1.04);
    }
    70% {
        opacity: 0.7;
        filter: blur(2px);
        transform: scale(1.02);
    }
    80% {
        opacity: 0.9;
        filter: blur(1px);
        transform: scale(1.01);
    }
    90% {
        opacity: 0.5;
        filter: blur(3px);
        transform: scale(1.03);
    }
    100% {
        opacity: 0;
        filter: blur(0);
        transform: scale(1);
    }
}

/* Nuclear Shake Animation */
.nuclear-shake {
    animation: nuclear-shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes nuclear-shake {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translate3d(-10px, 0, 0);
    }
    20%, 40%, 60%, 80% {
        transform: translate3d(10px, 0, 0);
    }
}

/* Nuclear Skull Overlay */
.nuclear-skull-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(139, 0, 0, 0);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nuclear-skull-overlay.active {
    opacity: 1;
    background-color: rgba(139, 0, 0, 0.7);
}

.skull-container {
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    transform: scale(0);
    transition: transform 0.5s ease;
    animation: skull-flash 0.1s infinite alternate;
}

.nuclear-skull-overlay.active .skull-container {
    transform: scale(1);
}

.skull-container i {
    animation: skull-grow 0.5s ease-out;
}

@keyframes skull-flash {
    0% {
        opacity: 0.7;
        text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 30px rgba(255, 0, 0, 1), 0 0 40px rgba(255, 255, 0, 0.8);
    }
}

@keyframes skull-grow {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Wasteland Potion Overlay */
.wasteland-potion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 139, 0, 0);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wasteland-potion-overlay.active {
    opacity: 1;
    background-color: rgba(0, 139, 0, 0.5);
}

.potion-container {
    font-size: 15rem;
    color: rgba(0, 255, 0, 0.9);
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    transform: scale(0);
    transition: transform 0.5s ease;
    animation: potion-flash 0.2s infinite alternate;
}

.wasteland-potion-overlay.active .potion-container {
    transform: scale(1);
}

.potion-container i {
    animation: potion-grow 0.5s ease-out;
}

@keyframes potion-flash {
    0% {
        opacity: 0.7;
        text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
        transform: rotate(-5deg);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 30px rgba(0, 255, 0, 1), 0 0 40px rgba(255, 255, 0, 0.5);
        transform: rotate(5deg);
    }
}

@keyframes potion-grow {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Reticular Scanner Effect */
.reticular-scanner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(205, 127, 50, 0.1) 10%,
        rgba(255, 215, 0, 0.3) 50%,
        rgba(205, 127, 50, 0.1) 90%,
        transparent 100%);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    animation: scan-line 4s linear infinite;
    opacity: 0.7;
    z-index: 1;
}

.scan-line::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        transparent, 
        rgba(255, 215, 0, 0.5), 
        transparent);
    animation: scan-glitch 0.5s linear infinite alternate;
}

.scan-glitch {
    position: absolute;
    width: 100%;
    height: 10px;
    background-color: rgba(255, 215, 0, 0.1);
    opacity: 0;
    animation: random-glitch 10s linear infinite;
}

@keyframes scan-line {
    0% {
        top: -5%;
    }
    100% {
        top: 105%;
    }
}

@keyframes scan-glitch {
    0% {
        transform: translateX(-10px);
        opacity: 0.3;
    }
    100% {
        transform: translateX(10px);
        opacity: 0.7;
    }
}

@keyframes random-glitch {
    0%, 100% {
        opacity: 0;
        top: -100px;
        height: 10px;
    }
    10% {
        opacity: 0.3;
        top: 20%;
        height: 15px;
    }
    10.5% {
        opacity: 0;
    }
    40% {
        opacity: 0;
    }
    40.5% {
        opacity: 0.6;
        top: 70%;
        height: 5px;
    }
    41% {
        opacity: 0;
    }
    80% {
        opacity: 0;
    }
    80.5% {
        opacity: 0.4;
        top: 40%;
        height: 8px;
    }
    81% {
        opacity: 0;
    }
}

/* Terminal Monitor */
.terminal-monitor-frame {
    border: 2px solid #8B4513;
    background-color: #1a1a1a;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.terminal-monitor-header {
    background: linear-gradient(to right, #704214, #b87333, #704214);
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #8B4513;
}

.monitor-title {
    color: #FFD700;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.monitor-status {
    display: flex;
    align-items: center;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background-color: #7FFF00;
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 5px #7FFF00;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.terminal-monitor-content {
    background-color: #0A0A0A;
    color: #7FFF00;
    padding: 10px;
    min-height: 200px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.terminal-monitor-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        rgba(0, 0, 0, 0.1) 1px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1;
}

.terminal-monitor-content.empty::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

#wasteland-terminal {
    position: relative;
    padding: 0px;
    z-index: 2;
}

.matrix-char {
    display: inline-block;
    opacity: 0;
    animation: matrix-char 0.5s forwards;
}

@keyframes matrix-char {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Preview Section */
.preview-header {
    background: linear-gradient(to right, #704214, #CD7F32, #704214);
    color: #FFD700;
    text-align: center;
    text-shadow: 1px 1px 2px #000;
    border: 1px solid #8B4513;
    font-weight: bold;
    padding: 5px;
    border-bottom: 1px solid #CD7F32;
    
    position: relative;
    z-index: 2;
}

#preview-container {
    background-color: #1a1a1a;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

#preview-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(139, 69, 19, 0.1),
        rgba(139, 69, 19, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 20px
    );
    pointer-events: none;
    z-index: 1;
}

#preview-image {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    border: 1px solid #8B4513;
}

/* Navbar Buttons */
.btn-danger.btn-sm, .btn-warning.btn-sm, .btn-info.btn-sm {
    font-family: 'Special Elite', 'Courier New', monospace;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    letter-spacing: 0.5px;
}

#open-nuclear-wastes-btn {
    background: linear-gradient(to bottom, #d9534f, #c9302c);
    border-color: #ac2925;
    position: relative;
    overflow: hidden;
}

#open-nuclear-wastes-btn:hover {
    background: linear-gradient(to bottom, #c9302c, #ac2925);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#open-nuclear-wastes-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

#open-radioactive-inputs-btn {
    background: linear-gradient(to bottom, #f0ad4e, #eb9316);
    border-color: #d58512;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}

#open-radioactive-inputs-btn:hover {
    background: linear-gradient(to bottom, #eb9316, #d58512);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#open-radioactive-inputs-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

/* Blue Flush the Wastes button */
#flush-wastes-btn {
    background: linear-gradient(to bottom, #17b82c, #13964a);
    border-color: #117a8b;
    color: white;
    position: relative;
    overflow: hidden;
}

#flush-wastes-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0) 10px,
        rgba(255, 255, 255, 0) 20px
    );
    animation: btn-shine 3s infinite linear;
    z-index: 1;
}

#flush-wastes-btn:hover {
    background: linear-gradient(to bottom, #138496, #117a8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#flush-wastes-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

@keyframes btn-shine {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
    .navbar .btn-sm {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .coordinates {
        display: none;
    }
}

@media (max-width: 576px) {
    .navbar .btn-sm {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }
    
    .navbar-brand .rusty-text {
        font-size: 0.9rem;
    }
}

/* Terminal Input Styling */
.terminal-prompt {
    margin-top: 20px;
    padding: 10px;
    margin: 2rem;
    border: 1px solid #7FFF00;
    align-self: center;
    align-items: center;
    background-color: rgba(0, 20, 0, 0.5);
    animation: terminal-prompt-pulse 2s infinite;
}

@keyframes terminal-prompt-pulse {
    0% { border-color: #7FFF00; box-shadow: 0 0 5px rgba(127, 255, 0, 0.5); }
    50% { border-color: #ADFF2F; box-shadow: 0 0 10px rgba(127, 255, 0, 0.8); }
    100% { border-color: #7FFF00; box-shadow: 0 0 5px rgba(127, 255, 0, 0.5); }
}

.terminal-prompt-text {
    display: block;
    color: #7FFF00;
    font-weight: bold;
    margin-bottom: 10px;
    align-items: center;
    margin-right: 10px;
    text-shadow: 0 0 5px rgba(127, 255, 0, 0.5);
}

.terminal-prompt-info {
    display: block;
    color: #ADFF2F;
    font-size: 12px;
    margin-bottom: 10px;
    margin-right: 2px;
    opacity: 0.8;
    font-style: italic;
}

.terminal-input-container {
    display: flex;
    gap: 5px;
    margin-right: 5px;
    align-items: center;

}

.terminal-input {
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #7FFF00;
    color: #7FFF00;
    padding: 5px 10px 5px 10px;
    font-family: 'Courier New', monospace;
    outline: none;
}

.terminal-input:focus {
    box-shadow: 0 0 10px rgba(127, 255, 0, 0.5);
}

.terminal-input::placeholder {
    color: rgba(127, 255, 0, 0.5);
}

.terminal-button {
    background-color: rgba(0, 50, 0, 0.7);
    border: 1px solid #7FFF00;
    color: #7FFF00;
    padding: 5px 10px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.terminal-button:hover {
    background-color: rgba(0, 80, 0, 0.9);
    box-shadow: 0 0 10px rgba(127, 255, 0, 0.7);
}

.terminal-button:active {
    transform: translateY(2px);
}

.preview-content {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

#preview-image {
    max-width: 100%;
    max-height: 300px; /* Limit the height of the preview box to 300px */
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Watermark Styles */
.watermark-options {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--rust);
    border-radius: 5px;
    padding: 10px;
    position: relative;
}

.watermark-options::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.watermark-upload-area {
    border: 2px dashed var(--toxic);
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.watermark-upload-area:hover {
    border-color: var(--radiation);
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(127, 255, 0, 0.5);
}

.watermark-icon {
    font-size: 2rem;
    color: var(--toxic);
    margin-bottom: 5px;
}

.watermark-text {
    font-size: 0.9rem;
    color: var(--toxic);
    font-weight: bold;
}

.watermark-preview-box {
    width: 100px;
    height: 60px;
    border: 2px solid var(--toxic);
    border-radius: 5px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

#watermark-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#watermark-help-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: transparent;
    border-color: var(--toxic);
    color: var(--toxic);
}

#watermark-help-btn:hover {
    background-color: var(--toxic);
    color: #000;
}

#remove-watermark-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

/* Watermark position indicator */
.watermark-position-indicator {
    width: 100%;
    height: 80px;
    border: 1px solid var(--rust);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.3);
    position: relative;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.watermark-position-indicator::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--toxic);
    border-radius: 3px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.watermark-position-indicator[data-position="bottom-right"]::before {
    bottom: 5px;
    right: 5px;
}

.watermark-position-indicator[data-position="bottom-left"]::before {
    bottom: 5px;
    left: 5px;
}

.watermark-position-indicator[data-position="top-right"]::before {
    top: 5px;
    right: 5px;
}

.watermark-position-indicator[data-position="top-left"]::before {
    top: 5px;
    left: 5px;
}

.watermark-position-indicator[data-position="center"]::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}