/* 基础样式 */
:root {
    --primary-color: #4f7627;
    --secondary-color: #40a9ff;
    --background-color: #f8f8f8;
    --text-color: #333;
    --border-radius: 8px;
    --bull-color: #b6593d;
    --line-color: #4e6e8e;
}

/* Translation comment styling */
.translation-comment {
    font-size: 0.9em;
    font-style: italic;
    color: #666;
    margin-top: 0.5em;
    margin-bottom: 1em;
    padding-left: 1em;
    border-left: 2px solid #ddd;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0 0 30px 0;
    background-color: #f5f5f5;
    min-height: 100vh;
    box-sizing: border-box;
}

/* 布局样式 */
#container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    gap: 15px;
    height: calc(100vh - 140px); /* Account for footer and padding */
    box-sizing: border-box;
}

/* The translation pane that contains the input and output sections */
.translation-pane {
    width: calc(33.33% - 10px);
    flex: 1 1 0;
    margin-bottom: 10px;
    border: 2px solid var(--line-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: white;
    position: relative;
    height: calc(100dvh - 65px);
    display: flex;
    flex-direction: column;
    min-width: 0; /* Important to prevent overflow */
    transition: all 0.3s ease;
}

.translation-pane:hover {
    /* Keep border color unchanged */
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(78, 110, 142, 0.2);
}

/* Headers for each pane */
.translation-pane h3, .header h3 {
    margin: 0;
    padding: 15px;
    background-color: transparent;
    color: var(--line-color);
    font-size: 16px;
    text-align: center;
    font-weight: 500;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    padding: 0 15px 0 0;
    border-bottom: 2px solid var(--line-color);
}

/* Textarea for input */
#message {
    flex: 1;
    width: 100%;
    border: none;
    padding: 15px;
    font-size: 16px;
    resize: none;
    overflow-y: auto;
    background-color: rgba(249, 249, 249, 0.5);
    box-sizing: border-box;
    min-height: 200px;
    transition: all 0.3s ease;
}

#message:focus {
    background-color: #fff;
    outline: none;
}

/* Content area for translation outputs */
.content {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    background-color: rgba(249, 249, 249, 0.5);
    min-height: 200px;
    box-sizing: border-box;
    word-wrap: break-word;
    transition: all 0.3s ease;
}

/* Style the controls section */
#controls {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 15px;
    background-color: transparent;
    border: 2px solid var(--line-color);
    border-width: 2px 0;  /* Only top and bottom borders */
    border-color: var(--line-color);
    border-radius: 0;  /* Remove border radius when using only top/bottom borders */
    margin-bottom: 5px;
    flex-shrink: 0;
    gap: 10px; /* Add spacing between wrapped elements */
    transition: all 0.3s ease;
    position: relative;
}

#controls:hover {
    /* Keep border color unchanged */
    box-shadow: 0 4px 8px rgba(78, 110, 142, 0.1);
}

#controls::before {
    content: '';
    position: absolute;
    bottom: 100%; /* Bottom of image aligns with top of controls */
    left: 30px; /* Left margin of 50px as requested */
    width: 48px; /* Adjust width as needed */
    height: 48px; /* Adjust height as needed */
    background-image: url('./media/fyn-250314.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom left;
    z-index: 1;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.language-label {
    white-space: nowrap;
}

.radio-group {
    display: flex;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

/* Custom radio button styling */
.radio-label input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
    width: 16px;
    height: 16px;
    border: 2px solid var(--line-color);
    border-radius: 50%;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
}

.radio-label input[type="radio"]:checked {
    border-color: var(--line-color);
}

.radio-label input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--bull-color);
}

.radio-label input[type="radio"]:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 118, 39, 0.2);
}

.radio-label span {
    user-select: none;
}


#buttons {
    display: flex;
    gap: 10px;
    padding: 0 10px;
}

#send-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#send-btn svg {
    margin-right: 3px;
}

/* Button styles */
button {
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    border-radius: var(--border-radius);
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    font-weight: 500;
    outline: none;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(79, 118, 39, 0.3);
}

