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

/* Utility class to hide elements when toggling */
.hidden {
    display: none !important;
}

body {
    font-family: 'Space Mono', 'Courier New', monospace;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 69, 19, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(61, 46, 31, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 0, 0, 0.8) 0%, transparent 50%),
        linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23654321' fill-opacity='0.03'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0v-2h20v-2H0V8h20V6H0V4h20V2H0V0h22v20h2V0h2v20h2V0h2v20h2V0h2v20h2V0h2v20h2v2H20v-1.5zM0 20h2v20H0V20zm4 0h2v20H4V20zm4 0h2v20H8V20zm4 0h2v20h-2V20zm4 0h2v20h-2V20zm4 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
    z-index: -1;
}

.background-gears {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-gear {
    position: absolute;
    opacity: 0.08;
    filter: sepia(100%) saturate(150%) hue-rotate(20deg) brightness(0.4) contrast(1.2);
    animation: bgSpin 30s linear infinite;
}

.bg-gear:nth-child(2n) {
    animation-direction: reverse;
    animation-duration: 45s;
}

.bg-gear:nth-child(3n) {
    animation-duration: 25s;
}

@keyframes bgSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.cog-left, .cog-right {
    flex: 0 0 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cog {
    width: 120px;
    height: 120px;
    filter: sepia(100%) saturate(150%) hue-rotate(20deg) brightness(0.6) contrast(1.2) drop-shadow(0 4px 8px rgba(0,0,0,0.5));
    transition: transform 0.1s ease;
}

.cog.spinning {
    animation: mainSpin 2s linear infinite;
}

.cog.slowing {
    animation: slowSpin 6s ease-out infinite;
}

@keyframes mainSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.main-panel {
    flex: 1;
    max-width: 700px;
    background: 
        linear-gradient(135deg, rgba(74, 55, 40, 0.95) 0%, rgba(61, 46, 31, 0.95) 100%),
        url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.1'%3E%3Cpath d='M0 0h20v20H0V0zm10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14z'/%3E%3C/g%3E%3C/svg%3E");
    border: 4px solid #3d2e1f;
    border-radius: 15px;
    padding: 35px;
    margin: 0 30px;
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.6),
        0 8px 32px rgba(0,0,0,0.7),
        0 0 0 1px rgba(139, 69, 19, 0.3);
    backdrop-filter: blur(2px);
    position: relative;
    overflow: hidden;
}

.main-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(139, 69, 19, 0.1) 50%, transparent 51%);
    pointer-events: none;
}

h1 {
    text-align: center;
    margin-bottom: 15px;
    color: #f5f5f5;
    font-size: 2.4em;
    font-weight: 700;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.8),
        0 0 10px rgba(139, 69, 19, 0.3);
    letter-spacing: 2px;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8B4513, transparent);
}

.description {
    text-align: center;
    margin-bottom: 35px;
    color: #d5d5d5;
    font-size: 1.1em;
    line-height: 1.5;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.control-panel {
    background: 
        linear-gradient(135deg, rgba(61, 61, 61, 0.9) 0%, rgba(45, 45, 45, 0.9) 100%);
    padding: 30px;
    border-radius: 12px;
    border: 3px solid #555;
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.1),
        inset 0 -2px 4px rgba(0,0,0,0.3),
        0 4px 16px rgba(0,0,0,0.3);
    position: relative;
}

.control-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 69, 19, 0.5), transparent);
}

.input-section {
    margin-bottom: 30px;
}

.input-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #f5f5f5;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#item-input {
    width: 100%;
    padding: 15px 18px;
    background: 
        linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 3px solid #555;
    border-radius: 8px;
    color: #e5e5e5;
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    font-weight: 400;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.3),
        0 0 0 1px rgba(139, 69, 19, 0.2);
    transition: all 0.3s ease;
}

#item-input:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.3),
        0 0 0 3px rgba(139, 69, 19, 0.3),
        0 0 20px rgba(139, 69, 19, 0.2);
    background: linear-gradient(135deg, #2f2f2f 0%, #242424 100%);
}

.settings-section h3 {
    margin-bottom: 20px;
    color: #f5f5f5;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.settings-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px;
    background: 
        radial-gradient(circle, rgba(74, 55, 40, 0.8) 0%, rgba(61, 46, 31, 0.9) 50%, rgba(45, 31, 20, 0.9) 100%);
    border-radius: 50%;
    border: 5px solid #654321;
    width: 280px;
    height: 280px;
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.7),
        inset 0 0 60px rgba(139, 69, 19, 0.1),
        0 8px 24px rgba(0,0,0,0.5),
        0 0 0 2px rgba(139, 69, 19, 0.2);
    position: relative;
    margin: 0 auto 30px auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

.settings-slider-container:hover {
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.7),
        inset 0 0 60px rgba(139, 69, 19, 0.2),
        0 8px 32px rgba(0,0,0,0.6),
        0 0 0 3px rgba(139, 69, 19, 0.3);
}

