body[data-theme='dark'] #maxBtn { display: flex; align-items: center; justify-content: center; height: 100%; padding: 0 10px; font-family: 'Orbitron', sans-serif; text-transform: uppercase; letter-spacing: 1px; }

body[data-theme='dark'] #maxBtn i { margin-right: 5px; }

body[data-theme='dark'] #level,
body[data-theme='dark'] #maxBtn { height: 38px; }

/* Level button styling */
#levelUpBtn, #levelDownBtn { min-width: 40px; font-size: 0.875rem; }

#levelUpBtn:disabled, #levelDownBtn:disabled { opacity: 0.5; cursor: not-allowed; }


#level { text-align: center; -moz-appearance: textfield; width: 25% !important; }

#level::-webkit-outer-spin-button,
#level::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 576px) {
    #levelUpBtn, #levelDownBtn { padding: 0.375rem 0.375rem !important; min-width: 36px; }

    #maxBtn { padding: 0.375rem 0.75rem; }

    /* Ensure level input group doesn't overflow on small screens */
    .input-group { flex-wrap: nowrap; }

    #level { min-width: 50px; }
}

.tutorial-popover { background: white; border: 1px solid #ddd; padding: 10px; box-shadow: 0 0 10px rgba(0,0,0,0.1); z-index: 1000; }

.tutorial-highlight { position: relative; z-index: 1001; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5); }
/* Allow text to wrap within dropdown items */
.bootstrap-select .dropdown-menu .item-option-text { white-space: normal; }

/* Adjust the layout of the item option */
.item-option { display: flex; align-items: flex-start; }

/* Adjust the item option text */
.item-option-text { flex: 1; min-width: 0; }

/* Ensure the image doesn't shrink */
.item-option-image { flex-shrink: 0; width: 32px; height: 32px; margin-right: 8px; }

.select-narrow { width: auto; min-width: 140px; max-width: 100%; }

/* Header styling */
.header-icon { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; background: rgba(140, 82, 255, 0.1); border-radius: 50%; padding: 1.2rem; border: 2px solid rgba(140, 82, 255, 0.3); box-shadow: 0 0 15px rgba(140, 82, 255, 0.2); }

