/* debug-panel.css */
.debug-panel {
    position: fixed;
    z-index: 99999;
}

.debug-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #42b983;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    z-index: 99999;
}

.debug-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.debug-toggle.active {
    background: #ff6b6b;
}

.debug-content {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 400px;
    max-height: 600px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.debug-header {
    background: #2c3e50;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.debug-header h3 {
    margin: 0;
    font-size: 16px;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}

.debug-tabs {
    display: flex;
    background: #ecf0f1;
    border-bottom: 1px solid #bdc3c7;
}

.debug-tabs button {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.debug-tabs button:hover {
    background: #d5dbdd;
}

.debug-tabs button.active {
    background: white;
    border-bottom: 2px solid #42b983;
}

.debug-body {
    padding: 16px;
    overflow-y: auto;
    max-height: 500px;
}

.debug-section h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #2c3e50;
}

.state-grid {
    display: grid;
    gap: 8px;
}

.state-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
}

.state-item .label {
    font-weight: 600;
    color: #555;
}

.state-item .value {
    color: #42b983;
    font-family: monospace;
}

.action-group {
    margin-bottom: 16px;
}

.action-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-group-vertical button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    text-align: left;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 13px;
}

.btn-group-vertical button:hover {
    background: #f0f0f0;
    border-color: #42b983;
}

.btn-group-vertical button.active {
    background: #42b983;
    color: white;
    border-color: #42b983;
}

details {
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

details summary {
    padding: 10px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
}

details summary:hover {
    background: #e9ecef;
}

details pre {
    margin: 0;
    padding: 12px;
    background: #f8f9fa;
    font-size: 11px;
    overflow-x: auto;
    max-height: 300px;
}
