:root {
    --primary: #1a73e8;
    /* Google Blue */
    --primary-dark: #174ea6;
    --primary-light: #e8f0fe;
    --secondary: #f8f9fa;
    --accent: #4285f4;
    --success: #1e8e3e;
    --error: #d93025;

    --bg-dark: #f8f9fa;
    --bg-card: #ffffff;
    --bg-input: #ffffff;

    --text-primary: #3c4043;
    --text-secondary: #5f6368;
    --text-muted: #70757a;
    --text-on-dark: #ffffff;

    --border: #dadce0;
    --border-hover: #bdc1c6;
    --shadow: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 1px 3.125px rgba(60, 64, 67, .15);
    --shadow-lg: 0 1px 3px 0 rgba(60, 64, 67, .3), 0 4px 8px 3px rgba(60, 64, 67, .15);

    --radius: 8px;
    --radius-lg: 24px;
    --radius-pill: 100px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Google Sans', 'Inter', sans-serif;
    background: #ffffff;
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

/* ===== Background ===== */
/* Removed colorful background gradient */
.background-gradient {
    display: none;
}

/* ===== Container ===== */
.prompt-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.prompt-card:focus-within {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    padding: 0 32px 16px 32px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    object-fit: cover;
}

.btn-signout {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.btn-signout:hover {
    background: var(--secondary);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-pill-outline {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    padding: 0 16px;
    height: 32px;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-pill-outline:hover {
    background: var(--secondary);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-icon {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: rgba(60, 64, 67, 0.08);
    color: var(--text-primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.product-name {
    font-size: 22px;
    font-weight: 400;
    color: #5f6368;
    font-family: 'Google Sans', 'Roboto', sans-serif;
    letter-spacing: -0.01em;
}

.header-search-container {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 720px;
    margin: 0 40px;
}

.header-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.context-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-left: 1px solid var(--border);
    margin-left: 12px;
    padding-left: 16px;
}

.context-indicator #contextStats {
    white-space: nowrap;
}

.context-indicator .btn-icon {
    font-size: 1rem;
    width: 28px;
    height: 28px;
}

.form-context-indicator {
    margin-top: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    width: 100%;
    justify-content: space-between;
}

.form-context-indicator #contextStats {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-context-indicator #contextStats strong {
    color: var(--primary);
    font-weight: 600;
}

.logo svg {
    filter: drop-shadow(0 4px 12px hsla(250, 70%, 50%, 0.4));
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
    transition: var(--transition);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: pulse 2s ease-in-out infinite;
}

.status-indicator.connected {
    border-color: rgba(30, 142, 62, 0.3);
    background-color: rgba(30, 142, 62, 0.04);
}

.status-indicator.connected .status-dot {
    background: #1e8e3e;
    /* Vibrate Google Green */
    box-shadow: 0 0 8px rgba(30, 142, 62, 0.4);
}

.status-indicator.connected .status-text {
    color: #1e8e3e;
    font-weight: 500;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ===== Cards ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: none;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 1px 3.125px rgba(60, 64, 67, .15);
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* ===== Selectors ===== */
.selectors-container {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .selectors-container {
        grid-template-columns: 1fr;
    }
}

.selector-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selector-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.selectors-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.selector-group {
    flex: 1;
    min-width: 200px;
}

.selector-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.account-search {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: var(--transition);
    font-family: inherit;
}

.account-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.account-search::placeholder {
    color: var(--text-muted);
}

.form-select,
.selector {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    transition: var(--transition);
}

select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: hsla(230, 25%, 18%, 0.5);
    box-shadow: 0 0 0 4px hsla(250, 70%, 50%, 0.1);
}

select option {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 1rem;
}

/* ===== Form ===== */
.input-group {
    margin-bottom: 1.5rem;
}

textarea {
    width: 100%;
    padding: 1.5rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    border-radius: 0;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 500;
    resize: none;
    transition: var(--transition);
}

textarea:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

textarea::placeholder {
    color: var(--text-muted);
}

/* ===== Buttons ===== */
.button-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0 24px;
    height: 36px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 1px 3.125px rgba(60, 64, 67, .15);
}

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

.btn-primary.loading {
    pointer-events: none;
}

.btn-primary.loading .btn-text {
    opacity: 0;
}

.btn-primary.loading .btn-loader {
    opacity: 1;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    opacity: 0;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: hsla(230, 25%, 20%, 0.5);
    border-color: hsla(0, 0%, 100%, 0.2);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}

/* ===== Suggestions ===== */
.suggestions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.suggestions-title {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip {
    padding: 0.5rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.chip:hover {
    background: hsla(250, 70%, 50%, 0.2);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ===== Response ===== */
/* ===== Results Container ===== */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
}

.response-card {
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.query-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    background: transparent;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.query-header .icon {
    font-size: 1.1rem;
}

.query-header .text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    font-style: italic;
}

.response-content {
    background: transparent;
    border: none;
    padding: 0;
    white-space: pre-wrap;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    overflow-y: visible;
}

/* Ensure markdown elements look good */
.response-content h1,
.response-content h2,
.response-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.response-content ul,
.response-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.response-content code {
    background: hsla(0, 0%, 100%, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'SF Mono', monospace;
}

.response-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== Error ===== */
.error-message {
    background: hsla(0, 70%, 50%, 0.1);
    border: 1px solid hsla(0, 70%, 50%, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: start;
}

.error-icon {
    font-size: 1.5rem;
}

.error-content h3 {
    color: var(--error);
    margin-bottom: 0.5rem;
}

.error-content p {
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--secondary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .logo h1 {
        font-size: 1.25rem;
    }

    .card {
        padding: 1.5rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-input);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    /* Removed colorful background gradient */
    background: hsla(0, 0%, 100%, 0.2);
}

/* Skeleton Loader */
.skeleton-loader {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 1rem 0;
}

.skeleton-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.6;
    }
}


.query-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    background: transparent;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    color: var(--text-primary);
    /* Ensure text is visible */
}

.background-gradient {
    display: none;
}

/* ===== Knowledge Base Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    /* Flex when active */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.kb-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-input);
    border-bottom: 1px solid var(--border);
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb-item {
    cursor: pointer;
    color: var(--primary);
}

.breadcrumb-item:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

.crumb {
    cursor: pointer;
    color: var(--text-secondary);
}

.crumb:hover {
    color: var(--primary);
    text-decoration: underline;
}

.kb-list {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kb-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: hsla(230, 25%, 15%, 0.3);
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: default;
    transition: var(--transition);
}

.kb-item:hover {
    background: hsla(230, 25%, 20%, 0.5);
    border-color: var(--border);
}

.kb-item.drag-over {
    background: hsla(250, 70%, 50%, 0.2);
    border: 2px dashed var(--primary);
}

.kb-item .item-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.kb-item .icon {
    font-size: 1.25rem;
}

.kb-item .name {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.kb-item.folder .name {
    font-weight: 500;
    color: var(--accent);
    cursor: pointer;
}

.kb-item .item-select {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.kb-item .item-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.kb-item:hover .item-actions {
    opacity: 1;
}

.kb-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: right;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
    font-style: italic;
}

/* ===== Custom Dialog Modal ===== */
.custom-dialog {
    max-width: 400px;
    height: auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: var(--bg-input);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsla(250, 70%, 50%, 0.2);
}

/* Ensure Custom Modal is above KB Modal */
#customModal {
    z-index: 2000;
}

/* ===== Feedback UI ===== */
.feedback-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.feedback-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feedback-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.btn-feedback {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.btn-feedback:hover {
    background: hsla(0, 0%, 100%, 0.1);
    color: var(--text-primary);
}

.btn-feedback.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-feedback.active-negative {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

.feedback-comment-area {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}

.feedback-comment-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    resize: none;
    height: 60px;
}

/* ===== History UI ===== */
.history-dialog {
    max-width: 600px;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.history-item:hover {
    background: hsla(0, 0%, 100%, 0.05);
    border-color: var(--primary);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.history-item-prompt {
    font-weight: 500;
    color: var(--primary);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ===== Pagination ===== */
.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 8px 12px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
    font-family: inherit;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(60, 64, 67, 0.08);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
}