* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

/* Color Palette Variables */
:root {
    --primary-bg: #0D0D0D;
    --primary-text: #FFFFFF;
    --button-bg: #E9AA46;
    --menu-bg: #141414;
    --subtext: #A0A0A0;
    --link-accent: #C98931;
}

/* Map Container */
#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-bg) url('../images/map/background.png') center center no-repeat;
    background-size: cover;
    cursor: url('../images/cursor_default.png'), auto;
}

/* Map border overlays */
.map-border-overlay {
    pointer-events: none;
    z-index: 500;
}

#map.map-dragging {
    cursor: url('../images/cursor_move.png'), move;
}

/* Override Leaflet's default cursors */
.leaflet-container {
    cursor: url('../images/cursor_default.png'), auto !important;
}

.leaflet-container.map-dragging,
.leaflet-dragging .leaflet-container {
    cursor: url('../images/cursor_move.png'), move !important;
}

.leaflet-grab {
    cursor: url('../images/cursor_default.png'), auto !important;
}

.leaflet-dragging .leaflet-grab {
    cursor: url('../images/cursor_move.png'), move !important;
}

/* Sidebar - Right side with transparency */
.sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    color: var(--primary-text);
    overflow-y: auto;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.sidebar.collapsed {
    transform: translateX(320px);
}

.sidebar-header {
    padding: 0;
    background: var(--menu-bg);
    border-bottom: 2px solid var(--button-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 130px;
}

.sidebar-header h1 {
    font-size: 24px;
    color: var(--primary-text);
}

.sidebar-logo {
    width: 100%;
    height: auto;
    max-height: 264px;
    object-fit: contain;
    padding: 3px 20px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--primary-text);
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    position: absolute;
    top: 10px;
    right: 10px;
}

.sidebar-toggle:hover {
    color: var(--button-bg);
}

/* Search Section */
.search-section {
    padding: 20px;
    border-bottom: 1px solid var(--menu-bg);
}

#search-input {
    width: 100%;
    padding: 10px;
    background: var(--primary-bg);
    border: 1px solid var(--menu-bg);
    border-radius: 4px;
    color: var(--primary-text);
    font-size: 14px;
}

#search-input:focus {
    outline: none;
    border-color: var(--button-bg);
}

.search-results {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.search-result-item {
    padding: 8px;
    background: var(--primary-bg);
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--menu-bg);
}

/* Filter Section */
.filter-section {
    padding: 20px;
    border-bottom: 1px solid var(--menu-bg);
}

.filter-section h3 {
    margin-bottom: 15px;
    color: var(--button-bg);
    font-size: 16px;
}

.filter-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-btn {
    flex: 1;
    padding: 8px;
    background: var(--button-bg);
    border: 1px solid var(--button-bg);
    border-radius: 4px;
    color: var(--primary-bg);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--link-accent);
    border-color: var(--link-accent);
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Filter Section Headers */
.filter-section-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--button-bg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0 6px 0;
    margin-top: 8px;
    border-bottom: 1px solid var(--button-bg);
}

.filter-section-header:first-child {
    margin-top: 0;
}

.category-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    background: var(--primary-bg);
    border-radius: 4px;
}

.category-filter:hover {
    background: rgba(233, 170, 70, 0.1);
}

.category-filter input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: url('../images/map/unchecked.png') no-repeat center center;
    background-size: contain;
    margin: 0;
}

.category-filter input[type="checkbox"]:checked {
    background: url('../images/map/checked.png') no-repeat center center;
    background-size: contain;
}

.category-filter label {
    flex: 1;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-icon {
    width: 20px;
    height: 20px;
}

.category-count {
    color: var(--subtext);
    font-size: 12px;
}

/* Collapsible Filter Groups */
.filter-group {
    background: var(--primary-bg);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 5px;
}

.filter-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--menu-bg);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.filter-group-header:hover {
    background: rgba(233, 170, 70, 0.2);
}

.collapse-icon {
    font-size: 10px;
    color: var(--button-bg);
    width: 12px;
    text-align: center;
    transition: transform 0.2s;
}

.filter-group.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.group-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: url('../images/map/unchecked.png') no-repeat center center;
    background-size: contain;
    margin: 0;
}

.group-checkbox:checked {
    background: url('../images/map/checked.png') no-repeat center center;
    background-size: contain;
}

.group-label {
    flex: 1;
    font-weight: bold;
    color: var(--button-bg);
    font-size: 14px;
    cursor: pointer;
}

