/* ==========================================================================
   TUI Content Quality - Stylesheet
   ========================================================================== */

/* CSS Variables - TUI Branding */
:root {
    --tui-deep-blue: #1b115c;
    --tui-sky-blue: #70cbf4;
    --tui-energy-blue: #3567f6;
    --tui-white: #ffffff;
    --tui-red: #d40e14;

    --tui-deep-blue-10: rgba(27, 17, 92, 0.1);
    --tui-deep-blue-20: rgba(27, 17, 92, 0.2);
    --tui-deep-blue-40: rgba(27, 17, 92, 0.4);
    --tui-deep-blue-60: rgba(27, 17, 92, 0.6);

    --text-color: #1b115c;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-page: #f3f4f6;

    --sidebar-width: 260px;
    --header-height: 64px;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Font faces (placeholders - actual fonts to be uploaded) */
@font-face {
    font-family: 'Ambit';
    src: url('../fonts/Ambit-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Ambit';
    src: url('../fonts/Ambit-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Ambit';
    src: url('../fonts/Ambit-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Ambit';
    src: url('../fonts/Ambit-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'TUI Type Light';
    src: url('../fonts/TUIType-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

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

html {
    font-size: 14px;
    line-height: 1.5;
}

body {
    font-family: 'Ambit', 'Roboto Medium', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--tui-energy-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Ambit', 'Roboto Medium', sans-serif;
    font-weight: 700;
    color: var(--tui-deep-blue);
}

p {
    font-family: 'TUI Type Light', 'Ambit', sans-serif;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.app-layout {
    display: flex;
    min-height: 100vh;
}

.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

.main-content {
    padding: 2rem;
    flex: 1;
}

/* Auth Layout */
.auth-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--tui-deep-blue) 0%, var(--tui-energy-blue) 100%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}

.auth-card {
    background: var(--tui-white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.auth-logo {
    margin-bottom: 1.5rem;
}

.auth-logo .logo {
    height: 48px;
}

.auth-card h2 {
    margin-bottom: 1.5rem;
}

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

.auth-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.auth-links a {
    color: var(--tui-energy-blue);
}

/* Minimal Layout */
.minimal-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-page);
}

.minimal-wrapper {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container .logo {
    height: 40px;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--tui-deep-blue);
    color: var(--tui-white);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--tui-deep-blue-40);
}

.sidebar-logo {
    height: 28px;
    /* filter: brightness(0) invert(1); */
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sidebar-nav li a:hover,
.sidebar-nav li.active a {
    color: var(--tui-white);
    background: var(--tui-deep-blue-40);
    text-decoration: none;
}

.sidebar-nav li.active a {
    border-left: 3px solid var(--tui-sky-blue);
}

.sidebar-nav .nav-section {
    padding: 1rem 1.5rem 0.4rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
}

.nav-icon {
    font-size: 0.7rem;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--tui-deep-blue-40);
}

.user-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.logout-link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.logout-link:hover {
    color: var(--tui-white);
}

/* ==========================================================================
   Header
   ========================================================================== */

.top-header {
    height: var(--header-height);
    background: var(--tui-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: var(--shadow);
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.project-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    background: var(--tui-deep-blue-10);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
}

.project-label {
    color: var(--text-muted);
}

.change-project {
    font-size: 1.1rem;
    color: var(--tui-energy-blue);
    text-decoration: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--tui-energy-blue);
    color: var(--tui-white);
    border-color: var(--tui-energy-blue);
}

.btn-primary:hover {
    background: var(--tui-deep-blue);
    border-color: var(--tui-deep-blue);
}

.btn-secondary {
    background: var(--tui-sky-blue);
    color: var(--tui-deep-blue);
    border-color: var(--tui-sky-blue);
}

.btn-secondary:hover {
    background: #5bb8e3;
}

.btn-success {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--tui-red);
    color: white;
    border-color: var(--tui-red);
}

.btn-danger:hover {
    background: #b00c11;
}

.btn-outline {
    background: transparent;
    color: var(--tui-deep-blue);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--tui-deep-blue);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-inline-edit {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0 0.25rem;
    color: var(--tui-energy-blue);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--tui-energy-blue);
    box-shadow: 0 0 0 2px rgba(53, 103, 246, 0.15);
}

.form-group small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group-half {
    flex: 1;
    min-width: 140px;
}

.form-group-third {
    flex: 1;
    min-width: 120px;
}

.form-group-quarter {
    flex: 1;
    min-width: 100px;
}

.input-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-range input {
    width: 50%;
}

.inline-form {
    display: inline;
}

.inline-date-input {
    padding: 0.25rem;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Alerts
   ========================================================================== */

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-primary {
    background: var(--tui-energy-blue);
    color: white;
}

.badge-secondary {
    background: var(--border-color);
    color: var(--text-muted);
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-muted {
    background: #f3f4f6;
    color: #6b7280;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.table-container {
    background: var(--tui-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--tui-deep-blue-10);
}

.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tui-deep-blue);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: var(--bg-light);
}

.url-cell {
    max-width: 400px;
}

.page-title-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.page-title-container .page-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.3;
}

.page-title-container .page-url {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    direction: rtl;
    text-align: left;
    unicode-bidi: plaintext;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.page-title-container .page-url:hover {
    color: var(--tui-energy-blue);
    text-decoration: underline;
}

.actions-cell {
    white-space: nowrap;
    /* display: flex; */
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* Sortable columns */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.sortable:hover {
    background: var(--tui-deep-blue-10);
}

.sort-indicator {
    margin-left: 0.25rem;
    font-size: 0.75rem;
    color: var(--tui-energy-blue);
}

/* Checkbox cells */
.checkbox-cell {
    width: 40px;
    text-align: center;
}

.checkbox-cell input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* Bulk actions bar */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--tui-sky-blue);
    border-radius: var(--radius);
    margin-top: 0.5rem;
}

.bulk-count {
    font-weight: 600;
    color: var(--tui-deep-blue);
}

/* Word count override indicator */
.word-count-override {
    font-weight: 600;
    color: var(--tui-energy-blue);
    cursor: pointer;
}

.override-badge {
    display: inline-block;
    width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    margin-left: 0.25rem;
    vertical-align: middle;
    cursor: pointer;
}

.no-data {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem !important;
}

/* Page Type Chart */
.page-type-chart-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

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

.chart-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chart-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.page-type-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 80px;
    padding: 0.5rem 0;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
}

.chart-bar:hover .bar-fill {
    opacity: 0.8;
    transform: scaleY(1.05);
}

.bar-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 50px;
    position: relative;
}

