/* Support page specific styles */
body {
    margin: 0;
    padding: 0;
    background-color: #1e1e24;
    color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-y: auto; /* Allow browser scrolling */
}

.support-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Use min-height instead of height to allow scrolling */
    padding: 0;
    margin: 0;
}

.support-header {
    background-color: #292930;
    color: white;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    position: sticky; /* Keep header visible when scrolling */
    top: 0;
}

.support-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

/* Collapsible session info panel */
.session-info-container {
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

/* Session info toggle button */
.session-info-toggle {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 2;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
    transition: all 0.2s;
}

.session-info-toggle:hover {
    background-color: rgba(0,0,0,0.4);
    color: white;
}

/* Add checkbox for toggle state without JavaScript */
#session-info-checkbox {
    display: none;
}

.session-info {
    background-color: rgba(41, 41, 48, 0.95);
    padding: 15px;
    border-radius: 5px;
    color: #f8f9fa;
    border: 1px solid rgba(255,255,255,0.1);
    max-height: 50vh; /* Maximum height */
    overflow-y: auto; /* Add vertical scrolling */
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* Create the collapsed state */
#session-info-checkbox:checked ~ .session-info {
    max-height: 45px;
    overflow: hidden;
}

#session-info-checkbox:checked ~ .session-info-toggle::before {
    content: "▼"; /* Down arrow when collapsed */
}

#session-info-checkbox:not(:checked) ~ .session-info-toggle::before {
    content: "▲"; /* Up arrow when expanded */
}

/* Only show the heading when collapsed */
#session-info-checkbox:checked ~ .session-info > * {
    opacity: 0.5;
}

#session-info-checkbox:checked ~ .session-info > h3 {
    opacity: 1;
    margin-bottom: 0;
}

.session-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
    padding-right: 40px; /* Make room for the toggle button */
}

.session-info dl {
    margin-bottom: 0;
    display: grid;
    grid-template-columns: 150px 1fr;
    row-gap: 5px;
}

.session-info dt {
    font-weight: bold;
    color: #adb5bd;
}

.session-info dd {
    margin-left: 0;
}

.support-iframe-container {
    flex: 1;
    min-height: 500px; /* Minimum height for iframe */
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.support-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.support-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
}

.logo-img {
    height: 32px;
    margin-right: 10px;
}

.copy-btn {
    font-size: 0.8rem;
    padding: 2px 8px;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #f8f9fa;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
}

.copy-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.session-info p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

#summaryText {
    height: 0;
    width: 0;
    opacity: 0;
    position: absolute;
}

/* Style the scrollbar for better appearance */
.session-info::-webkit-scrollbar {
    width: 8px;
}

.session-info::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

.session-info::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.session-info::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}