.filter-group-content {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 500px;
    overflow-y: auto;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

.filter-group.collapsed .filter-group-content {
    max-height: 0;
    padding: 0 8px;
    opacity: 0;
    overflow: hidden;
}

.filter-group-content .category-filter {
    padding: 6px 8px;
    margin-left: 8px;
    background: var(--primary-bg);
}

/* Location List */
.location-list {
    padding: 20px;
}

.location-list h3 {
    margin-bottom: 15px;
    color: var(--button-bg);
    font-size: 16px;
}

.location-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.location-item {
    padding: 10px;
    background: var(--primary-bg);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.location-item:hover {
    background: var(--menu-bg);
}

.location-item-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.location-item-type {
    font-size: 12px;
    color: var(--subtext);
}

/* Legend - Middle left */
.legend {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    min-width: 180px;
}

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

.legend-header h3 {
    color: var(--button-bg);
    font-size: 16px;
    margin: 0;
}

.legend-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-text);
    font-size: 14px;
}

.legend-group-header {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--button-bg);
}

.legend-subitem {
    padding-left: 10px;
    font-size: 13px;
    color: var(--subtext);
}

.legend-icon {
    width: 24px;
    height: 24px;
}

/* Coordinate Display */
.coords-display {
    position: absolute;
    bottom: 20px;
    right: 340px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 4px;
    z-index: 1000;
    color: var(--primary-text);
    font-family: 'Courier New', monospace;
    font-size: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: background 0.2s;
    min-width: 180px;
}

.coords-display #coords-text {
    font-size: 16px;
    font-weight: bold;
    color: var(--button-bg);
    margin-bottom: 4px;
}

.coords-display #tile-text {
    color: var(--subtext);
    margin-bottom: 2px;
}

.coords-display #area-text {
    color: var(--link-accent);
    font-size: 14px;
}

.sidebar.collapsed ~ .coords-display {
    right: 20px;
}

.coords-display:hover {
    background: var(--menu-bg);
}

/* Loading Indicator */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 20, 20, 0.95);
    padding: 30px;
    border-radius: 8px;
    z-index: 2000;
    text-align: center;
    color: var(--primary-text);
}

.loading.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--menu-bg);
    border-top: 4px solid var(--button-bg);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    background: rgba(20, 20, 20, 0.95);
    color: var(--primary-text);
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 15px;
}

.leaflet-popup-tip {
    background: rgba(20, 20, 20, 0.95);
}

.popup-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--button-bg);
}

.popup-type {
    display: inline-block;
    padding: 4px 8px;
    background: var(--primary-bg);
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 8px;
}

.popup-description {
    margin-bottom: 8px;
    font-size: 14px;
}

.popup-coords {
    font-size: 12px;
    color: var(--subtext);
    font-family: 'Courier New', monospace;
    margin-bottom: 8px;
}

.popup-share {
    padding: 6px 12px;
    background: var(--button-bg);
    border: none;
    border-radius: 4px;
    color: var(--primary-bg);
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.popup-share:hover {
    background: var(--link-accent);
}

/* Detailed popup content */
.popup-detail {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.popup-detail strong {
    color: var(--button-bg);
}

.popup-list {
    margin: 4px 0 0 16px;
    padding: 0;
    list-style: none;
}

.popup-list li {
    margin-bottom: 2px;
    font-size: 12px;
    color: var(--subtext);
}

.popup-list li::before {
    content: "• ";
    color: var(--button-bg);
}

/* Drop and Skinning lists */
.popup-drops, .popup-skinning {
    margin-top: 8px;
}

.popup-drops-list, .popup-skinning-list {
    max-height: 150px;
    overflow-y: auto;
}

.drop-name {
    color: #E0E0E0;
}

.drop-chance {
    color: var(--button-bg);
    font-size: 11px;
}

/* Nearby monsters hover effect */
.popup-nearby-monsters {
    cursor: pointer;
    transition: background 0.2s;
    padding: 4px;
    margin: -4px;
    border-radius: 4px;
}

.popup-nearby-monsters:hover {
    background: rgba(233, 170, 70, 0.15);
}

.nearby-monsters-label {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

.popup-nearby-monsters:hover .nearby-monsters-label {
    color: var(--button-bg);
}

/* Map markers with name labels */
.map-marker-with-label,
.nearby-monster-marker {
    background: transparent !important;
    border: none !important;
}

.marker-label-content,
.monster-marker-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-label-icon,
.monster-marker-icon {
    width: 32px;
    height: 32px;
}

.marker-label-name,
.monster-marker-name {
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 6px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    margin-top: 2px;
    text-align: center;
}

/* Highlighted monster markers (hover preview) */
.nearby-monster-marker .monster-marker-content {
    animation: pulse-highlight 1s ease-in-out infinite;
}

.nearby-monster-marker .monster-marker-icon {
    filter: drop-shadow(0 0 8px rgba(233, 170, 70, 0.8));
}

/* Pinned monster markers (after click) */
.pinned-monster-marker .monster-marker-content {
    animation: none;
    cursor: pointer;
}

.pinned-monster-marker .monster-marker-icon {
    filter: drop-shadow(0 0 6px rgba(233, 170, 70, 0.6));
}

.pinned-monster-marker:hover .monster-marker-content {
    transform: scale(1.1);
}

/* Close all button in pinned monster popup */
.popup-close-pinned {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 6px 12px;
    background: #e74c3c;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.popup-close-pinned:hover {
    background: #c0392b;
}

@keyframes pulse-highlight {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--menu-bg);
    border-radius: 4px;
}

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

/* Feedback Tab - Bottom Left */
.feedback-tab {
    position: absolute;
    bottom: 40px;
    left: 20px;
    width: 420px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--menu-bg);
    border-radius: 8px 8px 0 0;
    cursor: pointer;
}

.feedback-header h3 {
    color: var(--button-bg);
    font-size: 16px;
    margin: 0;
}

.feedback-toggle {
    background: none;
    border: none;
    color: var(--primary-text);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
}

.feedback-toggle:hover {
    color: var(--button-bg);
}

.feedback-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.feedback-tab.open .feedback-content {
    max-height: 70vh;
    overflow-y: auto;
}

#feedback-form {
    padding: 12px;
}

