body {
    /* Ensure the path is correct: try './Background.png' if the image is in the same folder as your HTML file */
    background: url('./Background.png') no-repeat center center fixed;
    background-size: cover;
}
.ffxiv-input {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 40px;
    z-index: 101;
    background: linear-gradient(180deg, rgba(40,40,40,0.98) 80%, rgba(30,30,30,0.92) 100%);
    border-top: 1px solid #666;
    border-left: 1px solid #444;
    border-right: 1px solid #444;
    border-bottom: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    color: #e0e0e0;
    padding: 8px 12px 8px 10px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ffxiv-chat-window {
    position: fixed;
    left: 0;
    bottom: 42px; /* 40px (input) + 2px gap */
    width: 400px;
    min-height: 120px;
    max-height: 300px;
    z-index: 102;
    background: linear-gradient(180deg, rgba(30,30,30,0.95) 80%, rgba(20,20,20,0.85) 100%);
    border-top: 1px solid #666;
    border-left: 1px solid #444;
    border-right: 1px solid #444;
    border-bottom: none;
    border-bottom-right-radius: 8px;
    border-top-right-radius: 8px;
    color: #e0e0e0;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 10px 12px 10px 10px;
    scrollbar-width: thin;
    scrollbar-color: #888 #222;
}
.ffxiv-chat-window::-webkit-scrollbar {
    width: 8px;
}
.ffxiv-chat-window::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
.ffxiv-chat-window::-webkit-scrollbar-track {
    background: #222;
    border-radius: 4px;
}

#hotbar1, #hotbar2, #hotbar3, #hotbar4 {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(40, 40, 40, 0.85);
    border-radius: 8px;
    border: 1px solid #555;
    z-index: 100;
    box-sizing: border-box;
    margin: 0;
    padding: 4px 0;
}

#hotbar1 { bottom: 0; }
#hotbar2 { bottom: 56px; }
#hotbar3 { bottom: 112px; }
#hotbar4 { bottom: 168px; }

#hotbarButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 1px; /* Reduced margin to bring buttons closer */
    background: linear-gradient(180deg, #444 60%, #222 100%);
    border: 2px solid #888;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4), 0 0 0 2px #222 inset;
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    outline: none;
    user-select: none;
}
#hotbarButton:hover, #hotbarButton:focus {
    background: linear-gradient(180deg, #666 60%, #333 100%);
    border-color: #ffd700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 2px #ffd700 inset;
}
#hotbarButton:active {
    background: linear-gradient(180deg, #333 60%, #111 100%);
    border-color: #aaa;
    box-shadow: 0 1px 2px rgba(0,0,0,0.7), 0 0 0 2px #aaa inset;
}

#openSpecialChar {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(180deg, #444 60%, #222 100%);
    border: 2px solid #888;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4), 0 0 0 2px #222 inset;
    opacity: 0.5;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
    z-index: 200;
    user-select: none;
    outline: none;
}
#openSpecialChar:hover, #openSpecialChar:focus {
    background: linear-gradient(180deg, #666 60%, #333 100%);
    border-color: #ffd700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 2px #ffd700 inset;
    opacity: 0.7;
}
#openSpecialChar:active {
    background: linear-gradient(180deg, #333 60%, #111 100%);
    border-color: #aaa;
    box-shadow: 0 1px 2px rgba(0,0,0,0.7), 0 0 0 2px #aaa inset;
    opacity: 0.5;
}
#openSpecialChar span, #openSpecialChar .button-text {
    color: #fff;
    opacity: 1;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    pointer-events: none;
}