/*
 * Mockup UI State Switcher Panel
 * Offcanvas style - slides in from left
 */

/* Main Panel Container - Offcanvas */
.mockup-switcher {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 320px;
    z-index: 9999;
    font-family: 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mockup-switcher.expanded {
    transform: translateX(0);
}

/* Backdrop Overlay */
.mockup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mockup-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* Toggle Button - on right edge of panel */
.mockup-toggle {
    position: absolute;
    right: -34px;
    bottom: 0;
    background: #2d2d2d;
    color: #bbb;
    padding: 12px 10px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    user-select: none;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    border: 1px solid #3a3a3a;
    border-left: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-toggle:hover {
    background: #353535;
    color: #ddd;
    border-color: #4a4a4a;
    right: -35px;
}

/* Toggle text changes based on state */
.toggle-text {
    display: block;
}

/* Content Panel - Full Height with Scroll */
.mockup-content {
    background: #1e1e1e;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.5);
    border-right: 1px solid #3a3a3a;
}

/* Custom Scrollbar */
.mockup-content::-webkit-scrollbar {
    width: 8px;
}

.mockup-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.mockup-content::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}

.mockup-content::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

/* Content Layout */
.mockup-section {
    margin-bottom: 16px;
}

.mockup-section:last-child {
    margin-bottom: 0;
}

/* Divider between sections */
.mockup-section + .mockup-section {
    border-top: 1px solid #3a3a3a;
    padding-top: 16px;
    margin-top: 16px;
}

.mockup-label {
    display: block;
    color: #999;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* State Buttons Grid */
.mockup-states {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

/* State Button */
.mockup-state-btn {
    background: #2a2a2a;
    border: 1px solid #3f3f3f;
    color: #ccc;
    padding: 10px 14px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.15s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.mockup-state-btn:hover {
    background: #333;
    border-color: #555;
    transform: translateY(-1px);
}

.mockup-state-btn.active {
    background: #2d3e2d;
    border-color: #4a6a4a;
    color: #9fdf9f;
}

.mockup-state-btn.active::before {
    content: '[✓]';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #6faf6f;
    font-weight: normal;
}

.mockup-state-btn:active {
    transform: translateY(0);
}

/* State Button Title */
.mockup-state-title {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 12px;
}

/* State Button Description */
.mockup-state-desc {
    display: block;
    font-size: 10px;
    color: #777;
    line-height: 1.3;
}

.mockup-state-btn.active .mockup-state-desc {
    color: #8fc78f;
}

/* VPS Settings Section */
.mockup-settings {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 10px;
    background: #252525;
    border-radius: 3px;
    transition: background 0.15s ease;
    user-select: none;
}

.setting-item:hover {
    background: #2a2a2a;
}

.setting-item input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}

.setting-item span {
    color: #ccc;
    font-size: 12px;
    line-height: 1.3;
}

/* Info Section */
.mockup-info {
    background: #252525;
    border-left: 2px solid #555;
    padding: 8px 10px;
    border-radius: 2px;
    margin-top: 12px;
}

.mockup-info-text {
    color: #888;
    font-size: 10px;
    line-height: 1.5;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .mockup-switcher {
        width: 280px;
    }

    .mockup-toggle {
        right: -44px;
        padding: 10px 8px;
        min-height: 70px;
    }
}

@media (max-width: 480px) {
    .mockup-switcher {
        width: 90%;
        max-width: 280px;
    }
}

/* Prevent body scroll when panel is open */
body.mockup-open {
    overflow: hidden;
}

/* Reset Button */
.mockup-reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mockup-reset-btn:hover {
    background: #4a4a4a;
    border-color: #5a5a5a;
    transform: translateY(-1px);
}

.mockup-reset-btn:active {
    transform: translateY(0);
    background: #333;
}

.mockup-reset-btn svg {
    flex-shrink: 0;
}
