.dev-gui-container {
    position: fixed;
    top: 10px;
    right: 10px;
    width: calc(33vw - 20px);
    max-width: 450px;
    min-width: 320px;
    z-index: 1000;
    pointer-events: none;
}
.dev-gui-panel {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    pointer-events: all;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', 'SF Pro Display', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.dev-gui-content {
    padding: 0;
}

/* Folder Structure */
.folder-item {
    margin: 0;
}

.folder-button {
    width: 100%;
    background: none;
    border: none;
    padding: 8px 12px;
    text-align: left;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.folder-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.root-folder .folder-button {
    background: rgba(60, 120, 180, 0.2);
    border-bottom: 1px solid #444;
    font-weight: bold;
}

.sub-folder .folder-button {
    background: rgba(40, 40, 40, 0.8);
    margin-left: 20px;
    border-left: 2px solid #555;
}

.folder-icon {
    font-size: 14px;
}

.folder-name {
    flex: 1;
}

.folder-toggle {
    font-size: 10px;
    color: #888;
}

.folder-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.folder-children.expanded {
    max-height: 800px;
}

/* Content Items */
.content-item {
    margin-left: 40px;
    border-left: 2px solid #333;
    margin-bottom: 4px;
}

.content-header {
    background: rgba(80, 80, 80, 0.6);
    padding: 6px 12px;
    color: #fff;
    font-weight: bold;
    border-bottom: 1px solid #555;
}

.content-body {
    padding: 8px 12px;
    background: rgba(30, 30, 30, 0.8);
}

/* Job List */
.job-list {
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', 'Courier New', monospace;
    font-size: 12px;
}

.list-header {
    display: grid;
    grid-template-columns: 40px 80px 80px 80px;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #555;
    color: #aaa;
    font-weight: bold;
}

.job-item {
    display: grid;
    grid-template-columns: 40px 80px 80px 80px;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #333;
}

.job-item.status-queued { color: #ffa500; }
.job-item.status-assigned { color: #87ceeb; }
.job-item.status-in_progress { color: #90ee90; }
.job-item.status-completed { color: #98fb98; }
.job-item.status-failed { color: #ff6b6b; }

/* Job Stats */
.job-stats {
    display: grid;
    gap: 4px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

.stat-label {
    color: #ccc;
}

.stat-value {
    color: #fff;
    font-weight: bold;
}

/* Villager List */
.villager-list {
    display: grid;
    gap: 4px;
}

.villager-item {
    padding: 6px;
    background: rgba(40, 40, 40, 0.6);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.villager-item:hover {
    background: rgba(60, 60, 60, 0.8);
}

.villager-item.selected {
    background: rgba(60, 120, 180, 0.4);
    border: 1px solid #4a9eff;
}

.villager-name {
    color: #fff;
    font-weight: bold;
    margin-bottom: 2px;
}

.villager-info {
    display: flex;
    justify-content: space-between;
    color: #aaa;
    font-size: 11px;
}

/* Selected Villager */
.selected-villager {
    max-width: 250px;
}

.villager-header h4 {
    margin: 0 0 8px 0;
    color: #4a9eff;
}

.villager-details {
    display: grid;
    gap: 6px;
}

.detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    align-items: center;
}

.detail-label {
    color: #ccc;
}

.detail-value {
    color: #fff;
    text-align: right;
}

.stat-bar {
    grid-column: 1 / -1;
    height: 8px;
    background: rgba(40, 40, 40, 0.8);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 2px;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffa500 50%, #90ee90 100%);
    transition: width 0.3s ease;
}

/* Utility Styles */
.error {
    color: #ff6b6b;
    font-style: italic;
}

.empty-list {
    color: #888;
    font-style: italic;
}

.no-content, .no-selection {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 12px;
}

/* Scrollbar Styling */
.dev-gui-panel::-webkit-scrollbar {
    width: 6px;
}

.dev-gui-panel::-webkit-scrollbar-track {
    background: rgba(40, 40, 40, 0.3);
}

.dev-gui-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.dev-gui-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dev-gui-container {
        width: calc(35vw - 20px);
        max-width: 400px;
    }
}
@media (max-width: 768px) {
    .dev-gui-container {
        top: 5px;
        left: 5px;
        width: calc(50vw - 10px);
        max-width: 350px;
        min-width: 280px;
    }
    
    .dev-gui-panel {
        max-height: 60vh;
    }
    
    .job-item, .list-header {
        grid-template-columns: 30px 60px 60px 60px;
        font-size: 12px;
    }
    
    .selected-villager {
        max-width: none;
    }
}
@media (max-width: 480px) {
    .dev-gui-container {
        width: calc(100vw - 10px);
        max-width: none;
        min-width: auto;
    }
}
/* Pathfinding Test Section */
.path-testing {
    display: grid;
    gap: 12px;
}
.test-section {
    padding: 8px 0;
    border-bottom: 1px solid #333;
}
.test-button {
    width: 100%;
    background: rgba(60, 120, 180, 0.3);
    border: 1px solid #4a9eff;
    border-radius: 4px;
    padding: 8px 12px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.test-button:hover {
    background: rgba(60, 120, 180, 0.5);
    border-color: #5aa3ff;
    transform: translateY(-1px);
}
.test-button:active {
    transform: translateY(0);
    background: rgba(40, 100, 160, 0.6);
}
.cache-stats {
    background: rgba(40, 40, 40, 0.6);
    border-radius: 4px;
    padding: 8px;
}
.stat-header {
    color: #4a9eff;
    font-weight: bold;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #555;
    font-size: 11px;
    text-transform: uppercase;
}
.utility-button {
    width: 100%;
    background: rgba(80, 60, 40, 0.3);
    border: 1px solid #cd853f;
    border-radius: 4px;
    padding: 6px 10px;
    color: #daa520;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.utility-button:hover {
    background: rgba(80, 60, 40, 0.5);
    border-color: #daa520;
    color: #fff;
}
.utility-button:active {
    transform: translateY(1px);
    background: rgba(60, 45, 30, 0.7);
}
/* Enhanced stat items for pathfinding */
.cache-stats .stat-item {
    padding: 3px 0;
    font-size: 11px;
}
.cache-stats .stat-label {
    color: #bbb;
}
.cache-stats .stat-value {
    color: #fff;
    font-weight: bold;
}
/* Toggle Controls */
.toggle-section {
    display: grid;
    gap: 8px;
}
.toggle-item {
    padding: 4px 0;
}
.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 0;
    transition: all 0.2s ease;
    user-select: none;
}
.toggle-label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 4px 8px;
}
.toggle-text {
    color: #ccc;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', system-ui, sans-serif;
    font-weight: 400;
    flex: 1;
}
.toggle-label:hover .toggle-text {
    color: #fff;
}
/* Custom Toggle Switch */
.toggle-checkbox {
    position: relative;
    width: 36px;
    height: 18px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #444;
    border-radius: 9px;
    border: 1px solid #666;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.toggle-checkbox:before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 14px;
    height: 14px;
    background: #888;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.toggle-checkbox:checked {
    background: #4a9eff;
    border-color: #5aa3ff;
}
.toggle-checkbox:checked:before {
    left: 19px;
    background: #fff;
}
.toggle-checkbox:hover {
    border-color: #888;
}
.toggle-checkbox:checked:hover {
    background: #5aa3ff;
    border-color: #6bb3ff;
}
.toggle-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.3);
}
.toggle-checkbox:active:before {
    width: 16px;
}
.toggle-checkbox:checked:active:before {
    left: 17px;
}
/* Game Time Controls */
.game-time-controls {
    display: grid;
    gap: 16px;
}
.control-section {
    display: grid;
    gap: 12px;
}
.control-item {
    display: grid;
    gap: 6px;
}
.control-label {
    color: #ccc;
    font-size: 13px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', system-ui, sans-serif;
}
.time-input {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid #666;
    border-radius: 4px;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', system-ui, sans-serif;
    transition: all 0.2s ease;
}
.time-input:focus {
    outline: none;
    border-color: #4a9eff;
    background: rgba(40, 40, 40, 0.95);
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}
.time-input:hover {
    border-color: #888;
    background: rgba(50, 50, 50, 0.8);
}
.control-help {
    color: #888;
    font-size: 11px;
    font-style: italic;
    margin-top: 2px;
}
.control-actions {
    padding-top: 8px;
    border-top: 1px solid #333;
}
.control-button {
    width: 100%;
    background: rgba(60, 120, 180, 0.3);
    border: 1px solid #4a9eff;
    border-radius: 4px;
    padding: 10px 12px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.control-button:hover {
    background: rgba(60, 120, 180, 0.5);
    border-color: #5aa3ff;
    transform: translateY(-1px);
}
.control-button:active {
    transform: translateY(0);
    background: rgba(40, 100, 160, 0.6);
}