/* Sidebar Styles */

/* Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar Panel */
.config-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: #050507;
    /* Deep opaque bg */
    border-left: 1px solid var(--glass-border);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.config-sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-header h3 {
    font-size: 1rem;
    color: var(--text-main);
    letter-spacing: 1px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.btn-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Elements */
.save-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input[type="text"] {
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}

input[type="text"]:focus {
    border-color: var(--primary-glow);
    background: rgba(59, 130, 246, 0.1);
}

.btn-primary-full {
    width: 100%;
    height: 40px;
    background: var(--primary-glow);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
}

.btn-primary-full:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.divider {
    height: 1px;
    background: var(--glass-border);
    width: 100%;
}

/* List Items */
.snapshot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-list-tip {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 20px;
    opacity: 0.6;
}

.snapshot-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.snapshot-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}

.snapshot-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.snapshot-name {
    font-weight: 500;
    color: #fff;
    font-size: 0.95rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.snapshot-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.snapshot-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.btn-mini {
    flex: 1;
    height: 28px;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-mini:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-mini.load:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-mini.delete:hover {
    border-color: #ef4444;
    color: #ef4444;
}