/* Form Sections */
.form-section {
    margin-bottom: 12px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.section-number {
    width: 20px;
    height: 20px;
    background: var(--button-bg);
    color: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
}

.section-title {
    color: var(--primary-text);
    font-size: 12px;
    font-weight: 600;
}

/* Admin Button */
.admin-btn {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0 20px;
    padding: 12px;
    background: var(--button-bg);
    border: none;
    border-radius: 4px;
    color: var(--primary-bg);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-btn:hover {
    background: var(--link-accent);
}

.admin-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* Admin Panel - Sidebar Style */
.admin-panel-sidebar {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    overflow: hidden;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--menu-bg);
    border-bottom: 2px solid var(--button-bg);
}

.admin-panel-header h3 {
    color: var(--button-bg);
    margin: 0;
    font-size: 16px;
}

.close-admin-btn {
    background: var(--primary-bg);
    border: 1px solid var(--button-bg);
    color: var(--button-bg);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.close-admin-btn:hover {
    background: var(--button-bg);
    color: var(--primary-bg);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    background: var(--primary-bg);
    border-bottom: 1px solid var(--menu-bg);
}

.admin-tab {
    flex: 1;
    padding: 10px;
    background: var(--primary-bg);
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--subtext);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.admin-tab:hover {
    color: var(--primary-text);
    background: var(--menu-bg);
}

.admin-tab.active {
    color: var(--button-bg);
    border-bottom-color: var(--button-bg);
}

.admin-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: var(--primary-bg);
    border-bottom: 1px solid var(--menu-bg);
    color: var(--primary-text);
    font-size: 14px;
    font-weight: 600;
}

.admin-header-buttons {
    display: flex;
    gap: 6px;
}

.undo-btn {
    padding: 4px 8px;
    background: #e74c3c;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
}

.undo-btn:hover {
    background: #c0392b;
}

.refresh-btn {
    padding: 4px 8px;
    background: var(--menu-bg);
    border: 1px solid var(--button-bg);
    border-radius: 4px;
    color: var(--button-bg);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: var(--button-bg);
    color: var(--primary-bg);
}

.admin-list-items {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    min-height: 0;
}

.admin-list-empty {
    padding: 20px;
    text-align: center;
    color: var(--subtext);
    font-size: 13px;
}

.admin-list-item {
    padding: 10px;
    background: var(--primary-bg);
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.admin-list-item:hover {
    background: rgba(233, 170, 70, 0.1);
    border-color: var(--button-bg);
}

.admin-list-item.selected {
    background: rgba(233, 170, 70, 0.2);
    border-color: var(--button-bg);
}

.admin-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.admin-item-type {
    background: var(--button-bg);
    color: var(--primary-bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

.admin-item-date {
    color: var(--subtext);
    font-size: 10px;
}

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

.admin-item-category {
    color: var(--subtext);
    font-size: 11px;
}

/* History item styling */
.admin-list-item.history-approved {
    border-left: 3px solid #27ae60;
}

.admin-list-item.history-denied {
    border-left: 3px solid #e74c3c;
    opacity: 0.7;
}

.status-badge {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: bold;
    margin-left: 4px;
}

.status-badge.approved {
    background: #27ae60;
    color: white;
}

.status-badge.denied {
    background: #e74c3c;
    color: white;
}

/* Admin Detail Section - Sidebar Style */
.admin-detail-section {
    border-top: 2px solid var(--button-bg);
    overflow-y: auto;
    max-height: calc(100vh - 480px);
    min-height: 200px;
}

.admin-detail-divider {
    height: 2px;
    background: var(--button-bg);
}

.admin-detail-content {
    padding: 15px;
}

.admin-detail-header {
    margin-bottom: 10px;
}

.admin-detail-type {
    background: var(--button-bg);
    color: var(--primary-bg);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.detail-field {
    margin-bottom: 10px;
    padding: 8px;
    background: var(--primary-bg);
    border-radius: 4px;
}

.detail-field.highlight {
    background: rgba(233, 170, 70, 0.15);
    border: 1px solid var(--button-bg);
}

.detail-field label {
    display: block;
    color: var(--subtext);
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 3px;
    text-transform: uppercase;
}

/* Diff Comparison View for Drops */
.diff-comparison {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.diff-section {
    background: var(--primary-bg);
    border-radius: 4px;
    padding: 8px;
}

.diff-section-header {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--menu-bg);
}

.diff-section.old .diff-section-header {
    color: #e74c3c;
}

.diff-section.new .diff-section-header {
    color: #27ae60;
}

.diff-item {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    margin: 2px 0;
    border-radius: 3px;
    font-size: 12px;
}

.diff-item.removed {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.diff-item.added {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.diff-item.unchanged {
    background: var(--menu-bg);
    color: var(--subtext);
}

.diff-item-indicator {
    width: 16px;
    font-weight: bold;
    flex-shrink: 0;
}

.diff-item-name {
    flex: 1;
}

.diff-item-chance {
    color: var(--subtext);
    font-size: 11px;
    margin-left: 8px;
}

.detail-field span {
    color: var(--primary-text);
    font-size: 13px;
}

.detail-description {
    color: var(--primary-text);
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.admin-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.approve-btn,
.deny-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.approve-btn {
    background: #27ae60;
    color: white;
}

.approve-btn:hover {
    background: #229954;
}

.deny-btn {
    background: #e74c3c;
    color: white;
}

.deny-btn:hover {
    background: #c0392b;
}

.undo-btn.full-width {
    width: 100%;
    padding: 10px;
    font-size: 13px;
}

.restore-btn {
    background: var(--button-bg);
    color: var(--primary-bg);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.restore-btn:hover {
    background: var(--link-accent);
}

.restore-btn.full-width {
    width: 100%;
    padding: 10px;
    font-size: 13px;
}

.admin-detail-status {
    padding: 10px;
    background: var(--menu-bg);
    border-radius: 4px;
    color: var(--subtext);
    font-size: 12px;
    text-align: center;
    margin-top: 15px;
}

.admin-detail-status.denied {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        transform: translateX(100%);
    }
    
    .sidebar.collapsed {
        transform: translateX(100%);
    }
    
    .sidebar:not(.collapsed) {
        transform: translateX(0);
    }
    
    .coords-display {
        right: 20px;
        bottom: 80px;
    }
    
    .sidebar.collapsed ~ .coords-display {
        right: 20px;
    }
    
    .feedback-tab {
        left: 20px;
        width: calc(100% - 40px);
    }
}

/* Sidebar Toggle Button (when collapsed) - Right side */
#sidebar-open-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 999;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    color: var(--primary-text);
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
    display: none;
}

.sidebar.collapsed ~ #sidebar-open-btn {
    display: block;
}

#sidebar-open-btn:hover {
    background: var(--menu-bg);
    color: var(--button-bg);
}


/* Custom Zoom Control */
#custom-zoom {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.zoom-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    line-height: 0;
}

.zoom-btn:hover {
    filter: brightness(1.2);
}

.zoom-btn:active {
    filter: brightness(0.9);
}

.zoom-icon {
    display: block;
    width: auto;
    height: auto;
}

.zoom-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.zoom-cap-top,
.zoom-cap-bottom {
    display: block;
    width: auto;
    height: auto;
}

.zoom-slider-track {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.zoom-shaft {
    display: block;
    width: auto;
    height: auto;
    pointer-events: none;
}

.zoom-handle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    top: 50%;
    cursor: grab;
    user-select: none;
}

.zoom-handle:active {
    cursor: grabbing;
}


/* Interactive Category Selector */
.category-selector {
    margin-top: 8px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    position: relative;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    background: var(--primary-bg);
    border: 2px solid var(--menu-bg);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-color, var(--button-bg));
    opacity: 0;
    transition: opacity 0.2s;
}

.category-card:hover {
    border-color: var(--card-color, var(--button-bg));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card.selected {
    border-color: var(--card-color, var(--button-bg));
    background: rgba(233, 170, 70, 0.15);
}

.category-card.selected::before {
    opacity: 1;
}

.category-card.selected::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: var(--card-color, var(--button-bg));
    color: var(--primary-bg);
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.category-card-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.category-card-label {
    font-size: 9px;
    color: var(--primary-text);
    text-align: center;
    font-weight: 600;
    line-height: 1.1;
}

/* Monster Group Card */
.category-card.monster-group {
    flex-direction: column;
    background: var(--primary-bg);
}

.category-card.monster-group .category-card-expand {
    font-size: 8px;
    color: var(--subtext);
    transition: transform 0.3s;
    position: absolute;
    bottom: 2px;
    right: 4px;
}

.category-card.monster-group.expanded .category-card-expand {
    transform: rotate(180deg);
}

/* Monster Submenu */
.monster-submenu {
    grid-column: span 4;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    background: var(--menu-bg);
    border-radius: 6px;
    animation: slideDown 0.2s ease;
}

.monster-submenu.open {
    display: grid;
}

.monster-submenu .monster-tier-card {
    flex-direction: column;
    padding: 6px 4px;
    border-left: none;
    border-top: 3px solid var(--tier-color, var(--button-bg));
    text-align: center;
    gap: 4px;
}

.monster-submenu .monster-tier-card:hover {
    transform: translateY(-2px);
}

.monster-submenu .tier-icon {
    width: 24px;
    height: 24px;
}

.monster-submenu .tier-name {
    font-size: 9px;
}

.monster-submenu .tier-indicator {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Monster Tier Cards */
.monster-tier-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--primary-bg);
    border: 2px solid transparent;
    border-left: 4px solid var(--tier-color, var(--button-bg));
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.monster-tier-card:hover {
    background: rgba(233, 170, 70, 0.1);
    border-color: var(--tier-color, var(--button-bg));
    transform: translateX(4px);
}

.monster-tier-card.selected {
    background: rgba(233, 170, 70, 0.15);
    border-color: var(--tier-color, var(--button-bg));
}

.monster-tier-card.selected .tier-indicator {
    opacity: 1;
}

.tier-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tier-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.tier-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tier-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-text);
}

.tier-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tier-color, var(--button-bg));
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tier-indicator::after {
    content: '✓';
    color: var(--primary-bg);
    font-size: 11px;
    font-weight: bold;
}

/* Monster Tier Selector (for difficulty change) */
.monster-tier-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    background: var(--menu-bg);
    border-radius: 6px;
}