.text-gradient { color: #00e5ff; font-weight: 700; text-shadow: 0 0 2px rgba(0, 229, 255, 0.5); letter-spacing: 0.5px; font-family: 'Orbitron', sans-serif; text-transform: uppercase; }

.badge.bg-accent { background-color: #8c52ff; font-weight: 500; font-size: 0.9rem; padding: 0.3rem 0.6rem; letter-spacing: 0.5px; text-transform: uppercase; }

.text-purple { color: #9c27b0; }

.feature-pill { display: inline-flex; align-items: center; font-size: 0.9rem; color: var(--text-light); font-weight: 500; padding: 0.25rem 0.75rem; border-radius: 50px; margin: 0.25rem; white-space: nowrap; }

/* Make header responsive */
@media (max-width: 576px) {
    .header-content h2 { font-size: 1.5rem; }

    .feature-pill { font-size: 0.8rem; padding: 0.2rem 0.5rem; }
}

.icon-gradient { background: linear-gradient(45deg, var(--accent-color), #a46dff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }

.item-option { display: flex; align-items: center; gap: 8px; }

.item-option-image { width: 24px; height: 24px; flex-shrink: 0; }

.item-option-text { font-size: 14px; line-height: 1.2; }

.item-option-text strong { display: block; font-size: 14px; color: var(--text-light); }

.item-option-text small { display: block; font-size: 11px; opacity: 0.8; color: var(--text-muted); margin-top: 2px; }

.filter-option-inner-inner .item-option { height: 24px; overflow: hidden; }

.fixed-ball { border: 2px solid #ffcb05 !important; box-shadow: 0 0 5px rgba(255, 203, 5, 0.7); }
:root { --dark-bg: #121212; --dark-card: #212529; --dark-header: #2a2e32; --dark-input: #2c3034; --dark-textarea: #2c3034; --accent-color: #8c52ff; /* Vibrant purple accent */ --accent-hover: #7841e0; --secondary-accent: #03dac6; /* Teal for secondary accents */ --text-light: #f8f9fa; --text-muted: #adb5bd; --border-radius: 0.5rem; }

/* Body and container overrides */
.pokemon-creator { background-color: var(--dark-bg); color: var(--text-light); padding: 1rem; border-radius: var(--border-radius); margin-bottom: 2rem; }

/* Gradient Text */
.text-gradient { background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }

/* Card styles */
.bg-dark-card { background-color: var(--dark-card); color: var(--text-light); }

.bg-dark-header { background-color: var(--dark-header); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

.border-accent { border: 1px solid rgba(140, 82, 255, 0.2); }

/* Input styling */
.bg-dark-input { background-color: var(--dark-input); border-color: rgba(255, 255, 255, 0.1); color: var(--text-light); }

.bg-dark-input:focus { background-color: var(--dark-input); border-color: var(--accent-color); box-shadow: 0 0 0 0.25rem rgba(140, 82, 255, 0.25); color: var(--text-light); }

.bg-dark-textarea { background-color: var(--dark-textarea); border-color: rgba(255, 255, 255, 0.1); color: var(--text-light); resize: none; }

/* Button styling */
.btn-accent { background-color: var(--accent-color); border-color: var(--accent-color); color: white; }

.btn-accent:hover, .btn-accent:focus { background-color: var(--accent-hover); border-color: var(--accent-hover); color: white; }

.btn-action { background-color: var(--dark-header); border-color: rgba(255, 255, 255, 0.1); color: var(--text-light); transition: all 0.2s; }

.btn-action:hover { background-color: var(--dark-input); color: var(--accent-color); border-color: var(--accent-color); }

.btn-action-primary { background-color: var(--accent-color); border-color: var(--accent-color); color: white; font-weight: 600; transition: all 0.2s; }

.btn-action-primary:hover { background-color: var(--accent-hover); border-color: var(--accent-hover); color: white; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }

/* Enhanced Tab Styling */
.custom-tabs { border-bottom: none; background-color: var(--dark-card); border-radius: var(--border-radius); padding: 5px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); margin-bottom: 1.5rem !important; overflow: hidden; display: flex; width: 100%; }
.custom-tabs .nav-item { margin: 0; flex: 1; display: flex; }
.custom-tabs .nav-link { border: none; border-radius: var(--border-radius); color: var(--text-muted); background-color: transparent; padding: 12px 10px; position: relative; transition: all 0.3s ease; overflow: hidden; width: 100%; justify-content: center; }
.tab-content-wrapper { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; width: 100%; }
.tab-icon { font-size: 1.5rem; margin-bottom: 5px; color: var(--text-muted); transition: all 0.3s ease; }
.tab-text { font-weight: 600; font-size: 0.9rem; letter-spacing: 0.5px; transition: all 0.3s ease; text-align: center; }
.tab-indicator { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent)); transition: width 0.3s ease; border-radius: 3px; }
.custom-tabs .nav-link:hover { background-color: rgba(140, 82, 255, 0.08); }
.custom-tabs .nav-link:hover .tab-icon,
.custom-tabs .nav-link:hover .tab-text { color: var(--accent-color); transform: translateY(-2px); }
.custom-tabs .nav-link.active { background-color: rgba(140, 82, 255, 0.15); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.custom-tabs .nav-link.active .tab-icon { color: var(--accent-color); transform: translateY(-2px) scale(1.1); text-shadow: 0 0 10px rgba(140, 82, 255, 0.5); }
.custom-tabs .nav-link.active .tab-text { color: var(--accent-color); transform: translateY(-2px); }
.custom-tabs .nav-link.active .tab-indicator { width: 80%; }
/* Pokéball-inspired active indicator animation */
.custom-tabs .nav-link.active::before { content: ''; position: absolute; top: 50%; left: 50%; width: 150%; height: 150%; background: radial-gradient(circle, rgba(140, 82, 255, 0.2) 0%, rgba(140, 82, 255, 0) 70%); border-radius: 50%; transform: translate(-50%, -50%) scale(0); z-index: 1; animation: pulse 2s infinite; }

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
    70% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}
/* Responsive adjustments */
@media (max-width: 767px) {
    .custom-tabs { padding: 3px; }

    .custom-tabs .nav-link { padding: 8px 4px; }

    .tab-icon { font-size: 1.2rem; margin-bottom: 3px; }

    .tab-text { font-size: 0.75rem; }
}

@media (max-width: 480px) {
    .tab-icon { font-size: 1rem; margin-bottom: 2px; }

    .tab-text { font-size: 0.7rem; }
}

/* Slider styling */
.custom-range { height: 0.5rem; }

.custom-range::-webkit-slider-thumb { background: var(--accent-color); }

.custom-range::-moz-range-thumb { background: var(--accent-color); }

.custom-range::-ms-thumb { background: var(--accent-color); }

/* Slider container for mobile stacking */
@media (max-width: 767px) {
    .slider-container { display: flex; flex-direction: column; }

    .slider-group { width: 100%; margin-bottom: 1.5rem; }

    .slider-group:last-child { margin-bottom: 0; }
}

/* Checkbox styling */
.form-check-input { background-color: var(--dark-input); border-color: rgba(255, 255, 255, 0.3); }

.form-check-input:checked { background-color: var(--accent-color); border-color: var(--accent-color); }

/* Pokémon preview styling */
.pokemon-preview-container { position: relative; height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: var(--dark-card); border-radius: var(--border-radius); z-index: 1; }

.pokemon-info { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 200px; }

.profile-img-container { position: relative; width: 160px; height: 160px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; z-index: 3; }

.profile-img-container img { max-width: 160px; max-height: 160px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); position: relative; z-index: 3; }

#pokemon-name { position: relative; z-index: 3; background-color: transparent; border: 1px solid rgba(140, 82, 255, 0.3); }

.ball-img-container { position: absolute; bottom: 30px; left: 60px;  z-index: 3; }

.item-img-container { position: absolute; bottom: 10px; right: 10px; width: 32px; height: 32px; z-index: 3; }

.alpha-img-container { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; z-index: 3; }

/* Add these styles to your existing CSS */
.pokemon-stat-chart { position: relative; width: 100%; height: 360px; display: flex; justify-content: center; align-items: center; }

.stat-chart-container { position: relative; width: 100%; max-width: 300px; height: 300px; margin: 0 auto; }

canvas#statHexagon { width: 100%; height: 100%; }

.stat-value-hp, .stat-value-atk, .stat-value-def,
.stat-value-spa, .stat-value-spd, .stat-value-speed { position: absolute; text-align: center; width: 80px; pointer-events: none; }

.stat-value-hp { top: -15px; left: 50%; transform: translateX(-50%); }

.stat-value-atk { top: 22%; right: -10px; }

.stat-value-def { bottom: 22%; right: -10px; }

.stat-value-speed { bottom: -15px; left: 50%; transform: translateX(-50%); }

.stat-value-spd { bottom: 22%; left: -10px; }

.stat-value-spa { top: 22%; left: -10px; }

.stat-label { color: #ffcb05; /* Pokemon yellow */ font-weight: bold; font-size: 0.9rem; margin-bottom: 2px; text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7); }

.stat-value { color: white; font-weight: bold; font-size: 1.1rem; text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7); }

.stat-base { color: #aaa; font-size: 0.8rem; opacity: 0.8; }

.ev-controls { display: flex; flex-direction: column; gap: 12px; padding: 0 10px; }

.ev-stat-row { display: grid; grid-template-columns: 100px 1fr 60px 60px; align-items: center; gap: 10px; }

.ev-stat-label { display: flex; align-items: center; }

.ev-controls-header { background-color: rgba(140, 82, 255, 0.1); border-radius: 8px; padding: 12px; border-left: 3px solid var(--accent-color); }

.ev-slider-wrapper { position: relative; width: 100%; height: 30px; margin-bottom: 15px; }

.ev-slider-wrapper.enhanced-slider { padding-top: 5px; }

.ev-slider-wrapper .form-range { position: relative; z-index: 2; background: transparent; }

.ev-slider-wrapper .slider-progress { position: absolute; top: 50%; left: 0; transform: translateY(-50%); height: 10px; background: linear-gradient(90deg, #8c52ff, #a46dff); border-radius: 5px; z-index: 1; pointer-events: none; transition: width 0.25s ease; box-shadow: 0 0 6px rgba(140, 82, 255, 0.4); }

.slider-markers { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); padding: 0 2px; margin-top: 2px; }

.stat-label-text { display: flex; align-items: center; }

.stat-name { font-weight: 600; margin-right: 5px; }

.stat-help { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); cursor: help; }

.ev-stat-row { display: grid; grid-template-columns: 85px 1fr 70px 70px; align-items: center; gap: 12px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

.ev-stat-input .input-group, .iv-stat-input .input-group { border-radius: 4px; overflow: hidden; box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); }

.ev-stat-input .input-group-text, .iv-stat-input .input-group-text { font-size: 0.7rem; padding: 0.25rem 0.5rem; font-weight: bold; }

.ev-stat-input .input-group-text { background-color: rgba(140, 82, 255, 0.3); border-color: rgba(140, 82, 255, 0.5); }

.iv-stat-input .input-group-text { background-color: rgba(23, 162, 184, 0.3); border-color: rgba(23, 162, 184, 0.5); }

/* Custom slider thumb */
.ev-slider-wrapper .form-range::-webkit-slider-thumb { background: #8c52ff; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.9); box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); cursor: pointer; -webkit-appearance: none; margin-top: -4px; border-radius: 50%; transition: all 0.2s ease; }

.ev-slider-wrapper .form-range::-moz-range-thumb { background: #8c52ff; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.9); box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); cursor: pointer; border-radius: 50%; transition: all 0.2s ease; }

.ev-slider-wrapper .form-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(140, 82, 255, 0.4); transform: scale(1.1); }

.ev-slider-wrapper .form-range:focus::-moz-range-thumb { box-shadow: 0 0 0 3px rgba(140, 82, 255, 0.4); transform: scale(1.1); }

/* Custom slider track */
.ev-slider-wrapper .form-range::-webkit-slider-runnable-track { height: 10px; background: rgba(30, 30, 30, 0.8); border-radius: 5px; cursor: pointer; }

.ev-slider-wrapper .form-range::-moz-range-track { height: 10px; background: rgba(30, 30, 30, 0.8); border-radius: 5px; cursor: pointer; }

/* Randomize button styles */
#randomizeEV { background: linear-gradient(135deg, #8c52ff, #a46dff); border: none; font-weight: 600; padding: 0.3rem 0.8rem; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; transition: all 0.2s; }

#randomizeEV:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); filter: brightness(1.1); }

/* Touch indicator for mobile */
.ev-slider-wrapper .form-range::-webkit-slider-thumb { background: var(--accent-color); width: 20px; height: 20px; border: none; box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); cursor: pointer; -webkit-appearance: none; margin-top: -6px; z-index: 3; position: relative; }

.ev-slider-wrapper .form-range::-moz-range-thumb { background: var(--accent-color); width: 20px; height: 20px; border: none; box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); cursor: pointer; z-index: 3; position: relative; }

.ev-stat-input input, .iv-stat-input input { padding: 0.25rem; text-align: center; }

.nature-increase .ev-slider-wrapper .slider-progress { background: #28a745; }

.nature-decrease .ev-slider-wrapper .slider-progress { background: #dc3545; }

/* Responsive styles */
@media (max-width: 991px) {
    .pokemon-stat-chart { height: 300px; margin-bottom: 20px; }

    .stat-chart-container { height: 250px; }

    .ev-stat-row { grid-template-columns: 90px 1fr 50px 50px; gap: 5px; }

    .stat-value-hp, .stat-value-atk, .stat-value-def,
    .stat-value-spa, .stat-value-spd, .stat-value-speed { width: 70px; }
}

@media (max-width: 767px) {
    .ev-stat-row { grid-template-columns: 80px 1fr 45px 45px; }

    .stat-label { font-size: 0.8rem; }

    .stat-value { font-size: 1rem; }
}

@media (max-width: 576px) {
    .stat-value-hp, .stat-value-atk, .stat-value-def,
    .stat-value-spa, .stat-value-spd, .stat-value-speed { width: 60px; }

    .ev-stat-row { grid-template-columns: 70px 1fr 40px 40px; gap: 4px; }
}

/* Moves table styling */
.table-dark { background-color: var(--dark-card); border-radius: var(--border-radius); border: none; color: var(--text-light); }

.table-dark thead th { background-color: var(--dark-header); border-bottom: 2px solid rgba(140, 82, 255, 0.3); color: var(--text-light); font-weight: 600; }

.table-dark tbody tr.selected { background-color: rgba(140, 82, 255, 0.2); border-left: 3px solid var(--accent-color); }

.table-dark tbody tr { cursor: pointer; transition: background-color 0.2s ease; }

.table-dark tbody tr:hover { background-color: rgba(140, 82, 255, 0.1); }

/* Clear any potentially conflicting selection styles */
.table-dark tbody tr.selected:hover { background-color: rgba(140, 82, 255, 0.2); }

/* Ensure table cells are properly padded */
.table-dark td { padding: 0.5rem; vertical-align: middle; }

.moves-container { max-height: 400px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--accent-color) var(--dark-card); }

.moves-container::-webkit-scrollbar { width: 8px; }

.moves-container::-webkit-scrollbar-track { background: var(--dark-card); }

.moves-container::-webkit-scrollbar-thumb { background-color: var(--accent-color); border-radius: 20px; }

.selected-moves-list { gap: 0.5rem; }

/* Badge background colors for visual clarity */
.bg-accent { background-color: var(--accent-color); }

.bg-purple { background-color: #9c27b0; }

/* Batch trade styling */
.batch-sets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }

/* FIXED: Pokemon slot styling */
.pokemon-slot { background-color: var(--dark-header); border-radius: var(--border-radius); padding: 1.25rem; position: relative; border: 1px solid rgba(140, 82, 255, 0.2); transition: all 0.3s; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); display: flex; flex-direction: column; height: 260px; /* Fixed height to ensure consistent sizing */ }

.pokemon-slot:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); border-color: var(--accent-color); }

.pokemon-slot.editing { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(140, 82, 255, 0.2); }

/* FIXED: Image container styling */
.pokemon-slot .image-container { position: relative; display: flex; justify-content: center; align-items: center; height: 100px; /* Fixed height */ margin-bottom: 0.75rem; overflow: visible; /* Allow elements to be visible outside container */ }

.pokemon-slot .pokemon-image { width: 90px; height: 90px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); transition: transform 0.3s; border-radius: 0; /* Remove any border radius */ }

/* Remove any circle styling */
.pokemon-slot .pokemon-info { border-radius: 0; background: none; border: none; }

.pokemon-slot .pokemon-info:before { display: none; /* Remove circular background */ }

.pokemon-slot .ball-image,
.pokemon-slot .held-item { position: absolute; width: 24px; height: 24px; bottom: 0; }

.pokemon-slot .ball-image { left: 10px; }

.pokemon-slot .held-item { right: 10px; }

/* FIXED: Text content area */
.pokemon-slot .content-area { display: flex; flex-direction: column; flex: 1; margin-bottom: 10px; }

.pokemon-slot .pokemon-name { font-weight: 600; color: var(--accent-color); text-align: center; margin-bottom: 0.25rem; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }

.pokemon-slot .details { text-align: center; font-size: 0.9rem; color: var(--text-muted); }

.pokemon-slot .slot-actions { display: flex; justify-content: space-between; margin-top: auto; /* Push to bottom */ padding: 5px; position: relative; z-index: 10; /* Ensure buttons are above other content */ }

.pokemon-slot .edit-btn,
.pokemon-slot .remove-btn { background-color: rgba(255, 255, 255, 0.1); border: none; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--text-light); transition: all 0.2s; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); position: relative; z-index: 10; /* Ensure buttons are above other content */ margin: 0 5px; }

