:root {
    --primary: #0a84ff;
    --primary-hover: #0070e0;
    --bg-color: #f5f5f7;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --border-color: #e5e5ea;
    --danger: #ff3b30;
    --success: #34c759;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    padding: 60px 40px;
    margin: 0;
}

/* User Profile Header */
#user-profile-display {
    position: absolute;
    top: 20px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
}

.icon-btn:hover {
    color: var(--danger);
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

.btn-panel {
    display: flex;
    gap: 12px;
}

button.primary,
button.secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

button.primary {
    background-color: var(--primary);
    color: white;
}

button.primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

button.secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

button.secondary:hover {
    background-color: #f2f2f7;
}

/* Table */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.tabulator {
    border: none !important;
    background: transparent;
    font-size: 0.95rem;
}

.tabulator-header {
    border-bottom: 1px solid var(--border-color) !important;
}

.tabulator-col {
    background: #fbfbfd !important;
}

.tabulator-col-title {
    font-weight: 600 !important;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-top: 4px;
}

.tabulator-cell {
    padding: 12px !important;
}

/* Computed Cell highlight */
.computed-cell {
    background-color: #f8f8fb !important;
    font-weight: 600;
    color: var(--primary);
}

.footer-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

/* Toasts */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    min-width: 250px;
    padding: 14px 20px;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.success {
    background: rgba(52, 199, 89, 0.9);
    backdrop-filter: blur(10px);
}

.toast.error {
    background: rgba(255, 59, 48, 0.9);
    backdrop-filter: blur(10px);
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

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