/* Minecraft Server Management Protocol Tool Styles */

.tool-container {
    background: var(--minecraft-panel);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.tool-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

/* 装饰元素 - 与color-codes一致 */
.grass-block-decoration {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAA7klEQVRYhe2XMQ7CMAxFXzN0YekROAE34QQMnIuJiYGJgYmJlSNwBA7AAVjKgFo1VdM4aZGKJUt/cPLlO3acCPwTCnAFHsAZGAKhxvlb4r9KAAfDHKAHzIE18AC2wBiIFP4VMAdK4A7MgF7dgnGvp2QsExjV+KcGO7XBNW8JXNJkAuwa5qwU/0yYQA6cFH8T0uCo+JtQvucmToWCEeBXwSiQyVwmqlEQ41bB1fX8Vi2ZMQp6zv2XgnwPHQWZo6DG5Ypw9/xKyecK9kmDRiiZr9LEDzKRKbiSuVsXvO1kpKyC02ve+gqWoODzf+CvPAFUVvdRnE1w7QAAAABJRU5ErkJggg==');
    background-size: cover;
    transform: rotate(-15deg);
    opacity: 0.8;
    z-index: 0;
    image-rendering: pixelated;
    display: none; /* 在大屏幕上才显示 */
}

.diamond-ore-decoration {
    position: absolute;
    bottom: 30px;
    right: -15px;
    width: 70px;
    height: 70px;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA1klEQVQ4y83TMUoDQRTG8d/GQrCxVBCxSBFIYWMjeIFcQG+QK3iEXMAT2HkA02lI6QWsUqS1SGGRQrGwsfCzsJFld2Z3C/3gwQzD+/7vzTCpVqsI4hjbmHc5/sYAE/iqC2pJTGunMNFiPsA++jjAVdF8lKOvchXrBVTxlRVzknNgU0u5H0DI3J4aAOXC+CnvwDGupeBrPOI9ZD7MqLnDFt7yCrjNqOliA5M8AkJTb3RwhnbMXOAZRw14nOAhZN7AKe5rAr5xjlFsE5WYwgzP+V3/v3TxiAs8pVzfogKMEF94h+YAAAAASUVORK5CYII=');
    background-size: cover;
    transform: rotate(10deg);
    opacity: 0.8;
    z-index: 0;
    image-rendering: pixelated;
    display: none; /* 在大屏幕上才显示 */
}

/* Security Warning Section */
.security-warning {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid #e74c3c;
    border-left: 4px solid #e74c3c;
    border-radius: 2px;
    padding: 2rem;
    margin: 2rem 0;
    color: white;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.security-warning::before {
    content: "⚠️";
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.7;
}

.warning-content h2 {
    color: #fff;
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.warning-content p {
    margin: 12px 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.security-tips {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.security-tips h3 {
    color: #fff;
    margin: 0 0 12px 0;
    font-size: 1.2rem;
}

.security-tips ul {
    list-style: none;
    padding: 0;
}

.security-tips li {
    margin: 8px 0;
    padding-left: 8px;
    font-size: 1rem;
}

/* Connection Section */
.connection-section {
    background: var(--minecraft-panel);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    padding: 2rem;
    margin: 2rem 0;
    color: white;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.connection-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.connection-section h2 {
    color: var(--minecraft-green);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--minecraft-secondary);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.setup-step {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
    padding: 1.5rem;
    margin: 1rem 0;
    position: relative;
    z-index: 1;
}

.setup-step h3 {
    color: white;
    margin: 0 0 15px 0;
}

.config-example {
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 15px;
}

.config-example h4 {
    color: #ecf0f1;
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.config-example pre {
    background: rgba(0, 0, 0, 0.3);
    color: var(--minecraft-accent);
    padding: 0.75rem;
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
    font-family: 'Noto Sans Mono', monospace;
    margin: 1rem 0;
    overflow-x: auto;
    word-break: break-all;
}

/* Connection Form */
.connection-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: white;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 14px;
    font-family: 'Noto Sans Mono', monospace;
}

.form-group input:focus {
    outline: none;
    border-color: var(--minecraft-green);
    box-shadow: 0 0 0 2px rgba(68, 189, 50, 0.2);
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.7);
}

.connection-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: #2ecc71;
}

.status-dot.connecting {
    background: #f39c12;
}

.status-dot.disconnected {
    background: #e74c3c;
}

.status-text {
    font-size: 14px;
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* API Methods Section */
.api-methods-section {
    margin: 30px 0;
}

.method-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.method-category {
    background: var(--minecraft-panel);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.method-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.category-header {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    border-bottom: 2px solid var(--minecraft-secondary);
    transition: all 0.3s ease;
}

.category-header:hover {
    background: var(--card-hover);
}

.category-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
}

.category-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.method-category.expanded .toggle-icon {
    transform: rotate(180deg);
}

.category-methods {
    padding: 20px;
    display: none;
}

.method-category.expanded .category-methods {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.method-card {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    padding: 1.5rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.method-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
    border-color: var(--minecraft-green);
}

.method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.method-path {
    font-family: 'Noto Sans Mono', monospace;
    background: rgba(0, 0, 0, 0.3);
    color: var(--minecraft-green);
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: 600;
}

.method-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.method-type.get {
    background: var(--minecraft-green);
    color: white;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2),
                inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.method-type.post {
    background: var(--minecraft-accent);
    color: white;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2),
                inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.method-description {
    color: #ecf0f1;
    margin: 10px 0;
    line-height: 1.5;
}

.method-details {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.method-details > div {
    margin: 8px 0;
    color: #bdc3c7;
}

.method-details strong {
    color: #3498db;
}

.method-example {
    margin-top: 15px;
}

.method-example h4 {
    color: #f39c12;
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.method-example pre {
    background: rgba(0, 0, 0, 0.3);
    color: var(--minecraft-accent);
    padding: 0.75rem;
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Noto Sans Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-all;
}

.test-method-btn {
    background: var(--minecraft-green);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2),
                inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.test-method-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.3s ease;
}

.test-method-btn:hover::before {
    left: 100%;
}

.test-method-btn:hover {
    background: var(--minecraft-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.test-method-btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.3);
}

/* Testing Console */
.testing-console-section {
    margin: 2rem 0;
}

.console-container {
    background: var(--minecraft-panel);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.console-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.console-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--minecraft-secondary);
    position: relative;
    z-index: 1;
}

.console-header h3 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
}

.console-controls {
    display: flex;
    gap: 10px;
}

.console-input {
    padding: 20px;
    border-bottom: 1px solid rgba(149, 165, 166, 0.3);
}

.console-input label {
    display: block;
    margin-bottom: 8px;
    color: #ecf0f1;
    font-weight: 500;
}

.console-input textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
    color: #ecf0f1;
    font-family: 'Noto Sans Mono', monospace;
    font-size: 0.9rem;
    resize: vertical;
    box-sizing: border-box;
}

.console-input textarea:focus {
    outline: none;
    border-color: var(--minecraft-green);
    box-shadow: 0 0 0 2px rgba(68, 189, 50, 0.2);
}

.console-output {
    padding: 20px;
}

.console-output h4 {
    margin: 0 0 15px 0;
    color: #ecf0f1;
}

.log-display {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Noto Sans Mono', monospace;
    font-size: 0.85rem;
}

.log-entry {
    margin: 5px 0;
    padding: 5px 0;
    border-bottom: 1px solid rgba(149, 165, 166, 0.1);
    display: flex;
    gap: 10px;
}

.log-entry:last-child {
    border-bottom: none;
}

.timestamp {
    color: #95a5a6;
    flex-shrink: 0;
}

.message {
    color: #ecf0f1;
}

.log-entry.info .message {
    color: #3498db;
}

.log-entry.success .message {
    color: #27ae60;
}

.log-entry.error .message {
    color: #e74c3c;
}

.log-entry.warning .message {
    color: #f39c12;
}

/* Notifications Section */
.notifications-section {
    margin: 30px 0;
}

.notification-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.notification-category {
    background: var(--minecraft-panel);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.notification-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.notification-category h3 {
    margin: 0 0 1rem 0;
    color: var(--minecraft-green);
    font-size: 1.2rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.notification-category p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.event-list {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    flex-wrap: wrap;
    gap: 10px;
}

.event-item code {
    background: rgba(0, 0, 0, 0.3);
    color: var(--minecraft-accent);
    padding: 0.15rem 0.3rem;
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
    font-family: 'Noto Sans Mono', monospace;
    font-size: 0.85rem;
}

.event-item span {
    color: #ecf0f1;
    flex-grow: 1;
    font-size: 0.9rem;
}

/* Notification Monitor */
.notification-monitor {
    background: var(--minecraft-panel);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.notification-monitor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.notification-monitor h3 {
    color: #ecf0f1;
    margin: 0 0 15px 0;
}

.monitor-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.event-display {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
    padding: 1rem;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Noto Sans Mono', monospace;
}

.no-events {
    color: #95a5a6;
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
}

/* Utilities Section */
.utilities-section {
    margin: 30px 0;
}

.utilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.utility-card {
    background: var(--minecraft-panel);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.utility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.utility-card h3 {
    margin: 0 0 1rem 0;
    color: var(--minecraft-green);
    font-size: 1.1rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.action-btn.warning {
    background: rgba(231, 76, 60, 0.3);
    border-color: rgba(231, 76, 60, 0.5);
}

.action-btn.warning:hover {
    background: rgba(231, 76, 60, 0.5);
}

.message-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.message-form textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.message-form button {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.message-form button:hover {
    background: rgba(255,255,255,0.3);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.setting-item label {
    min-width: 80px;
    font-weight: 500;
}

.setting-item select,
.setting-item input {
    padding: 8px 10px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
    min-width: 100px;
}

.setting-item button {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.setting-item button:hover {
    background: rgba(255,255,255,0.3);
}

/* Integration Guide Section */
.integration-guide-section {
    margin: 30px 0;
}

.code-examples {
    background: var(--minecraft-panel);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.code-examples::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.example-tab-container {
    background: #34495e;
}

.example-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid var(--minecraft-secondary);
    overflow-x: auto;
    position: relative;
    z-index: 1;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #bdc3c7;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.tab-btn:hover {
    background: var(--card-hover);
    color: #ecf0f1;
}

.tab-btn.active {
    background: rgba(0, 0, 0, 0.2);
    color: var(--minecraft-green);
    border-bottom-color: var(--minecraft-green);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.example-content {
    display: none;
    padding: 25px;
}

.example-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.example-content h3 {
    color: #3498db;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
}

.example-content pre {
    background: rgba(0, 0, 0, 0.3);
    color: #ecf0f1;
    padding: 1.5rem;
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
    overflow-x: auto;
    font-family: 'Noto Sans Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-all;
    position: relative;
    z-index: 1;
}

.example-content code {
    color: var(--minecraft-accent); /* JSON strings */
}

.example-content h3 {
    color: var(--minecraft-green);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* Button Styles - 统一Minecraft风格 */
.minecraft-btn {
    background: var(--minecraft-green);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2),
                inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.minecraft-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.3s ease;
}

.minecraft-btn:hover::before {
    left: 100%;
}

.minecraft-btn:hover {
    background: var(--minecraft-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.minecraft-btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.3);
}

.minecraft-btn.primary {
    background: var(--minecraft-green);
}

.minecraft-btn.secondary {
    background: var(--minecraft-gray);
}

.minecraft-btn:disabled {
    background: var(--minecraft-gray);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.minecraft-btn:disabled::before {
    display: none;
}

/* 所有标题统一样式 */
h2 {
    color: var(--minecraft-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--minecraft-secondary);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.section-subtitle {
    color: #CCCCCC;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* 显示装饰元素 */
@media (min-width: 992px) {
    .grass-block-decoration,
    .diamond-ore-decoration {
        display: block;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .connection-form {
        flex-direction: column;
    }
    
    .connection-controls {
        justify-content: center;
    }
    
    .method-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .utilities-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .example-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .tool-container {
        padding: 15px;
    }
    
    .security-warning {
        padding: 15px;
    }
    
    .console-input textarea {
        min-height: 100px;
    }
    
    .log-display {
        max-height: 200px;
    }
    
    .event-display {
        max-height: 300px;
    }
}