.pokemon-slot .edit-btn i,
.pokemon-slot .remove-btn i { font-size: 20px; pointer-events: none; /* Ensures clicks go through to the button */ }

.pokemon-slot .edit-btn:hover { background-color: var(--accent-color); color: white; transform: scale(1.1); box-shadow: 0 4px 8px rgba(140, 82, 255, 0.4); }

.pokemon-slot .remove-btn:hover { background-color: #dc3545; color: white; transform: scale(1.1); box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4); }

/* Empty slot styling */
.empty-slot { background-color: rgba(255, 255, 255, 0.03); border: 2px dashed rgba(140, 82, 255, 0.2); border-radius: var(--border-radius); display: flex; flex-direction: column; align-items: center; justify-content: center; height: 260px; /* Match Pokemon slot height */ cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }

.empty-slot i { font-size: 2.5rem; color: rgba(140, 82, 255, 0.3); margin-bottom: 0.5rem; }

.empty-slot:after { content: "Add Pokémon"; color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; margin-top: 0.5rem; }

.empty-slot:hover { background-color: rgba(140, 82, 255, 0.1); border-color: rgba(140, 82, 255, 0.5); transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); }

.empty-slot:hover i { color: var(--accent-color); }

/* Batch trade section header */
.batch-trade-container .card-header { background: linear-gradient(90deg, rgba(140, 82, 255, 0.2), transparent); border-bottom: 1px solid rgba(140, 82, 255, 0.3); }