.monster-tier-selector .monster-tier-card {
    flex-direction: column;
    padding: 6px 4px;
    border-left: none;
    border-top: 3px solid var(--tier-color, var(--button-bg));
    text-align: center;
    gap: 4px;
}

.monster-tier-selector .monster-tier-card:hover {
    transform: translateY(-2px);
}

.monster-tier-selector .tier-icon {
    width: 24px;
    height: 24px;
}

.monster-tier-selector .tier-name {
    font-size: 9px;
}

.monster-tier-selector .tier-indicator {
    display: none;
}

/* Feedback Type Selector */
.feedback-type-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.feedback-type-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    background: var(--primary-bg);
    border: 2px solid var(--menu-bg);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.feedback-type-card:hover {
    border-color: var(--button-bg);
    background: rgba(233, 170, 70, 0.1);
}

.feedback-type-card.selected {
    border-color: var(--button-bg);
    background: rgba(233, 170, 70, 0.15);
}

.feedback-type-card .type-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary-text);
}

/* Option Groups */
.option-group {
    margin-bottom: 10px;
}

.option-label {
    font-size: 11px;
    color: var(--subtext);
    margin-bottom: 6px;
    font-weight: 600;
}

/* Location Search and List */
.location-search-wrapper {
    margin-bottom: 6px;
}

