.figure-container {
    position: relative;
    margin: 1.5rem auto;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.subfigure-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
    padding: 1rem;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.subfigure-container.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.subfigure-container.inactive {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

/* Tabs container: display buttons inline with a bottom border to indicate grouping */
.tabs-container {
    display: flex;
    border-bottom: 2px solid #007acc;
    margin-bottom: 0.5rem;
}

/* Figure tab button styling */
.figure-tab {
    background: transparent;
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    margin-right: 0.3rem;
    font-size: 1rem;
    color: #007acc;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.figure-tab:hover,
.figure-tab.active {
    background-color: #007acc;
    color: #fff;
}

.export-container button {
    background-color: #007acc;
    color: #fff;
    border: none;
    padding: 0.4rem 0.8rem;
    margin-right: 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.export-container button:hover {
    background-color: #005fa3;
}