.batch-trade-container h5 { font-weight: 700; letter-spacing: 0.5px; }

/* Start Trade button styling */
#startBatchTrade { background-color: var(--accent-color); border-color: var(--accent-color); padding: 0.5rem 1rem; font-weight: 600; transition: all 0.3s; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); }

#startBatchTrade:hover:not([disabled]) { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); }

#startBatchTrade:disabled { opacity: 0.6; cursor: not-allowed; }

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .pokemon-preview-container { height: 220px; }

    .profile-img-container { width: 120px; height: 120px; }

    .profile-img-container img { max-width: 120px; max-height: 120px; }

    .batch-sets-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

    .pokemon-slot,
    .empty-slot { height: 240px; }
}

@media (max-width: 767.98px) {
    .stat-header { padding: 0.5rem; }

    .stat-body { padding: 0.75rem; }
}

@media (max-width: 575.98px) {
    .pokemon-creator { padding: 0.5rem; }

    .batch-sets-grid { grid-template-columns: 1fr 1fr; }
}

/* Ensure selectpicker applies the dark theme */
.bootstrap-select .dropdown-menu { background-color: var(--dark-card); border: 1px solid rgba(255, 255, 255, 0.1); z-index: 1001; }

.bootstrap-select .dropdown-item { color: var(--text-light); }