.location-search {
    width: 100%;
    padding: 8px 10px;
    background: var(--primary-bg);
    border: 2px solid var(--menu-bg);
    border-radius: 6px;
    color: var(--primary-text);
    font-size: 12px;
    transition: border-color 0.2s;
}

.location-search:focus {
    outline: none;
    border-color: var(--button-bg);
}

.location-search::placeholder {
    color: var(--subtext);
}

.location-list {
    max-height: 100px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    background: var(--menu-bg);
    border-radius: 6px;
}

.location-empty {
    padding: 12px;
    text-align: center;
    color: var(--subtext);
    font-size: 11px;
}

.location-item-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: var(--primary-bg);
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-item-card:hover {
    border-color: var(--button-bg);
    background: rgba(233, 170, 70, 0.1);
}

.location-item-card.selected {
    border-color: var(--button-bg);
    background: rgba(233, 170, 70, 0.15);
}

.location-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.location-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.location-info {
    flex: 1;
    min-width: 0;
}

.location-name {
    font-size: 11px;
    color: var(--primary-text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Styled Inputs */
.styled-input {
    position: relative;
}

.styled-input input {
    width: 100%;
    padding: 8px 10px;
    background: var(--primary-bg);
    border: 2px solid var(--menu-bg);
    border-radius: 6px;
    color: var(--primary-text);
    font-size: 12px;
    transition: border-color 0.2s;
}

.styled-input input:focus {
    outline: none;
    border-color: var(--button-bg);
}

.styled-input input::placeholder {
    color: var(--subtext);
}

/* Styled Textarea */
.styled-textarea {
    position: relative;
}

.styled-textarea textarea {
    width: 100%;
    padding: 8px 10px;
    background: var(--primary-bg);
    border: 2px solid var(--menu-bg);
    border-radius: 6px;
    color: var(--primary-text);
    font-size: 12px;
    resize: none;
    min-height: 50px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.styled-textarea textarea:focus {
    outline: none;
    border-color: var(--button-bg);
}

.styled-textarea textarea::placeholder {
    color: var(--subtext);
}

/* Drops Editor Styles */
.drops-editor textarea {
    min-height: 120px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    line-height: 1.5;
}

.drops-format-hint {
    font-size: 10px;
    color: var(--subtext);
    margin-top: 4px;
    padding: 4px 6px;
    background: var(--primary-bg);
    border-radius: 4px;
    line-height: 1.4;
}

/* Coordinates Display Box */
.coords-display-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--primary-bg);
    border: 2px solid var(--menu-bg);
    border-radius: 6px;
}

.coords-display-box .coords-icon {
    width: 16px;
    height: 16px;
    background: var(--button-bg);
    border-radius: 50%;
    position: relative;
}

.coords-display-box .coords-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--primary-bg);
    border-radius: 50%;
}

