/* TMC Portal — Cloudflare-like layout, no hover effects */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.tmc-portal-page,
.tmc-portal-dashboard-page {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Entry page */
.tmc-portal-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: #f9f9f9;
}

.tmc-portal-card {
    width: 100%;
    max-width: 420px;
    background: #f9f9f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px 36px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.tmc-portal-card-logo {
    margin-bottom: 24px;
}

.tmc-portal-card-logo .logo img {
    height: 44px;
    width: auto;
    display: block;
}

.tmc-portal-card h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.tmc-portal-card .tmc-portal-sub {
    margin: 0 0 28px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #64748b;
}

.tmc-portal-notice {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.45;
}

.tmc-portal-notice--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.tmc-portal-notice--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.tmc-portal-notice--info {
    background: #e8f0fe;
    border: 1px solid #c6dafc;
    color: #1a3a6b;
    margin-bottom: 24px;
}

.tmc-portal-notice--info a {
    color: #4285F4;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.tmc-portal-tool-card .tmc-portal-btn--inline {
    margin-top: 8px;
}

.tmc-portal-field {
    margin-bottom: 18px;
}

.tmc-portal-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

.tmc-portal-field input[type="email"],
.tmc-portal-field input[type="password"],
.tmc-portal-field input[type="text"],
.tmc-portal-field input[type="url"],
.tmc-portal-field input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9375rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #1d1d1d;
    box-sizing: border-box;
}

.tmc-portal-field input:focus {
    outline: 2px solid #4285F4;
    outline-offset: 0;
    border-color: #4285F4;
}

.tmc-portal-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #475569;
}

.tmc-portal-btn {
    display: block;
    width: 100%;
    padding: 11px 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #4285F4;
    color: #fff;
}

.tmc-portal-links {
    margin-top: 22px;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
}

.tmc-portal-links a {
    color: #4285F4;
    text-decoration: none;
    font-weight: 500;
}

.tmc-portal-links .tmc-portal-sep {
    margin: 0 6px;
    color: #cbd5e1;
}

/* Dashboard — Cloudflare light sidebar */
body.page-template-template-portal-dashboard #masthead,
body.page-template-template-portal-dashboard-php #masthead {
    display: none;
}

body.page-template-template-portal-dashboard #colophon,
body.page-template-template-portal-dashboard-php #colophon {
    margin-left: 240px;
}

.tmc-portal-dashboard-page {
    min-height: 100vh;
    background: #f9f9f9;
    padding: 0;
    margin: 0;
}

.tmc-portal-shell {
    min-height: 100vh;
}

.tmc-portal-left {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: 240px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
    border-right: 1px solid #e0e0e0;
}

body.admin-bar.page-template-template-portal-dashboard .tmc-portal-left,
body.admin-bar.page-template-template-portal-dashboard-php .tmc-portal-left {
    top: 32px;
    height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar.page-template-template-portal-dashboard .tmc-portal-left,
    body.admin-bar.page-template-template-portal-dashboard-php .tmc-portal-left {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.tmc-portal-logo-bar {
    flex-shrink: 0;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.tmc-portal-logo {
    display: block;
    text-decoration: none;
    color: #1d1d1d;
}

.tmc-portal-logo img,
.tmc-portal-logo .tmc-site-logo {
    height: 44px;
    width: auto;
    display: block;
}

.tmc-portal-sidebar {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background: #f9f9f9;
    color: #1d1d1d;
    display: flex;
    flex-direction: column;
    padding: 12px 0 20px;
}

.tmc-portal-sidebar-brand {
    padding: 0 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 12px;
}

.tmc-portal-sidebar-brand strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1d1d1d;
}

.tmc-portal-sidebar-brand span {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #666666;
    word-break: break-all;
}

.tmc-portal-nav-section {
    padding: 0 8px;
    flex: 1;
}

.tmc-portal-nav-label {
    display: block;
    padding: 8px 12px 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666666;
}

.tmc-portal-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tmc-portal-nav a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1d1d1d;
    text-decoration: none;
}

.tmc-portal-nav a.is-active {
    background: #ebebeb;
    font-weight: 600;
}

.tmc-portal-sidebar-foot {
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.tmc-portal-credits-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666666;
    margin-bottom: 4px;
}

.tmc-portal-credits-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1d1d1d;
    margin-bottom: 12px;
}

.tmc-portal-sidebar-btn {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 8px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    box-sizing: border-box;
}

.tmc-portal-sidebar-btn--primary {
    background: #4285F4;
    color: #ffffff;
    border: 1px solid #4285F4;
}

.tmc-portal-sidebar-btn--primary.is-active {
    background: #3367D6;
    border-color: #3367D6;
}

.tmc-portal-sidebar-btn--ghost {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    color: #1d1d1d;
}