button:active {
    transform: translateY(0);
    box-shadow: none;
}

button:disabled {
    background-color: transparent;
    color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: all 0.3s ease;
}

/* Copy buttons - hidden by default until JS decides to show them */
.copy-btn {
    margin-left: 3px;
    padding: 5px 10px;
    font-size: 0.8em;
    display: none; /* Hidden by default, JS will show when needed */
}

/* For clear button that toggles between clear/cancel */
#clear-btn.stopping .cancel-icon {
    display: inline-block;
}

#clear-btn.stopping svg:first-child {
    display: none;
}

#clear-btn:not(.stopping) .cancel-icon {
    display: none;
}

#clear-btn {
    color: #781b1c;
    border-color: #781b1c;
}

/* Style for Cancel mode */
#clear-btn.cancel-mode {
    background-color: rgba(212, 56, 13, 0.1);
    color: #d4380d;
    border-color: #d4380d;
    animation: pulse-attention 1.5s infinite;
}

#clear-btn.cancel-mode:hover {
    background-color: #d4380d;
    color: white;
}

@keyframes pulse-attention {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

#clear-btn:hover {
    background-color: #781b1c;
    color: white;
}

#clear-btn:disabled {
    background-color: transparent;
    color: #ccc;
    border-color: #ccc;
}

/* Error message styles */
.error-result {
    background-color: #ffe6e6;
    border-left: 4px solid #ff4d4f;
    opacity: 1;
}

.error-result strong {
    color: #ff4d4f;
}

.error-result pre {
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    overflow-x: auto;
}

.spinner {
    margin: 20px auto;
    width: 20px;
    height: 20px;
    position: relative;
    animation: rotate-hourglass 1s linear infinite;
}

.spinner:before,
.spinner:after {
    content: "";
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

.spinner:before {
    border-bottom: 10px solid #333;
    top: 0;
    transform: translateX(-50%);
}

.spinner:after {
    border-top: 10px solid #333;
    bottom: 0;
    transform: translateX(-50%);
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Header styling with a copy button */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#provider {
    width: 30%;
    max-width: 300px;
    padding: 5px;
    font-size: 1em;
    margin-bottom: 10px;
    margin-right: auto;
    border-color: #ddd;
    border-radius: 8px;
    outline: none;
}

/* Notification style for successful copy */
.notification {
    position: fixed;
    bottom: 40%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    color: var(--secondary-color);
    padding: 10px 20px;
    border: 2px solid var(--line-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 6000;
    font-weight: 500;
    transition: all 0.3s ease;
}

.notification.success {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.notification.error {
    color: #721c24;
    border-color: #721c24;
}



@keyframes rotate-hourglass {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}




#source-language {
    padding: 5px;
    font-size: 1em;
    border-color: #ddd;
    border-radius: 8px;
    outline: none;
    min-width: 60px;
}

/* Status message styling */
.status-message {
    padding: 8px 15px;
    background-color: transparent;
    color: var(--line-color);
    font-size: 14px;
    text-align: center;
    flex-shrink: 0;
    border-top: 1px solid var(--line-color);
    transition: all 0.3s ease;
}

.status-message.error {
    background-color: transparent;
    color: #721c24;
    border-top-color: #721c24;
}

/* Add the new authentication styles at the top of the file */
/* Auth Container Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: #f8f9fa;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid var(--line-color);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 6px 16px rgba(78, 110, 142, 0.2);
    transform: translateY(-2px);
}

.auth-header {
    padding: 20px;
    background-color: transparent;
    color: var(--line-color);
    text-align: center;
    border-bottom: 2px solid var(--line-color);
    transition: all 0.3s ease;
}

.auth-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
}

.auth-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #4a5568;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 2px solid var(--line-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #4a5568;
    box-sizing: border-box;
    outline: none;
}

.form-group input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(64, 169, 255, 0.2);
}

.form-group input:hover {
    /* Keep border color unchanged */
    box-shadow: 0 0 4px rgba(78, 110, 142, 0.2);
}

.auth-message {
    margin: 15px 0;
    padding: 12px;
    font-weight: 500;
    color: var(--line-color);
    background-color: transparent;
    display: none;
    transition: all 0.3s ease;
    text-align: center;
}

.auth-message.success {
    color: var(--primary-color);
    background-color: transparent;
}

.auth-message.error {
    color: #721c24;
    border-color: #721c24;
    background-color: transparent;
}

.auth-button {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    color: var(--line-color);
    border: 2px solid var(--line-color);
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.auth-button:hover {
    background-color: var(--line-color);
    color: white;
    box-shadow: 0 2px 8px rgba(78, 110, 142, 0.3);
}

/* Update user-bar to be a footer with outline style */
#user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    background-color: var(--background-color);
    color: var(--line-color);
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    height: 26px;
    font-size: 0.9rem;
    z-index: 100;
    box-sizing: border-box;
    border-top: 2px solid var(--line-color);
    transition: all 0.3s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

#username-display {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--line-color);
}

.user-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Remove the standalone logout button styles since it's now a menu item */
/* #logout-btn {
    padding: 1px 6px;
    background-color: transparent;
    color: var(--line-color);
    border: 1px solid var(--line-color);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

#logout-btn:hover {
    background-color: var(--line-color);
    color: #ffffff;
} */

/* Fix for inner content overflow */
#input-pane h3, #first-output-pane .header, #second-output-pane .header {
    flex-shrink: 0;
}