.coords-display-box span {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--primary-text);
}

/* Coordinates Input Wrapper */
.coords-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coords-fields {
    display: flex;
    gap: 6px;
}

.coord-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.coord-field label {
    font-size: 10px;
    color: var(--subtext);
    font-weight: 600;
}

.coord-field input {
    padding: 8px;
    background: var(--primary-bg);
    border: 2px solid var(--menu-bg);
    border-radius: 6px;
    color: var(--primary-text);
    font-size: 12px;
    font-family: 'Courier New', monospace;
    text-align: center;
}

.coord-field input:focus {
    outline: none;
    border-color: var(--button-bg);
}

/* Click Map Button */
.click-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: var(--menu-bg);
    border: 2px solid var(--button-bg);
    border-radius: 6px;
    color: var(--button-bg);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
}

.click-map-btn:hover {
    background: var(--button-bg);
    color: var(--primary-bg);
}

.click-map-btn.active {
    background: var(--button-bg);
    color: var(--primary-bg);
    animation: pulse 1.5s infinite;
}

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

/* Form Actions */
.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.action-btn.submit-btn {
    background: linear-gradient(135deg, var(--button-bg) 0%, var(--link-accent) 100%);
    color: var(--primary-bg);
}

.action-btn.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(233, 170, 70, 0.3);
}

.action-btn.cancel-btn {
    background: var(--menu-bg);
    color: var(--primary-text);
    border: 2px solid var(--menu-bg);
}

.action-btn.cancel-btn:hover {
    border-color: var(--subtext);
}

/* Feedback Message */
.feedback-message {
    margin-top: 10px;
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    display: none;
    text-align: center;
}

.feedback-message.success {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 2px solid #27ae60;
}

.feedback-message.error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 2px solid #e74c3c;
}


/* Cursor Hover Tooltip */
.cursor-tooltip {
    position: fixed;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 4px;
    z-index: 2000;
    color: var(--primary-text);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease-in;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cursor-tooltip.visible {
    opacity: 1;
}

.cursor-tooltip .tooltip-area {
    color: var(--link-accent);
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
}

.cursor-tooltip .tooltip-coords {
    color: var(--button-bg);
    font-size: 13px;
}

.cursor-tooltip .tooltip-tile {
    color: var(--subtext);
    font-size: 13px;
}


/* ========================================
   REDESIGNED FEEDBACK FORM STYLES
   ======================================== */

/* Action Type Selector */
.action-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.action-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    background: var(--primary-bg);
    border: 2px solid var(--menu-bg);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    gap: 4px;
}

.action-type-card:hover {
    border-color: var(--button-bg);
    background: rgba(233, 170, 70, 0.1);
    transform: translateY(-2px);
}

.action-type-card.selected {
    border-color: var(--button-bg);
    background: rgba(233, 170, 70, 0.2);
}

.action-type-card .action-icon {
    font-size: 18px;
}

.action-type-card .action-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary-text);
}

/* Field Groups */
.field-group {
    margin-bottom: 12px;
}

.field-label {
    display: block;
    font-size: 11px;
    color: var(--subtext);
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--primary-bg);
    border: 2px solid var(--menu-bg);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-item:hover {
    border-color: var(--button-bg);
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--button-bg);
    cursor: pointer;
}

.checkbox-item:has(input:checked) {
    border-color: var(--button-bg);
    background: rgba(233, 170, 70, 0.1);
}

.checkbox-label {
    font-size: 11px;
    color: var(--primary-text);
}

/* Toggle Switch */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: var(--primary-bg);
    border-radius: 6px;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--menu-bg);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--subtext);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--button-bg);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background-color: var(--primary-bg);
}