.bootstrap-select .dropdown-item:hover,
.bootstrap-select .dropdown-item:focus { background-color: rgba(140, 82, 255, 0.2); color: var(--text-light); }

.bootstrap-select .dropdown-item.active { background-color: var(--accent-color); color: white; }

.bootstrap-select .bs-searchbox .form-control { background-color: var(--dark-input); border-color: rgba(255, 255, 255, 0.1); color: var(--text-light); }

/* Animation for hover effects */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(140, 82, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(140, 82, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(140, 82, 255, 0); }
}

.nature-increase { box-shadow: inset 0 0 0 2px #28a745 !important; background-color: rgba(40, 167, 69, 0.05) !important; }

.nature-decrease { box-shadow: inset 0 0 0 2px #dc3545 !important; background-color: rgba(220, 53, 69, 0.05) !important; }

.text-success { color: #28a745 !important; font-weight: bold !important; }

.text-danger { color: #dc3545 !important; font-weight: bold !important; }

/* Enhanced Quick Action buttons */
.btn-quick-action { background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(140, 82, 255, 0.2); color: var(--text-light); padding: 10px 15px; height: 44px; font-weight: 500; transition: all 0.2s ease; text-align: center; border-radius: var(--border-radius); width: 100%; /* Make buttons fill their container */ margin: 0 5px; /* Add horizontal margins */ }

.btn-quick-action:first-child { margin-left: 0; /* Remove left margin from first button */ }

.btn-quick-action:last-child { margin-right: 0; /* Remove right margin from last button */ }

.btn-quick-action:hover { background-color: rgba(140, 82, 255, 0.2); border-color: var(--accent-color); color: white; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); }

.btn-quick-action-primary { background-color: var(--accent-color); border: 1px solid var(--accent-color); color: white; padding: 10px 15px; height: 44px; font-weight: 600; transition: all 0.2s ease; text-align: center; border-radius: var(--border-radius); width: 100%; /* Make buttons fill their container */ margin: 0 5px; /* Add horizontal margins */ }

.btn-quick-action-primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25); }

/* Adjust icons in quick action buttons */
.btn-quick-action i,
.btn-quick-action-primary i { font-size: 16px; }

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .d-flex.justify-content-between.gap-3 { flex-wrap: wrap; gap: 0.5rem !important; }

    .btn-quick-action,
    .btn-quick-action-primary { flex-basis: 48%; margin: 4px; padding: 8px 10px; }
}