.pane-controls {
    display: flex;
    align-items: center;
    /*gap: 10px;*/
}

/* Toggle Switch Styles - updated for outline style */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    margin-right: 5px;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    border: 2px solid #ccc;
    transition: all 0.3s ease;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 2px;
    background-color: transparent;
    border: 2px solid #ccc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input:checked + .slider {
    background-color: transparent;
    border-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(79, 118, 39, 0.2);
}

input:checked + .slider:before {
    transform: translateX(20px);
    background-color: transparent;
    border-color: var(--bull-color);
}

/* Rounded sliders */
.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Collapsed pane style */
.translation-pane.collapsed {
    flex: 0 0 15%;
    width: 15%;
    background-color: #f0f0f0;
    opacity: 0.7;
}

/* When a pane is collapsed, hide all content and buttons within it */
.translation-pane.collapsed .content,
.translation-pane.collapsed .status-message {
    display: none;
}

/* More specific selector to hide copy buttons when pane is collapsed */
.translation-pane.collapsed .pane-controls .copy-btn {
    display: none;
}

/* Hide toggle switches during translation */
.toggle-switch.hidden {
    display: none;
}

/* Prevent header titles from wrapping */
#first-output-title, #second-output-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 40px); /* Leave space for buttons */
}

/* Ensure flex container layout doesn't squish the title */
.header h3 {
    flex: 1;
    min-width: 0; /* Important for text-overflow to work */
}

#input-pane {
    position: relative;
}

/* Settings button */
.icon-btn {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.icon-btn:hover {
    background-color: rgba(79, 118, 39, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(79, 118, 39, 0.2);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

/* Settings menu */
.settings-menu {
    position: fixed;
    background-color: white;
    border: 2px solid var(--line-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 150px;
    overflow: hidden;
}

.menu-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 14px;
}

.menu-item:hover {
    background-color: rgba(79, 118, 39, 0.1);
    color: var(--primary-color);
}

/* Add a separator between menu items */
.menu-item:not(:last-child) {
    border-bottom: 1px solid rgba(78, 110, 142, 0.1);
}

/* Style for logout menu item */
#logout-btn.menu-item {
    font-family: inherit;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #781b1c;
    border: none;
    border-radius: 0;
    width: 100%;
    text-align: left;
    background-color: transparent;
    margin: 0;
    font-weight: normal;
    box-shadow: none;
}

#logout-btn.menu-item:hover {
    background-color: rgba(120, 27, 28, 0.1);
    color: #d4380d;
    transform: none;
    box-shadow: none;
}

/* Modal window for history */
.modal-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 90%;
    height: 90%;
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid var(--line-color);
    border-radius: var(--border-radius);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: transparent;
    border-bottom: 2px solid var(--line-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--line-color);
    font-size: 18px;
    font-weight: 500;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--line-color);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(78, 110, 142, 0.1);
    color: var(--primary-color);
    transform: translateY(0);
    box-shadow: none;
}