.bar-fill {
    width: 100%;
    background: var(--tui-sky-blue);
    border-radius: 3px 3px 0 0;
    transition: all 0.2s ease;
    transform-origin: bottom;
    position: relative;
}

.chart-bar.active .bar-fill {
    background: var(--tui-energy-blue);
}

.bar-count {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.bar-label {
    margin-top: 0.25rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-bar:hover .bar-label {
    color: var(--text-color);
    font-weight: 500;
}

/* ==========================================================================
   Dashboard
   ========================================================================== */

.dashboard-grid {
    display: grid;
    gap: 2rem;
}

.stats-section h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--tui-white);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--tui-energy-blue);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--tui-deep-blue);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.quick-actions {
    margin-top: 2rem;
}

.quick-actions h3 {
    margin-bottom: 0.75rem;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Project Selection
   ========================================================================== */

.select-project-container {
    max-width: 600px;
    margin: 0 auto;
}

.select-project-container h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.select-project-container > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-card {
    cursor: pointer;
}

.project-card input[type="radio"] {
    display: none;
}

.project-card-content {
    background: var(--tui-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
}

.project-card input:checked + .project-card-content {
    border-color: var(--tui-energy-blue);
    background: rgba(53, 103, 246, 0.05);
}

.project-card-content h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.project-domain {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Search
   ========================================================================== */

.search-bar {
    position: relative;
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--tui-white);
}

.search-input:focus {
    outline: none;
    border-color: var(--tui-energy-blue);
    box-shadow: 0 0 0 2px rgba(53, 103, 246, 0.15);
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--tui-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
}

.search-results-dropdown ul {
    list-style: none;
}

.search-results-dropdown li {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.search-results-dropdown li:last-child {
    border-bottom: none;
}

.search-results-dropdown li a {
    display: block;
    font-size: 0.82rem;
    word-break: break-all;
}

.search-meta {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Advanced Search */
.advanced-search {
    background: var(--tui-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.advanced-search summary {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--tui-deep-blue);
}

.advanced-search-form {
    padding: 0 1rem 1rem;
}

/* ==========================================================================
   Modals
   ========================================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--tui-white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

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

.modal-header h3 {
    font-size: 1.1rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 1.5rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.pagination ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.pagination li a {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-color);
    text-decoration: none;
}

.pagination li a:hover {
    background: var(--tui-deep-blue-10);
    text-decoration: none;
}

.pagination li.active a {
    background: var(--tui-energy-blue);
    color: white;
    border-color: var(--tui-energy-blue);
}

/* ==========================================================================
   Report Header
   ========================================================================== */

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

.report-actions {
    display: flex;
    gap: 0.5rem;
}

.report-description {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   Admin
   ========================================================================== */

.admin-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.checkbox-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.85rem;
}

/* ==========================================================================
   Segments
   ========================================================================== */

.segments-container {
    max-width: 900px;
}

.segment-row {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   Percentage Change Bar Chart
   ========================================================================== */

.pct-change-cell {
    min-width: 120px;
}

.pct-change-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.pct-change-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--tui-sky-blue), var(--tui-energy-blue));
    transition: width 0.3s ease;
    opacity: 0.3;
}

.pct-change-value {
    position: relative;
    z-index: 1;
    padding: 0 0.5rem;
    font-size: 0.9rem;
    color: var(--tui-deep-blue);
}

/* ==========================================================================
   Sync Session Status
   ========================================================================== */

.sync-session-status {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--tui-deep-blue-10);
    border-left: 4px solid var(--tui-energy-blue);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--tui-deep-blue);
}

.sync-session-status strong {
    color: var(--tui-energy-blue);
}

/* ==========================================================================
   GSC Clicks YoY Comparison
   ========================================================================== */

.gsc-clicks-current {
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.gsc-change {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.gsc-clicks-prev-year {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.text-green {
    color: #10b981;
}

.text-red {
    color: #ef4444;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