.toggle-description {
    font-size: 11px;
    color: var(--subtext);
}

/* Styled Select */
.styled-select {
    width: 100%;
    padding: 10px 12px;
    background: var(--primary-bg);
    border: 2px solid var(--menu-bg);
    border-radius: 6px;
    color: var(--primary-text);
    font-size: 12px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A0A0A0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.styled-select:focus {
    outline: none;
    border-color: var(--button-bg);
}

.styled-select option {
    background: var(--primary-bg);
    color: var(--primary-text);
}

/* Difficulty Selector */
.difficulty-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.difficulty-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    background: var(--primary-bg);
    border: 2px solid var(--menu-bg);
    border-top: 3px solid var(--tier-color, var(--button-bg));
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 4px;
}

.difficulty-card:hover {
    border-color: var(--tier-color, var(--button-bg));
    transform: translateY(-2px);
}

.difficulty-card.selected {
    border-color: var(--tier-color, var(--button-bg));
    background: rgba(233, 170, 70, 0.15);
}

.difficulty-card img {
    width: 24px;
    height: 24px;
}

.difficulty-card span {
    font-size: 9px;
    font-weight: 600;
    color: var(--primary-text);
}

/* Drops Editor */
.drops-editor-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drops-section {
    background: var(--primary-bg);
    border-radius: 6px;
    padding: 10px;
}

.drops-section-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--button-bg);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--menu-bg);
}

.drops-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 8px;
}

.drop-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.drop-name-input {
    flex: 1;
    padding: 6px 8px;
    background: var(--menu-bg);
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--primary-text);
    font-size: 11px;
}

.drop-name-input:focus {
    outline: none;
    border-color: var(--button-bg);
}

.drop-chance-input {
    width: 50px;
    padding: 6px 8px;
    background: var(--menu-bg);
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--button-bg);
    font-size: 11px;
    text-align: center;
}

.drop-chance-input:focus {
    outline: none;
    border-color: var(--button-bg);
}

.remove-drop-btn {
    width: 24px;
    height: 24px;
    background: transparent;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    color: #e74c3c;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s;
}

.remove-drop-btn:hover {
    background: #e74c3c;
    color: white;
}

.add-drop-btn {
    width: 100%;
    padding: 6px;
    background: var(--menu-bg);
    border: 1px dashed var(--button-bg);
    border-radius: 4px;
    color: var(--button-bg);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
}

.add-drop-btn:hover {
    background: rgba(233, 170, 70, 0.1);
}

/* Improved Location List - Compact Table View */
.location-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: var(--menu-bg);
    border-radius: 6px;
    border: 1px solid var(--primary-bg);
}

.location-list-header {
    padding: 6px 10px;
    font-size: 10px;
    color: var(--subtext);
    background: var(--primary-bg);
    border-bottom: 1px solid var(--menu-bg);
    position: sticky;
    top: 0;
    z-index: 1;
}

.location-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.location-row:last-child {
    border-bottom: none;
}

.location-row:hover {
    background: rgba(233, 170, 70, 0.1);
}

.location-row.selected {
    background: rgba(233, 170, 70, 0.2);
}

.location-row.selected .location-row-name {
    color: var(--button-bg);
}

