﻿/* Base styles */
.tablegen-container * {
    box-sizing: border-box;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.tablegen-container {
    max-width: 1200px;
    /*margin: 0 auto;*/
    padding: 2rem;
    color: #333;
    background-color: #fff;
}

/* Cards, borders and surfaces */
.tablegen-card {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Typography */
.tablegen-title {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

/* Buttons */
.tablegen-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.42, 0, 0.58, 1);
    cursor: pointer;
}

.tablegen-button-primary {
    background-color: #1a85ff;
    color: white;
    border: none;
}

    .tablegen-button-primary:hover {
        background-color: #0369a1;
    }

.tablegen-button-secondary {
    background-color: #fff;
    color: #343434;
    border: 1px solid #e2e8f0;
}

    .tablegen-button-secondary:hover {
        background-color: #e2e8f0;
    }

/* Form controls */
.tablegen-input-group {
    margin-bottom: 1rem;
}

.tablegen-label {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}
.Tag-input {
    /*width: 100%;*/
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #334155;
    transition: border-color 0.2s ease;
}
.tablegen-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #334155;
    transition: border-color 0.2s ease;
}

    .tablegen-input:focus {
        outline: none;
        border-color: #1a85ff;
        box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
    }

.tablegen-checkbox {
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
}

/* Table specific styles */
.tablegen-table-controls {
    display: grid;
    /*grid-template-columns: 1fr;*/
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .tablegen-table-controls {
        /*grid-template-columns: 1fr 1fr;*/
    }
}

.tablegen-number-input-group {
    display: flex;
    align-items: center;
}

.tablegen-number-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

    .tablegen-number-button:first-child {
        border-radius: 0.5rem 0 0 0.5rem;
    }

    .tablegen-number-button:last-child {
        border-radius: 0 0.5rem 0.5rem 0;
    }

.tablegen-number-display {
    width: 3rem;
    height: 2rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    border-left: none;
    border-right: none;
    font-size: 0.875rem;
}

/* Tabs styling */
.tablegen-tabs {
    margin-bottom: 1.5rem;
}

.tablegen-tabs-list {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.tablegen-tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #343434;
    cursor: pointer;
    background-color: #fff;
}

.tablegen-tab-active {
    background-color: #1a85ff;
    color: #fff;
}


.tablegen-tab-panel {
    padding: 1.5rem 0;
}

    .tablegen-tab-panel[hidden] {
        display: none;
    }

/* Table preview */
.tablegen-preview-table {
    width: 100%;
    border-collapse: collapse;
}

    .tablegen-preview-table th,
    .tablegen-preview-table td {
        border: 1px solid #e2e8f0;
        padding: 0.5rem 1rem;
        text-align: left;
    }

    .tablegen-preview-table th {
        background-color: #f8fafc;
        font-weight: 500;
    }

/* Code display */
.tablegen-code-container {
    position: relative;
    background-color: #1e293b;
    color: #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.tablegen-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #0f172a;
}

.tablegen-code-copy-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: none;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .tablegen-code-copy-button:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

.tablegen-code-block {
    padding: 1rem;
    font-family: monospace;
    font-size: 0.875rem;
    white-space: pre-wrap;
    overflow-x: auto;
}

/* Simple tabs (for the simplified view in your screenshot) */
.tablegen-simple-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.tablegen-simple-tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    margin-right: 0.25rem;
    background-color: #f8fafc;
    color: #1a85ff;
}

    .tablegen-simple-tab.active {
        background-color: #fff;
        border-bottom: 1px solid #fff;
        margin-bottom: -1px;
        color: #333;
    }

/* Row and column controls (for the simplified view in your screenshot) */
.tablegen-row-column-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.tablegen-control-group {
    display: flex;
    flex-direction: column;
}

.tablegen-control-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.tablegen-stepper {
    display: flex;
    align-items: center;
}

.tablegen-stepper-button {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 1rem;
    cursor: pointer;
}

    .tablegen-stepper-button:first-child {
        border-radius: 0.25rem 0 0 0.25rem;
    }

    .tablegen-stepper-button:last-child {
        border-radius: 0 0.25rem 0.25rem 0;
    }

.tablegen-stepper-input {
    width: 3rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-left: none;
    border-right: none;
    height: 2rem;
}

/* Button styling matching your screenshot */
.tablegen-action-button {
    background-color: #1a85ff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.tablegen-action-button-secondary {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
}

/* Table editor styling */
.tablegen-table-editor {
    margin-top: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.tablegen-table-editor-row {
    display: flex;
}

.tablegen-table-editor-cell {
    flex: 1;
    padding: 0.25rem;
    min-width: 0;
}

    .tablegen-table-editor-cell input {
        width: 100%;
        padding: 0.5rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.25rem;
        font-size: 0.875rem;
    }

/* Button container */
.tablegen-button-container {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* Utilities */
.tablegen-flex {
    display: flex;
}

.tablegen-justify-end {
    justify-content: flex-end;
}

.tablegen-space-x-3 > * + * {
    margin-left: 0.75rem;
}

.tablegen-mt-6 {
    margin-top: 1.5rem;
}

.tablegen-mb-4 {
    margin-bottom: 1rem;
}

.tablegen-grid {
    display: grid;
}

.tablegen-grid-cols-3 {
    /*grid-template-columns: repeat(3, 1fr);*/
}

/* Toast notification */
.tablegen-toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background-color: #fff;
    color: #334155;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    max-width: 24rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tablegen-toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.tablegen-toast-message {
    margin-left: 0.75rem;
}

.tablegen-toast-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.tablegen-toast-description {
    font-size: 0.875rem;
    color: #64748b;
}
