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

body {
    font-family: 'SF Mono', monospace;
    background: #1e1e1e;
    color: #d4d4d4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0a0a0a;
    padding: 12px 20px;
    border-bottom: 2px solid #d77757;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

h1 {
    font-size: 1.3rem;
    margin: 0;
    color: #d77757;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

h1:hover {
    opacity: 0.8;
}

.version {
    font-size: 0.7rem;
    color: #888;
    font-weight: normal;
}

.controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Buttons */
button {
    background: rgba(215, 119, 87, 0.15);
    color: #d77757;
    border: 1px solid rgba(215, 119, 87, 0.3);
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

button:hover:not(:disabled) {
    background: rgba(215, 119, 87, 0.25);
    border-color: #d77757;
    box-shadow: 0 0 12px rgba(215, 119, 87, 0.4);
    transform: scale(1.05);
}

button:disabled {
    background: rgba(62, 62, 66, 0.1);
    border-color: rgba(62, 62, 66, 0.3);
    color: #666;
    cursor: not-allowed;
    opacity: 0.4;
}

button.danger {
    color: #ff4444;
    border-color: rgba(255, 68, 68, 0.3);
    background: rgba(255, 68, 68, 0.1);
}

button.danger:hover:not(:disabled) {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
    box-shadow: 0 0 12px rgba(255, 68, 68, 0.4);
}

/* Tooltip on hover (only for buttons with data-tooltip) */
button[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0a0a0a;
    color: #d4d4d4;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    border: 1px solid #d77757;
}

button[data-tooltip]:hover::after {
    opacity: 1;
}

/* Status indicator */
.status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffa500;
    display: inline-block;
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.6);
    transition: all 0.3s ease;
    position: relative;
}

.status.connected {
    background: #00ff00;
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.8);
    animation: pulse 2s infinite;
}

.status.error {
    background: #ff0000;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.8);
}

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

/* Tooltip for status indicator */
.status::after {
    content: attr(data-status);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0a0a0a;
    color: #d4d4d4;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    border: 1px solid #d77757;
}

.status:hover::after {
    opacity: 1;
}

/* Terminal container */
.terminal-container {
    flex: 1;
    padding: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

#terminal {
    flex: 1;
    background: #1e1e1e;
    min-height: 0;
}

/* Hide scrollbars on terminal viewport */
#terminal .xterm-viewport {
    overflow-y: scroll !important;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

#terminal .xterm-viewport::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
    width: 0;
    height: 0;
}

/* Prevent line-height/letter-spacing from bleeding into xterm measurement */
.xterm, .xterm * {
    line-height: normal !important;
    letter-spacing: normal !important;
    font-kerning: normal !important;
}

/* Info footer */
.info {
    background: #2d2d30;
    padding: 10px 20px;
    border-top: 1px solid #3e3e42;
    font-size: 12px;
    color: #858585;
}

/* Tunnels section */
.tunnels {
    background: #252526;
    padding: 15px 20px;
    border-top: 1px solid #3e3e42;
}

.tunnels h3 {
    margin-bottom: 10px;
    color: #4ec9b0;
    font-size: 1.1rem;
}

.tunnel-item {
    background: #2d2d30;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    border-left: 3px solid #4ec9b0;
}

.tunnel-item a {
    color: #569cd6;
    text-decoration: none;
}

.tunnel-item a:hover {
    text-decoration: underline;
}

/* Auth screen styles */
.screen {
    display: none;
    flex: 1;
    overflow: auto;
}

.screen.active {
    display: flex;
}

#auth-screen {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-container {
    max-width: 500px;
    width: 100%;
}

