
        .gemini-tabs-container {
            display: flex;
            width: 100%;
        }
        .gemini-tab-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-wrap: wrap;
        }
        .gemini-tab-content {
            flex-grow: 1;
            border: 1px solid var(--tab-border);
            padding: 1rem;
            background-color: var(--tab-content-bg);
        }
        .gemini-tab-content .gemini-tab-panel {
            display: none;
        }
        .gemini-tab-content .gemini-tab-panel.active {
            display: block;
        }
        .gemini-tab-list .gemini-tab {
            padding: 0.75rem 1.25rem;
            cursor: pointer;
            background-color: var(--tab-default-bg);
            color: var(--tab-default-text);
            border: 1px solid var(--tab-border);
            font-weight: 500;
        }
        .gemini-tab-list .gemini-tab.active {
            background-color: var(--tab-active-bg);
            color: var(--tab-active-text);
            border-bottom-color: var(--tab-active-bg);
        }
        .gemini-tab-list .gemini-tab:not(:last-child) {
            margin-right: 2px;
        }

        /* --- Tabs on Top (Default) --- */
        .gemini-tabs-container.tabs-top {
            flex-direction: column;
        }
        .gemini-tabs-container.tabs-top .gemini-tab-list {
            flex-direction: row;
        }
        .gemini-tabs-container.tabs-top .gemini-tab-list .gemini-tab {
            border-bottom: none;
            border-radius: 0.375rem 0.375rem 0 0; /* rounded-t-md */
        }
        .gemini-tabs-container.tabs-top .gemini-tab-list .gemini-tab.active {
             margin-bottom: -1px; /* Pulls content up */
             border-bottom-color: var(--tab-active-bg);
        }
        .gemini-tabs-container.tabs-top .gemini-tab-content {
            border-top: none; /* Connects to active tab */
            border-radius: 0 0.375rem 0.375rem 0.375rem; /* rounded-b-md */
        }
        
        /* --- Tabs on Top (Centered) --- */
        .gemini-tabs-container.tabs-top-center {
            flex-direction: column;
        }
        .gemini-tabs-container.tabs-top-center .gemini-tab-list {
            flex-direction: row;
            justify-content: center; /* This is the main change */
        }
        .gemini-tabs-container.tabs-top-center .gemini-tab-list .gemini-tab {
            border-bottom: none;
            border-radius: 0.375rem 0.375rem 0 0; /* rounded-t-md */
        }
        .gemini-tabs-container.tabs-top-center .gemini-tab-list .gemini-tab.active {
             margin-bottom: -1px; /* Pulls content up */
             border-bottom-color: var(--tab-active-bg);
        }
        .gemini-tabs-container.tabs-top-center .gemini-tab-content {
            border-top: none; /* Connects to active tab */
            border-radius: 0 0.375rem 0.375rem 0.375rem; /* rounded-b-md */
        }
        
        /* --- Tabs on Top (Right) --- */
        .gemini-tabs-container.tabs-top-right {
            flex-direction: column;
        }
        .gemini-tabs-container.tabs-top-right .gemini-tab-list {
            flex-direction: row;
            justify-content: flex-end; /* This is the main change */
        }
        .gemini-tabs-container.tabs-top-right .gemini-tab-list .gemini-tab {
            border-bottom: none;
            border-radius: 0.375rem 0.375rem 0 0; /* rounded-t-md */
        }
        .gemini-tabs-container.tabs-top-right .gemini-tab-list .gemini-tab.active {
             margin-bottom: -1px; /* Pulls content up */
             border-bottom-color: var(--tab-active-bg);
        }
        .gemini-tabs-container.tabs-top-right .gemini-tab-content {
            border-top: none; /* Connects to active tab */
            border-radius: 0 0.375rem 0.375rem 0.375rem; /* rounded-b-md */
        }

        /* --- Tabs on Left --- */
        .gemini-tabs-container.tabs-left {
            flex-direction: row;
            min-height: 250px;
        }
        .gemini-tabs-container.tabs-left .gemini-tab-list {
            flex-direction: column;
            flex-shrink: 0;
        }
        .gemini-tabs-container.tabs-left .gemini-tab-list .gemini-tab {
            border-right: none;
            border-bottom: 1px solid var(--tab-border);
            border-radius: 0.375rem 0 0 0.375rem; /* rounded-l-md */
            margin-right: 0;
            margin-bottom: 2px;
        }
        .gemini-tabs-container.tabs-left .gemini-tab-list .gemini-tab:not(:last-child) {
            margin-right: 0;
        }
        .gemini-tabs-container.tabs-left .gemini-tab-list .gemini-tab.active {
            border-right: 1px solid var(--tab-active-bg);
            margin-right: -1px; /* Pulls content over */
        }
        .gemini-tabs-container.tabs-left .gemini-tab-content {
            border-left: none; /* Connects to active tab */
            border-radius: 0 0.375rem 0.375rem 0; /* rounded-r-md */
        }

        /* --- Tabs on Right --- */
        .gemini-tabs-container.tabs-right {
            flex-direction: row-reverse; /* Changed */
            min-height: 250px;
        }
        .gemini-tabs-container.tabs-right .gemini-tab-list {
            flex-direction: column;
            flex-shrink: 0;
        }
        .gemini-tabs-container.tabs-right .gemini-tab-list .gemini-tab {
            border-left: none; /* Changed */
            border-bottom: 1px solid var(--tab-border);
            border-radius: 0 0.375rem 0.375rem 0; /* rounded-r-md - Changed */
            margin-left: 0; /* Changed */
            margin-bottom: 2px;
        }
        .gemini-tabs-container.tabs-right .gemini-tab-list .gemini-tab:not(:last-child) {
            margin-right: 0;
        }
        .gemini-tabs-container.tabs-right .gemini-tab-list .gemini-tab.active {
            border-left-color: var(--tab-active-bg); /* Changed */
            margin-left: -1px; /* Pulls content over - Changed */
        }
        .gemini-tabs-container.tabs-right .gemini-tab-content {
            border-right: none; /* Connects to active tab - Changed */
            border-radius: 0.375rem 0 0 0.375rem; /* rounded-l-md - Changed */
        }