.location-row-name {
    font-size: 12px;
    color: var(--primary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.location-row-coords {
    font-size: 10px;
    color: var(--subtext);
    font-family: 'Courier New', monospace;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Three-column Monster Location Table */
.location-table-header {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 600;
    color: var(--subtext);
    background: var(--primary-bg);
    border-bottom: 1px solid var(--menu-bg);
    position: sticky;
    top: 0;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-table-header .col-name,
.location-table-header .col-area,
.location-table-header .col-tile {
    color: var(--subtext);
}

.col-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: var(--primary-text);
}

.col-area {
    width: 120px;
    flex-shrink: 0;
    text-align: left;
    font-size: 14px;
    color: var(--link-accent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-tile {
    width: 40px;
    flex-shrink: 0;
    text-align: right;
    font-size: 14px;
    color: var(--subtext);
    font-family: 'Courier New', monospace;
}

.location-row.selected .col-name {
    color: var(--button-bg);
}

.location-row.selected .col-area {
    color: var(--button-bg);
}

/* Monster Search Card */
.monster-search-card {
    background: var(--menu-bg);
    border-color: var(--button-bg);
}

.monster-search-card:hover {
    background: rgba(233, 170, 70, 0.2);
}

.monster-search-card.selected {
    background: rgba(233, 170, 70, 0.25);
    border-color: var(--button-bg);
}

/* Selected Monster Display (from search flow) */
.selected-monster-display {
    background: var(--primary-bg);
    border: 2px solid var(--button-bg);
    border-radius: 6px;
    padding: 10px 12px;
}

.selected-monster-name {
    font-size: 14px;
    color: var(--button-bg);
    font-weight: 600;
    margin-bottom: 4px;
}

.selected-monster-details {
    display: flex;
    gap: 12px;
    font-size: 12px;
}

.selected-monster-area {
    color: var(--link-accent);
}

.selected-monster-tile {
    color: var(--subtext);
    font-family: 'Courier New', monospace;
}

.selected-monster-coords {
    color: var(--subtext);
    font-family: 'Courier New', monospace;
}

/* Feedback Tab Wider */
.feedback-tab {
    width: 440px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feedback-tab {
        width: calc(100% - 40px);
        left: 20px;
    }
    
    .action-type-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .difficulty-selector {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}


/* Donate Button */
.donate-btn {
    position: fixed;
    top: 20px;
    right: 340px;
    width: 62px;
    height: 62px;
    background: var(--menu-bg);
    border: 2px solid var(--button-bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.donate-btn:hover {
    background: var(--button-bg);
    transform: scale(1.1);
}

.donate-btn:hover .donate-icon {
    color: var(--primary-bg);
}

.donate-icon {
    font-size: 28px;
    color: var(--button-bg);
    transition: color 0.2s;
}

.donate-popup {
    position: fixed;
    top: 90px;
    right: 340px;
    width: 240px;
    background: var(--menu-bg);
    border: 2px solid var(--button-bg);
    border-radius: 8px;
    z-index: 1001;
    display: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.donate-popup.open {
    display: block;
}

.donate-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--button-bg);
}

.donate-popup-header span {
    color: var(--button-bg);
    font-weight: 600;
    font-size: 14px;
}

.donate-close {
    background: none;
    border: none;
    color: var(--subtext);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.donate-close:hover {
    color: var(--primary-text);
}

.donate-popup-content {
    padding: 15px;
}

.donate-popup-content p {
    color: var(--primary-text);
    font-size: 13px;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.donate-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: #FFDD00;
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.donate-link:hover {
    background: #FFE433;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 221, 0, 0.4);
}

.donate-link-icon {
    font-size: 18px;
}


/* ========================================
   MOBILE OPTIMIZATION IMPROVEMENTS
   ======================================== */

/* Adjust donate button for mobile */
.sidebar.collapsed ~ .donate-btn {
    right: 20px;
}

.sidebar.collapsed ~ .donate-popup {
    right: 20px;
}

/* Small phone optimizations (< 375px) */
@media (max-width: 375px) {
    .sidebar {
        width: 100%;
    }
    
    .legend {
        left: 10px;
        padding: 10px;
        min-width: 150px;
        max-width: 160px;
        font-size: 12px;
    }
    
    .legend-icon {
        width: 20px;
        height: 20px;
    }
    
    .legend-item {
        gap: 6px;
        font-size: 12px;
    }
    
    .coords-display {
        right: 10px;
        padding: 8px 10px;
        font-size: 13px;
        min-width: 150px;
    }
    
    .feedback-tab {
        left: 10px;
        width: calc(100% - 20px);
    }
    
    .donate-btn {
        width: 50px;
        height: 50px;
        right: 10px;
        top: 10px;
    }
    
    .donate-icon {
        font-size: 22px;
    }
    
    .donate-popup {
        right: 10px;
        top: 70px;
        width: calc(100% - 20px);
        max-width: 280px;
    }
    
    #custom-zoom {
        left: 10px;
        top: 10px;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .action-type-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium mobile (375px - 768px) */
@media (min-width: 376px) and (max-width: 768px) {
    .legend {
        left: 15px;
        max-width: 170px;
    }
    
    .donate-btn {
        right: 20px;
        top: 15px;
    }
    
    .donate-popup {
        right: 20px;
        top: 85px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .zoom-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .sidebar-toggle {
        min-width: 44px;
        min-height: 44px;
    }
    
    #sidebar-open-btn {
        min-width: 48px;
        min-height: 48px;
    }
    
    .category-filter {
        min-height: 44px;
    }
    
    .filter-btn {
        min-height: 44px;
    }
    
    .action-btn {
        min-height: 48px;
    }
    
    /* Disable hover tooltip on touch devices */
    .cursor-tooltip {
        display: none !important;
    }
    
    /* Better popup sizing on touch */
    .leaflet-popup-content-wrapper {
        max-width: 280px;
    }
    
    .leaflet-popup-content {
        max-width: 260px;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .legend {
        top: 10px;
        transform: none;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }
    
    .feedback-tab {
        bottom: 10px;
        max-height: 50vh;
    }
    
    .feedback-tab.open .feedback-content {
        max-height: 40vh;
    }
}

/* Admin login button for non-admins */
.admin-login-hint {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-size: 10px;
    color: var(--subtext);
    opacity: 0.5;
    cursor: pointer;
    z-index: 100;
}

.admin-login-hint:hover {
    opacity: 1;
    color: var(--button-bg);
}