/* Showdown Set Actions */
.showdown-actions { border-top: 1px solid rgba(140, 82, 255, 0.2); padding-top: 15px; }

.btn-showdown-action { background-color: rgba(255, 255, 255, 0.08); border: 1px solid rgba(140, 82, 255, 0.2); color: var(--text-light); border-radius: var(--border-radius); padding: 8px 12px; font-weight: 500; transition: all 0.2s ease; flex: 1; min-width: 100px; text-align: center; }

.btn-showdown-action:hover { background-color: rgba(140, 82, 255, 0.15); border-color: var(--accent-color); color: white; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); }

.btn-showdown-action-primary { background: linear-gradient(135deg, var(--accent-color), var(--accent-hover)); border: 1px solid var(--accent-color); color: white; border-radius: var(--border-radius); padding: 8px 12px; font-weight: 600; transition: all 0.2s ease; flex: 1; min-width: 120px; text-align: center; }

.btn-showdown-action-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(140, 82, 255, 0.4); filter: brightness(1.1); }

/* Make sure buttons are responsive */
@media (max-width: 576px) {
    .showdown-actions { padding-top: 12px; }

    .showdown-actions .d-flex { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }

    .btn-showdown-action,
    .btn-showdown-action-primary { width: 100%; margin: 0 !important; padding: 10px 8px; font-size: 0.85rem; min-width: unset; display: flex; align-items: center; justify-content: center; }

    .btn-showdown-action i,
    .btn-showdown-action-primary i { margin-right: 6px; font-size: 0.9rem; }
}
/* Selection requirement overlay */
.position-relative { position: relative; }

