/* Sticky Panel Styles */
.sticky-input-panel {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    /* Override the fixed position styling from style.css */
    position: fixed;
    right: 20px;
    top: 20px;
    left: auto;
    width: 320px;
    max-height: 600px;
    transition: all 0.3s ease;
    overflow: hidden;
    opacity: 0;
    transform: translateX(100%);
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.sticky-input-panel h3 {
    margin-top: 0;
    cursor: pointer;
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    color: #0984d6;
}

.sticky-input-panel h3:before {
    content: "ℹ️";
    position: absolute;
    left: 0;
    top: 0;
}

/* Hidden state */
.sticky-input-panel.collapsed .input-group,
.sticky-input-panel.collapsed .section-divider {
    display: none;
}

.sticky-input-panel.collapsed {
    padding: 10px 15px;
    max-height: 40px;
    opacity: 0.8;
}

/* Expanded state */
.sticky-input-panel.expanded {
    padding: 12px;
    max-height: 85vh; /* Use viewport height for better responsiveness */
    opacity: 1;
    overflow-y: auto;
}

/* Additional styles moved from style.css */
.sticky-input-panel.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.sticky-input-panel .input-group {
    margin-bottom: 8px;
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 6px;
    display: block !important;
}

.sticky-input-panel .input-group h3 {
    font-size: 0.8rem;
    color: #2c3e50;
    margin-bottom: 4px;
    padding-bottom: 2px;
    text-align: left;
    display: block !important;
    width: 100%;
}

.sticky-input-panel .input-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    margin-bottom: 4px;
    margin-left: 4px;
    font-size: 0.75rem;
    line-height: 1.3;
}

.sticky-input-panel .input-item .input-name {
    font-weight: 500;
    color: #555;
    display: inline-block;
    flex-shrink: 0;
}

.sticky-input-panel .input-item .input-value {
    font-weight: 600;
    color: #333;
    text-align: right;
    display: inline-block;
    margin-left: 8px;
}

.sticky-input-panel .section-divider {
    height: 1px;
    background-color: #eee;
    margin: 8px 0;
}

/* Media queries for responsive design */
@media (max-width: 1200px) {
    .sticky-input-panel {
        width: 180px;
    }
}

@media (max-width: 992px) {
    .sticky-input-panel {
        position: static;
        width: 100%;
        margin-bottom: 20px;
        max-height: none;
        overflow-y: visible;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .sticky {
        position: static;
        width: 100%;
    }
}