.settings-slider-container::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    background: 
        radial-gradient(circle, rgba(90, 67, 50, 0.6) 0%, rgba(74, 55, 40, 0.8) 70%);
    border-radius: 50%;
    border: 3px solid #3d2e1f;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.6),
        inset 0 0 40px rgba(139, 69, 19, 0.1);
}

.settings-slider-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: 
        radial-gradient(circle, #8B4513 0%, #654321 100%);
    border: 2px solid #A0522D;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    box-shadow: 
        0 0 8px rgba(0,0,0,0.8),
        0 0 16px rgba(139, 69, 19, 0.4);
}

.slider-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: 
        radial-gradient(circle, #A0522D 0%, #8B4513 70%, #654321 100%);
    border: 3px solid #CD853F;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    transform-origin: 140px 140px;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.7),
        0 0 0 1px rgba(205, 133, 63, 0.3),
        inset 0 1px 2px rgba(255,255,255,0.2);
    z-index: 6;
}

.slider-handle:hover {
    background: 
        radial-gradient(circle, #CD853F 0%, #A0522D 70%, #8B4513 100%);
    border-color: #DEB887;
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.8),
        0 0 0 2px rgba(222, 184, 135, 0.4),
        0 0 20px rgba(139, 69, 19, 0.5),
        inset 0 1px 2px rgba(255,255,255,0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.slider-label {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    color: #d5d5d5;
    text-shadow: 
        1px 1px 2px rgba(0,0,0,0.8),
        0 0 4px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slider-label.active {
    color: #CD853F;
    text-shadow: 
        0 0 8px rgba(205, 133, 63, 0.8),
        1px 1px 2px rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.current-setting {
    font-size: 15px;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 15px;
    text-align: center;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%);
    padding: 8px 16px;
    border-radius: 6px;
    text-shadow: 
        1px 1px 2px rgba(0,0,0,0.8),
        0 0 8px rgba(139, 69, 19, 0.3);
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 7;
    border: 2px solid #654321;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.5),
        inset 0 1px 1px rgba(255,255,255,0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#process-btn {
    width: 100%;
    padding: 18px;
    background: 
        linear-gradient(135deg, #654321 0%, #8B4513 50%, #A0522D 100%);
    border: 4px solid #8B4513;
    border-radius: 12px;
    color: #f5f5f5;
    font-family: 'Space Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        1px 1px 2px rgba(0,0,0,0.8),
        0 0 8px rgba(0,0,0,0.5);
    box-shadow: 
        0 6px 16px rgba(0,0,0,0.4),
        inset 0 2px 4px rgba(255,255,255,0.1),
        inset 0 -2px 4px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

#process-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

#process-btn:hover:not(:disabled) {
    background: 
        linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    border-color: #A0522D;
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.5),
        inset 0 2px 4px rgba(255,255,255,0.2),
        inset 0 -2px 4px rgba(0,0,0,0.3),
        0 0 20px rgba(139, 69, 19, 0.3);
    transform: translateY(-2px);
}

#process-btn:hover:not(:disabled)::before {
    left: 100%;
}

#process-btn:disabled {
    background: 
        linear-gradient(135deg, #444 0%, #333 100%);
    border-color: #666;
    color: #888;
    cursor: not-allowed;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(255,255,255,0.05);
    transform: none;
}

.status {
    margin-top: 25px;
    padding: 20px;
    background: 
        linear-gradient(135deg, rgba(68, 68, 68, 0.9) 0%, rgba(51, 51, 51, 0.9) 100%);
    border-radius: 8px;
    text-align: center;
    color: #f5f5f5;
    border: 2px solid #555;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.3),
        inset 0 1px 1px rgba(255,255,255,0.1);
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.output {
    margin-top: 25px;
    padding: 25px;
    background: 
        linear-gradient(135deg, rgba(42, 42, 42, 0.95) 0%, rgba(32, 32, 32, 0.95) 100%);
    border: 3px solid #555;
    border-radius: 12px;
    box-shadow: 
        0 4px 16px rgba(0,0,0,0.4),
        inset 0 1px 1px rgba(255,255,255,0.05);
}

.output h3 {
    margin-bottom: 18px;
    color: #f5f5f5;
    font-size: 1.2em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#output-content {
    color: #d5d5d5;
    line-height: 1.7;
    font-weight: 400;
}

#output-content h4 {
    color: #CD853F;
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.nav-container {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 1000;
    background: rgba(0,0,0,0.3);
    padding: 5px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.nav-btn {
    padding: 12px 20px;
    background: 
        linear-gradient(135deg, rgba(74, 55, 40, 0.8) 0%, rgba(61, 46, 31, 0.8) 100%);
    border: 2px solid #654321;
    border-radius: 10px;
    color: #e0e0e0;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.nav-btn:hover {
    background: 
        linear-gradient(135deg, rgba(101, 67, 33, 0.9) 0%, rgba(139, 69, 19, 0.9) 100%);
    border-color: #8B4513;
    color: #f5f5f5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

.nav-btn.active {
    background: 
        linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border-color: #CD853F;
    color: #fff;
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.4),
        inset 0 1px 2px rgba(255,255,255,0.2);
}

.settings-menu {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1001;
}

.settings-btn {
    padding: 12px 16px;
    background: 
        linear-gradient(135deg, rgba(74, 55, 40, 0.9) 0%, rgba(61, 46, 31, 0.9) 100%);
    border: 2px solid #654321;
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.settings-btn:hover {
    background: 
        linear-gradient(135deg, rgba(101, 67, 33, 0.9) 0%, rgba(139, 69, 19, 0.9) 100%);
    border-color: #8B4513;
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    transform: translateY(-1px);
}

.settings-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;
    background: 
        linear-gradient(135deg, rgba(74, 55, 40, 0.95) 0%, rgba(61, 46, 31, 0.95) 100%);
    border: 3px solid #654321;
    border-radius: 12px;
    padding: 25px;
    min-width: 280px;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.5),
        inset 0 1px 1px rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.settings-panel h3 {
    color: #f5f5f5;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.setting-item {
    margin-bottom: 18px;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e5e5e5;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8B4513;
    border-radius: 3px;
}

.setting-description {
    font-size: 11px;
    color: #bbb;
    margin-top: 8px;
    margin-left: 28px;
    line-height: 1.4;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.inventory-panel {
    flex: 1;
    max-width: 900px;
    background: 
        linear-gradient(135deg, rgba(74, 55, 40, 0.95) 0%, rgba(61, 46, 31, 0.95) 100%),
        url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.1'%3E%3Cpath d='M0 0h20v20H0V0zm10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14z'/%3E%3C/g%3E%3C/svg%3E");
    border: 4px solid #3d2e1f;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.6),
        0 8px 32px rgba(0,0,0,0.7);
    backdrop-filter: blur(2px);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.inventory-item {
    background: 
        linear-gradient(135deg, rgba(61, 61, 61, 0.9) 0%, rgba(45, 45, 45, 0.9) 100%);
    border: 3px solid #555;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.3),
        inset 0 1px 1px rgba(255,255,255,0.1);
}

.inventory-item:hover {
    border-color: #777;
    box-shadow: 
        0 6px 16px rgba(0,0,0,0.4),
        inset 0 1px 1px rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.inventory-item h4 {
    color: #f5f5f5;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.item-timestamp {
    font-size: 10px;
    color: #999;
    font-weight: normal;
    font-style: italic;
}

.item-description {
    color: #d5d5d5;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 18px;
    max-height: 90px;
    overflow-y: auto;
    padding-right: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.inventory-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.inventory-btn {
    padding: 8px 14px;
    background: 
        linear-gradient(135deg, #654321 0%, #8B4513 100%);
    border: 2px solid #8B4513;
    border-radius: 6px;
    color: #f5f5f5;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 1px rgba(255,255,255,0.1);
}

.inventory-btn:hover {
    background: 
        linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border-color: #A0522D;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.4),
        inset 0 1px 1px rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.inventory-btn.danger {
    background: 
        linear-gradient(135deg, #8B2635 0%, #A0394A 100%);
    border-color: #A0394A;
}

.inventory-btn.danger:hover {
    background: 
        linear-gradient(135deg, #A0394A 0%, #B54A5E 100%);
    border-color: #B54A5E;
}

.inventory-btn:disabled {
    background: 
        linear-gradient(135deg, #444 0%, #333 100%);
    border-color: #666;
    color: #888;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: 
        0 1px 2px rgba(0,0,0,0.2),
        inset 0 1px 1px rgba(255,255,255,0.05);
    transform: none;
}

.test-input {
    width: 100%;
    padding: 12px;
    background: 
        linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 2px solid #555;
    border-radius: 6px;
    color: #e5e5e5;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    margin-bottom: 10px;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.3),
        0 0 0 1px rgba(139, 69, 19, 0.2);
    transition: all 0.3s ease;
}

.test-input:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.3),
        0 0 0 2px rgba(139, 69, 19, 0.3);
}

.research-notes {
    margin-top: 15px;
    padding: 15px;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(20, 20, 20, 0.4) 100%);
    border-left: 4px solid #8B4513;
    border-radius: 6px;
    box-shadow: 
        inset 0 1px 1px rgba(255,255,255,0.05),
        0 2px 4px rgba(0,0,0,0.2);
}

.research-notes h5 {
    color: #CD853F;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.research-notes p {
    color: #ccc;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.scp-log pre {
    white-space: pre-wrap;
    font-family: 'Space Mono', monospace;
    background: 
        linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 20px;
    border-radius: 6px;
    border: 2px solid #654321;
    color: #d5d5d5;
    line-height: 1.5;
    max-height: 450px;
    overflow-y: auto;
    font-size: 12px;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.5),
        0 2px 8px rgba(0,0,0,0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .cog-left, .cog-right {
        flex: none;
    }
    
    .main-panel, .inventory-panel {
        margin: 0;
        width: 100%;
        padding: 25px;
    }
    
    .settings-slider-container {
        width: 240px;
        height: 240px;
    }
    
    .inventory-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        top: 15px;
        gap: 3px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .settings-menu {
        top: 15px;
        right: 15px;
    }
    
    .settings-panel {
        min-width: 250px;
    }
}