.selection-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(33, 37, 41, 0.95); z-index: 1000; display: flex; align-items: center; justify-content: center; border-radius: var(--border-radius); backdrop-filter: blur(3px); }

.selection-message { background-color: var(--dark-card); border: 1px solid var(--accent-color); border-radius: var(--border-radius); padding: 3px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); position: absolute; left: 200px; top: -13px; width: 200px; z-index: 99; }

.arrow-pointer { position: absolute; left: -30px; top: 50%; transform: translateY(-50%); animation: point-left 1.5s infinite; }

@keyframes point-left {
    0% { left: -30px; }
    50% { left: -40px; }
    100% { left: -30px; }
}

.text-accent { color: var(--accent-color); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); z-index: 9999; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(5px); display: none; }

.loading-spinner-container { text-align: center; background-color: #212529; border: 1px solid #8c52ff; border-radius: 10px; padding: 30px; box-shadow: 0 0 20px rgba(140, 82, 255, 0.3); }

.loading-spinner { display: inline-block; width: 50px; height: 50px; border: 4px solid rgba(140, 82, 255, 0.2); border-radius: 50%; border-top-color: #8c52ff; animation: spin 1s linear infinite; margin-bottom: 15px; }

.loading-text { color: white; font-size: 16px; margin: 0; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ev-slider-wrapper { position: relative; width: 100%; height: 24px; margin-bottom: 10px; }

.ev-slider-wrapper .form-range { position: relative; z-index: 2; background: transparent; }

.ev-slider-wrapper .slider-progress { position: absolute; top: 50%; left: 0; transform: translateY(-50%); height: 8px; background: var(--accent-color); border-radius: 4px; z-index: 1; pointer-events: none; transition: width 0.2s ease; }

/* Improve slider appearance on Webkit browsers */
.ev-slider-wrapper .form-range::-webkit-slider-thumb { background: var(--accent-color); width: 16px; height: 16px; border: none; box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); cursor: pointer; -webkit-appearance: none; margin-top: -4px; z-index: 3; position: relative; }

/* Improve slider appearance on Firefox */
.ev-slider-wrapper .form-range::-moz-range-thumb { background: var(--accent-color); width: 16px; height: 16px; border: none; box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); cursor: pointer; z-index: 3; position: relative; }

/* Improved slider track */
.ev-slider-wrapper .form-range::-webkit-slider-runnable-track { height: 8px; background: rgba(50, 50, 50, 0.8); border-radius: 4px; cursor: pointer; }

.ev-slider-wrapper .form-range::-moz-range-track { height: 8px; background: rgba(50, 50, 50, 0.8); border-radius: 4px; cursor: pointer; }

/* Enhanced slider thumb */
.ev-slider-wrapper .form-range::-webkit-slider-thumb { background: #8c52ff; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.8); box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); cursor: pointer; -webkit-appearance: none; margin-top: -5px; z-index: 3; position: relative; border-radius: 50%; }

.ev-slider-wrapper .form-range::-moz-range-thumb { background: #8c52ff; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.8); box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); cursor: pointer; z-index: 3; position: relative; border-radius: 50%; }

/* Progress bar styling */
.ev-slider-wrapper .slider-progress { background: linear-gradient(to right, #8c52ff, #a46dff); height: 8px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }

/* Add hover effects */
.ev-slider-wrapper:hover .form-range::-webkit-slider-thumb { box-shadow: 0 0 8px #8c52ff; transform: scale(1.1); }

.ev-slider-wrapper:hover .form-range::-moz-range-thumb { box-shadow: 0 0 8px #8c52ff; transform: scale(1.1); }

/* Styles for fixed ball dropdown in dark theme */
.bg-dark-input.disabled { opacity: 0.7; background-color: #2a2a2a !important; border-color: #444 !important; }

.bootstrap-select.disabled .filter-option { color: #aaa !important; }

/* Style for the fixed ball indicator badge */
.fixed-ball-indicator { background-color: #ffc107; color: #212529; padding: 0.25rem 0.5rem; margin-left: 0.5rem; }

/* Increase the width of EV and IV input columns and fix their appearance */
.ev-stat-row { display: grid; /* Increase the width of the last two columns from 70px to 80px */ grid-template-columns: 85px 1fr 80px 80px; align-items: center; gap: 12px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

/* Ensure input fields have proper padding */
.ev-stat-input input, .iv-stat-input input { padding: 0.25rem 0.1rem; text-align: center; min-width: 3rem; }

/* Make the input group text labels narrower */
.ev-stat-input .input-group-text, .iv-stat-input .input-group-text { font-size: 0.7rem; padding: 0.25rem 0.3rem; font-weight: bold; width: 30px; }

/* Ensure the number inputs have enough space */
.input-group-sm > .form-control { min-width: 48px; }

/* Make sure numbers are fully visible */
.input-group-sm input[type="number"] { padding-right: 2px; padding-left: 2px; }

/* Fix mobile layout for smaller screens */
@media (max-width: 575.98px) {
    .ev-stat-row { grid-template-columns: 70px 1fr 60px 60px; gap: 6px; }

    .stat-label-text { font-size: 0.85rem; }

    .ev-stat-input input, .iv-stat-input input { font-size: 0.85rem; }
}

.fixed-iv { background-color: rgba(0, 123, 255, 0.1) !important; border-left: 3px solid #007bff !important; }
.fixed-iv:disabled { opacity: 0.8; cursor: not-allowed; }

/* Ribbons & Marks Styling */
.ribbons-marks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; margin-bottom: 16px; max-height: 300px; overflow-y: auto; padding-right: 5px; }

@media (min-width: 768px) {
    .ribbons-marks-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

.ribbon-mark-item { display: flex; flex-direction: column; align-items: center; padding: 10px; background-color: rgba(255, 255, 255, 0.05); border-radius: 8px; transition: all 0.2s; cursor: pointer; border: 2px solid transparent; position: relative; }

.ribbon-mark-item:hover { background-color: rgba(140, 82, 255, 0.1); transform: translateY(-2px); }

.ribbon-mark-item.selected { border-color: var(--accent-color); background-color: rgba(140, 82, 255, 0.15); box-shadow: 0 0 10px rgba(140, 82, 255, 0.3); }

.ribbon-mark-item.required { border-color: #ffc107; background-color: rgba(255, 193, 7, 0.1); }

.ribbon-mark-item.possible { border-color: #17a2b8; background-color: rgba(23, 162, 184, 0.05); }

.ribbon-mark-item.possible.selected { background-color: rgba(23, 162, 184, 0.15); box-shadow: 0 0 10px rgba(23, 162, 184, 0.3); }

.ribbon-mark-item.required::after { content: "\f023"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; top: 5px; right: 5px; color: #ffc107; font-size: 12px; }

.ribbon-mark-img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 8px; }

.ribbon-mark-name { font-size: 12px; text-align: center; color: var(--text-light); word-break: break-word; hyphens: auto; }

.ribbon-mark-placeholder { grid-column: 1 / -1; padding: 20px; text-align: center; color: var(--text-muted); background-color: rgba(255, 255, 255, 0.05); border-radius: 8px; font-style: italic; }

/* Collapsible section styles */
.btn-toggle { background-color: rgba(255, 255, 255, 0.05); border: none; border-radius: 8px; text-align: left; padding: 10px 15px; transition: all 0.2s; }

.btn-toggle:hover,
.btn-toggle:focus { background-color: rgba(140, 82, 255, 0.1); }

.btn-toggle .toggle-icon { transition: transform 0.2s; }

.btn-toggle[aria-expanded="true"] .toggle-icon { transform: rotate(180deg); }

.collapse { padding: 10px; background-color: rgba(0, 0, 0, 0.2); border-radius: 8px; margin-top: 5px; }

/* Bootstrap 4 spacing classes */
.me-2 { margin-right: .5rem !important; }

.mr-2 { margin-right: .5rem !important; }

.ht-stat-input { flex: 0 0 auto; margin-left: 5px; display: flex; align-items: center; }

@media (max-width: 767px) {
    .ht-stat-input { margin-top: 5px; }
}