.auth-prompt {
    color: #d77757;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.auth-description {
    color: #858585;
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.auth-input-group {
    margin-bottom: 20px;
}

.auth-input-label {
    color: #d77757;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    background: #2d2d30;
    border: 1px solid #3e3e42;
    color: #d4d4d4;
    font-family: 'SF Mono', monospace;
    font-size: 1.1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.3em;
    text-align: center;
}

.auth-input:focus {
    outline: none;
    border-color: #d77757;
    box-shadow: 0 0 8px rgba(215, 119, 87, 0.3);
}

.auth-input::placeholder {
    letter-spacing: normal;
}

.auth-button {
    width: 100%;
    padding: 12px 20px;
    background: rgba(215, 119, 87, 0.15);
    color: #d77757;
    border: 1px solid rgba(215, 119, 87, 0.3);
    border-radius: 50px;
    font-family: 'SF Mono', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-button:hover:not(:disabled) {
    background: rgba(215, 119, 87, 0.25);
    border-color: #d77757;
    box-shadow: 0 0 12px rgba(215, 119, 87, 0.4);
}

.auth-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.auth-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.auth-info {
    background: rgba(79, 193, 255, 0.1);
    border: 1px solid rgba(79, 193, 255, 0.3);
    color: #4fc1ff;
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.auth-info code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    color: #d77757;
}

/* Launchpad screen styles */
#launchpad-screen {
    flex-direction: column;
    padding: 20px;
}

.launchpad-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.launchpad-header {
    color: #d77757;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.launchpad-prompt {
    color: #858585;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

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

.launchpad-section-title {
    color: #d77757;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.new-session-btn {
    width: 100%;
    padding: 16px 20px;
    background: rgba(215, 119, 87, 0.15);
    color: #d77757;
    border: 1px solid rgba(215, 119, 87, 0.3);
    border-radius: 6px;
    font-family: 'SF Mono', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.new-session-btn:hover {
    background: rgba(215, 119, 87, 0.25);
    border-color: #d77757;
    box-shadow: 0 0 12px rgba(215, 119, 87, 0.4);
}

.reset-server-btn {
    width: 100%;
    padding: 16px 20px;
    background: rgba(215, 119, 87, 0.15);
    color: #d77757;
    border: 1px solid rgba(215, 119, 87, 0.3);
    border-radius: 6px;
    font-family: 'SF Mono', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reset-server-btn:hover {
    background: rgba(215, 119, 87, 0.25);
    border-color: #d77757;
    box-shadow: 0 0 12px rgba(215, 119, 87, 0.4);
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-item {
    background: #2d2d30;
    border: 1px solid #3e3e42;
    border-left: 3px solid #d77757;
    padding: 14px 40px 14px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-item:hover {
    background: #323235;
    border-color: #d77757;
    box-shadow: 0 0 8px rgba(215, 119, 87, 0.2);
}

.project-name {
    color: #d77757;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.project-path {
    color: #858585;
    font-size: 0.85rem;
    margin-bottom: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
}

.project-description {
    color: #d4d4d4;
    font-size: 0.9rem;
    line-height: 1.4;
}

.project-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: transparent;
    color: #858585;
    border: 1px solid transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.project-delete-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border-color: #ff4444;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.4);
    transform: scale(1.1);
}

.launchpad-empty {
    color: #858585;
    font-size: 0.9rem;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

.launchpad-footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(215, 119, 87, 0.2);
}

.launchpad-footer a {
    display: inline-block;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.launchpad-footer a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.launchpad-footer svg {
    filter: drop-shadow(0 0 8px rgba(215, 119, 87, 0.3));
}

.launchpad-footer a:hover svg {
    filter: drop-shadow(0 0 16px rgba(215, 119, 87, 0.6));
}

/* Terminal screen */
#terminal-screen {
    flex-direction: column;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
    }

    h1 {
        font-size: 1.1rem;
    }

    button {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .status {
        width: 14px;
        height: 14px;
    }

    .controls {
        gap: 6px;
    }

    .terminal-container {
        padding: 10px;
        min-height: 350px;
    }

    .info {
        display: none;
    }

    .auth-container,
    .launchpad-container {
        padding: 0 10px;
    }

    .project-item {
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1rem;
    }

    button {
        width: 40px;
        height: 40px;
    }

    .header {
        padding: 8px 12px;
    }

    .terminal-container {
        padding: 8px;
        min-height: 300px;
    }

    .auth-prompt {
        font-size: 1.1rem;
    }

    .launchpad-header {
        font-size: 1.1rem;
    }
}

/* Mobile D-Pad Styles */
.dpad-float-button {
    display: none; /* Hidden by default, shown on mobile via JS */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(215, 119, 87, 0.15);
    border: 2px solid rgba(215, 119, 87, 0.3);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.dpad-float-button:hover,
.dpad-float-button:active {
    background: rgba(215, 119, 87, 0.25);
    border-color: rgba(215, 119, 87, 0.5);
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(215, 119, 87, 0.4);
}

.dpad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.dpad-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
}

@keyframes slideInFromBottomRight {
    from {
        opacity: 0;
        transform: translate(calc(50vw - 50%), calc(50vh - 50%)) scale(0.3);
    }
    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

.dpad-esc {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(215, 119, 87, 0.15);
    border: 2px solid rgba(215, 119, 87, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: slideInFromBottomRight 0.3s ease-out;
}

.dpad-esc:active {
    background: rgba(215, 119, 87, 0.35);
    border-color: rgba(215, 119, 87, 0.6);
    transform: scale(0.95);
}

.dpad-shift-tab {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(215, 119, 87, 0.15);
    border: 2px solid rgba(215, 119, 87, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: slideInFromBottomRight 0.3s ease-out;
}

.dpad-shift-tab:active {
    background: rgba(215, 119, 87, 0.35);
    border-color: rgba(215, 119, 87, 0.6);
    transform: scale(0.95);
}

.dpad-tab {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(215, 119, 87, 0.15);
    border: 2px solid rgba(215, 119, 87, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: slideInFromBottomRight 0.3s ease-out;
}

.dpad-tab:active {
    background: rgba(215, 119, 87, 0.35);
    border-color: rgba(215, 119, 87, 0.6);
    transform: scale(0.95);
}

.dpad-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: slideInFromBottomRight 0.3s ease-out;
}

.dpad-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.dpad-spacer {
    width: 75px;
    height: 75px;
}

.dpad-key {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    background: rgba(215, 119, 87, 0.15);
    border: 2px solid rgba(215, 119, 87, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dpad-key:active,
.dpad-key.active {
    background: rgba(215, 119, 87, 0.35);
    border-color: rgba(215, 119, 87, 0.6);
    transform: scale(0.92);
    box-shadow: 0 0 20px rgba(215, 119, 87, 0.5);
}

.dpad-enter {
    border-radius: 50%;
}

/* Mobile only display */
@media (min-width: 769px) {
    .dpad-float-button {
        display: none !important;
    }
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #1e1e1e;
    border: 2px solid #d77757;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    animation: slideIn 0.3s ease;
}

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

.modal-header {
    color: #d77757;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.modal-body {
    margin-bottom: 25px;
}

.modal-input-group {
    margin-bottom: 20px;
}

.modal-label {
    color: #d77757;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    background: #2d2d30;
    border: 1px solid #3e3e42;
    color: #d4d4d4;
    font-family: 'SF Mono', monospace;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-input:focus {
    outline: none;
    border-color: #d77757;
    box-shadow: 0 0 8px rgba(215, 119, 87, 0.4);
}

.modal-input::placeholder {
    color: #666;
}

.modal-description {
    color: #858585;
    font-size: 0.85rem;
    margin-top: 6px;
}

.modal-message {
    color: #d4d4d4;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 24px;
    border-radius: 4px;
    font-family: 'SF Mono', monospace;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid;
    width: auto;
    height: auto;
}

.modal-btn-primary {
    background: #d77757;
    color: #1e1e1e;
    border-color: #d77757;
}

.modal-btn-primary:hover {
    background: #e88768;
    box-shadow: 0 0 12px rgba(215, 119, 87, 0.5);
    transform: translateY(-1px);
}

.modal-btn-secondary {
    background: transparent;
    color: #d4d4d4;
    border-color: #3e3e42;
}

.modal-btn-secondary:hover {
    background: #2d2d30;
    border-color: #d77757;
}

/* Slash Commands Button */
.slash-commands-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: rgba(215, 119, 87, 0.15);
    border: 2px solid rgba(215, 119, 87, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.slash-commands-btn:hover,
.slash-commands-btn:active {
    background: rgba(215, 119, 87, 0.25);
    border-color: rgba(215, 119, 87, 0.5);
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(215, 119, 87, 0.4);
}

/* Slash Commands Modal */
.modal {
    display: none !important;
}

.modal.active {
    display: flex !important;
}

.modal .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.slash-commands-modal-content {
    background: #1e1e1e;
    border: 2px solid #d77757;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    position: relative;
}

.slash-commands-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #3e3e42;
}

.slash-commands-modal-content .modal-header h2 {
    color: #d77757;
    font-size: 1.3rem;
    margin: 0;
    font-weight: bold;
}

.modal-close {
    background: transparent;
    border: none;
    color: #d77757;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.1);
    color: #e88768;
}

.slash-commands-modal-content .modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.common-commands-section {
    margin-bottom: 30px;
}

.common-commands-section h3 {
    color: #d77757;
    font-size: 1rem;
    margin: 0 0 12px 0;
    font-weight: normal;
    text-transform: lowercase;
}

.common-commands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.command-button {
    background: rgba(215, 119, 87, 0.15);
    border: 2px solid rgba(215, 119, 87, 0.3);
    color: #d4d4d4;
    padding: 12px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'SF Mono', monospace;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 45px;
    width: 31%;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    overflow-wrap: break-word;
}

.command-button:hover,
.command-button:active {
    background: rgba(215, 119, 87, 0.35);
    border-color: rgba(215, 119, 87, 0.6);
    color: #d77757;
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(215, 119, 87, 0.5);
}

.all-commands-section {
    border-top: 1px solid #3e3e42;
    padding-top: 20px;
}

.all-commands-section h3 {
    color: #d77757;
    font-size: 1rem;
    margin: 0 0 16px 0;
    font-weight: normal;
    text-transform: lowercase;
}

.all-commands-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.command-category h4 {
    color: #d77757;
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    font-weight: normal;
    opacity: 0.8;
}

.command-item {
    background: #2d2d30;
    border: 1px solid #3e3e42;
    padding: 12px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.command-item:hover {
    background: #3e3e42;
    border-color: #d77757;
    transform: translateX(4px);
}

.command-name {
    color: #d77757;
    font-family: 'SF Mono', monospace;
    font-size: 0.95rem;
    font-weight: bold;
}

.command-description {
    color: #858585;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .slash-commands-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .slash-commands-modal-content .modal-body {
        padding: 16px;
    }

    .common-commands-grid {
        gap: 8px;
    }

    .command-button {
        padding: 10px 8px;
        font-size: 0.7rem;
        min-height: 42px;
        width: 31%;
    }

    .all-commands-section {
        padding-top: 16px;
    }

    .command-item {
        padding: 10px 12px;
    }
}