.tmc-portal-main {
    margin-left: 240px;
    flex: 1;
    padding: 32px 40px;
    background: #f9f9f9;
    min-width: 0;
    min-height: 100vh;
    box-sizing: border-box;
}

.tmc-portal-main h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1d;
    letter-spacing: -0.01em;
}

.tmc-portal-main .tmc-portal-lead {
    margin: 0 0 28px;
    font-size: 0.9375rem;
    color: #666666;
    max-width: 640px;
    line-height: 1.6;
}

.tmc-portal-tool-card {
    max-width: 720px;
    padding: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

.tmc-portal-tool-card h2 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1d;
}

.tmc-portal-tool-card p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #666666;
}

.tmc-portal-field textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #ffffff;
    color: #1d1d1d;
    box-sizing: border-box;
    resize: vertical;
    min-height: 120px;
}

.tmc-portal-field textarea:focus {
    outline: 2px solid #4285F4;
    outline-offset: 0;
    border-color: #4285F4;
}

.tmc-portal-field-hint {
    margin: 0 0 8px;
    font-size: 0.8125rem;
    color: #666666;
    line-height: 1.45;
}

.tmc-portal-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin: 20px 0;
    padding: 12px 14px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #666666;
}

.tmc-portal-job-meta strong {
    color: #1d1d1d;
}

.tmc-portal-btn--inline {
    width: auto;
    display: inline-block;
    padding: 9px 18px;
    background: #4285F4;
    color: #ffffff;
    font-size: 0.875rem;
}

.tmc-portal-notice {
    margin: 0 0 20px;
    max-width: 720px;
}

/* Pricing packs in dashboard */
.tmc-portal-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 960px;
    margin-bottom: 24px;
}

.tmc-portal-price-card {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

.tmc-portal-price-card.is-featured {
    border-color: #4285F4;
}

.tmc-portal-price-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666666;
    margin-bottom: 8px;
}

.tmc-portal-price-card h2 {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1d1d1d;
}

.tmc-portal-price-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1d1d1d;
    margin-bottom: 16px;
}

.tmc-portal-price-features {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.tmc-portal-price-features li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    font-size: 0.8125rem;
    color: #666666;
    line-height: 1.45;
}

.tmc-portal-price-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666666;
}

.tmc-portal-price-btn {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    background: #4285F4;
    color: #ffffff;
    border: 1px solid #4285F4;
    box-sizing: border-box;
}

.tmc-portal-footnote {
    margin: 0 0 8px;
    font-size: 0.8125rem;
    color: #666666;
    max-width: 640px;
}

.tmc-portal-footnote a {
    color: #4285F4;
    text-decoration: none;
}

.tmc-portal-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    background: #ebebeb;
    color: #666666;
}

/* Jobs table */
.tmc-portal-jobs-section {
    margin-bottom: 32px;
}

.tmc-portal-create-section {
    margin-bottom: 24px;
    margin-top: 8px;
}

.tmc-portal-create-section.is-collapsed {
    margin-top: 0;
}

.tmc-portal-create-toggle {
    text-decoration: none;
    display: inline-block;
}

.tmc-portal-section-title {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1d;
}

.tmc-portal-empty {
    margin: 0 0 8px;
    font-size: 0.875rem;
    color: #666666;
}

.tmc-portal-table-wrap {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

.tmc-portal-jobs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.tmc-portal-jobs-table th,
.tmc-portal-jobs-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    color: #1d1d1d;
    vertical-align: top;
}

.tmc-portal-jobs-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #666666;
    background: #f9f9f9;
}

.tmc-portal-jobs-table tbody tr:last-child td {
    border-bottom: none;
}

.tmc-portal-jobs-table a {
    color: #4285F4;
    text-decoration: none;
    font-weight: 500;
}

/* Header portal block */
.tmc-header-portal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-left: 16px;
}

.tmc-header-portal-main a {
    font-weight: 600;
    font-size: 0.875rem;
    color: inherit;
    text-decoration: none;
}

.tmc-header-portal-sub {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
}

.tmc-header-portal-sub a {
    color: #4285F4;
    text-decoration: none;
}

.tmc-header-portal-sub .tmc-portal-sep {
    margin: 0 5px;
    color: #cbd5e1;
}

@media (max-width: 768px) {
    body.page-template-template-portal-dashboard #colophon,
    body.page-template-template-portal-dashboard-php #colophon {
        margin-left: 0;
    }

    .tmc-portal-left {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .tmc-portal-sidebar {
        overflow-y: visible;
        padding: 12px 0 16px;
    }

    .tmc-portal-main {
        margin-left: 0;
        padding: 24px 16px;
        min-height: 0;
    }

    .tmc-portal-pricing-grid {
        grid-template-columns: 1fr;
    }

    .tmc-header-portal {
        align-items: flex-start;
        margin-left: 0;
        margin-top: 12px;
    }
}