.history-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: rgba(249, 249, 249, 0.5);
}

.history-item-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
  }

.history-buttons-container {
margin-left: auto;
display: flex;
}

.history-item {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--bull-color);
    padding-bottom: 20px;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--line-color);
}

.history-item-content {
    margin-bottom: 15px;
}

.history-item-original {
    background-color: rgba(78, 110, 142, 0.05);
    padding: 12px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.history-item-translation {
    background-color: white;
    padding: 12px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(78, 110, 142, 0.1);
}

.history-item-title {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--line-color);
    font-size: 14px;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    color: var(--line-color);
}


/* Pagination controls in modal header */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    margin-right: 15px;
}

.page-btn {
    background: transparent;
    border: none;
    color: var(--line-color);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background-color: rgba(78, 110, 142, 0.1);
    color: var(--primary-color);
    transform: translateY(0);
    box-shadow: none;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
    background-color: transparent;
}

.page-btn:disabled:hover {
    background-color: transparent;
    color: #ccc;
    border-color: #ccc;
    transform: none;
    box-shadow: none;
}

#page-indicator {
    font-size: 14px;
    color: var(--line-color);
    font-weight: 500;
}

/* Update modal header layout to accommodate pagination */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: transparent;
    border-bottom: 2px solid var(--line-color);
}


/* History copy buttons */
.history-copy-btn, .history-copy-all-btn {
    margin-left: 5px;
    padding: 5px 8px;
    font-size: 0.8em;
    cursor: pointer;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-copy-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}


.history-copy-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.history-copy-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    #container {
        flex-direction: column;
        height: auto;
        gap: 5px;
        /*min-height: 95dvh;*/
    }
    .translation-pane {
        width: 100%;
        height: auto;
        min-height: 1dvh;
        flex-grow: 0;
        flex-basis: auto;
    }
    #input-pane {
        min-height: 60dvh;
    }
    #first-output-pane {
        min-height: 0px;
    }
    #second-output-pane {
        min-height: 0px;
    }
    #message {
        min-height: 25dvh;
        height: auto;
    }
    #controls {
        flex-direction: column;
        align-items: flex-start;
    }
    .language-selector {
        margin-bottom: 10px;
        width: 100%;
    }
    .radio-group {
        flex-wrap: wrap;
    }
    #buttons {
        width: 100%;
    }
    button {
        padding: 8px 15px;
    }
    
    /* Mobile styles for collapsed panes */
    .translation-pane.collapsed {
        min-height: 50px;
        width: 100%;
        flex: 0 0 auto;
    }
    
    /* Adjust toggle switches for mobile */
    .toggle-switch {
        width: 36px;
        height: 20px;
    }
    
    .slider:before {
        height: 14px;
        width: 14px;
    }
    
    input:checked + .slider:before {
        transform: translateX(16px);
    }
    
    /* Override content styles in mobile */
    #first-output-pane .content,
    #second-output-pane .content {
        max-height: 20dvh;
        min-height: unset;
        flex-grow: 0;
        flex-basis: auto;
    }
    
    .history-item {
        margin-bottom: 25px;
        border-bottom: 2px solid var(--bull-color);
        padding-bottom: 25px;
    }
   
    .settings-menu {
        right: 20px;
    }
    
    .modal-content {
        width: 95%;
        height: 95%;
    }
    
    .status-message {
        flex-shrink: 0;
    }

    .modal-content {
        width: 98%;
        height: 98%;
    }
}

/* Copy all button style - for both panes and history */
.copy-all-btn {
    margin-right: 10px;
}


/* Ensure copy buttons are properly aligned in history items */
.title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Style to ensure proper spacing between buttons */
.pane-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
