:root {
    --pressure-primary: #2563eb;
    --pressure-primary-dark: #1d4ed8;
    --pressure-accent: #0ea5e9;
    --pressure-surface: #ffffff;
    --pressure-border: #e2e8f0;
    --pressure-text: #0f172a;
    --pressure-muted: #64748b;
    --pressure-success: #22c55e;
    --pressure-radius-lg: 1.5rem;
    --pressure-radius-md: 1rem;
    --pressure-radius-sm: 0.75rem;
    --pressure-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --pressure-shadow-lg: 0 30px 60px rgba(37, 99, 235, 0.12);

    /* related to and faqs component variables */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --border: #e2e8f0;
    --surface: #ffffff;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
    --surface-muted: #f4f6fb;
    --text-main: #0f172a;
    --text-muted: #64748b;
}

.pressure-page {
    padding: clamp(1rem, 2vw, 2rem) 0;
}

.pressure-hero {
    text-align: center;
    margin-bottom: clamp(1.5rem, 2vw, 2.25rem);
}

.pressure-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--pressure-text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.pressure-subtitle {
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    color: var(--pressure-muted);
    max-width: 860px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}


.pressure-converter {
    background: var(--pressure-surface);
    border-radius: var(--pressure-radius-lg);
    padding: clamp(1.75rem, 3vw, 2.75rem);
    box-shadow: var(--pressure-shadow-lg);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.pressure-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.75rem, 3vw, 2.75rem);
    align-items: start;
}

.units-table-container {
    margin-top: clamp(2rem, 3vw, 2.5rem);
    grid-column: 1 / -1;
}

.pressure-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pressure-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: var(--pressure-text);
    font-size: 1rem;
}

.tooltip {
    position: relative;
    display: inline-flex;
}

.tooltip-trigger {
    border: none;
    background: rgba(37, 99, 235, 0.12);
    color: var(--pressure-primary);
    border-radius: 999px;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pressure-text);
    color: #ffffff;
    padding: 0.8rem;
    border-radius: var(--pressure-radius-sm);
    width: 240px;
    font-size: 0.85rem;
    line-height: 1.4;
    transition: opacity 0.2s ease;
    z-index: 40;
}

.tooltip:hover .tooltip-text,
.tooltip:focus-within .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.field-input {
    width: 100%;
    padding: clamp(0.95rem, 2.5vw, 1.15rem);
    border: 2px solid var(--pressure-border);
    border-radius: var(--pressure-radius-md);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pressure-text);
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field-input:focus {
    outline: none;
    border-color: var(--pressure-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    background: #ffffff;
}

.select-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.unit-select {
    appearance: none;
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: var(--pressure-radius-md);
    border: 2px solid var(--pressure-border);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pressure-text);
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath fill='%2364748b' d='M5.23 7.21a1 1 0 0 1 1.4-.18L10 9.58l3.37-2.55a1 1 0 1 1 1.22 1.58l-4 3a1 1 0 0 1-1.22 0l-4-3a1 1 0 0 1-.14-1.4Z'/%3E%3C/svg%3E") no-repeat right 1.25rem center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.unit-select:focus {
    outline: none;
    border-color: var(--pressure-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.primary-btn {
    flex: 1 1 200px;
    background: linear-gradient(135deg, var(--pressure-primary) 0%, var(--pressure-primary-dark) 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--pressure-radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.25);
}

.secondary-btn {
    flex: 1 1 160px;
    background: #ffffff;
    color: var(--pressure-primary);
    border: 2px solid rgba(37, 99, 235, 0.35);
    padding: 1rem 1.5rem;
    border-radius: var(--pressure-radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.secondary-btn:hover {
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

.pressure-support {
    font-size: 0.9rem;
    color: var(--pressure-muted);
    line-height: 1.5;
}

.result-card {
    background: linear-gradient(135deg, var(--pressure-primary) 0%, var(--pressure-primary-dark) 100%);
    color: #ffffff;
    border-radius: var(--pressure-radius-lg);
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 30px 40px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.4), transparent 55%);
    pointer-events: none;
}

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

.result-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.result-number {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    display: inline-flex;
    align-items: baseline;
    gap: 0.75rem;
    position: relative;
}

.result-number::after {
    content: attr(data-unit);
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.result-equation {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.conversion-formula {
    background: rgba(15, 23, 42, 0.45);
    border-radius: var(--pressure-radius-md);
    padding: 1rem;
    margin-top: 1rem;
    border-left: 3px solid rgba(37, 99, 235, 0.6);
}

.formula-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.copy-buttons-row .copy-btn {
    flex: 1 1 auto;
    min-width: 140px;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--pressure-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.copy-btn[data-state="copied"] {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.6);
}

.share-container {
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--pressure-radius-md);
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.share-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.2);
}

.share-x { background: #111827; }
.share-facebook { background: #1877f2; }
.share-linkedin { background: #0a66c2; }
.share-reddit { background: #ff4500; }
.share-telegram { background: #229ed9; }
.share-whatsapp { background: #25d366; color: #0f172a; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.breakdown-card {
    background: var(--pressure-surface);
    border-radius: var(--pressure-radius-lg);
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--pressure-shadow-sm);
}

.breakdown-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pressure-text);
    margin-bottom: 1rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.breakdown-table thead {
    background: #f8fafc;
    border-bottom: 2px solid var(--pressure-border);
}

.breakdown-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--pressure-text);
    font-size: 0.95rem;
    white-space: nowrap;
}

.breakdown-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--pressure-border);
    color: var(--pressure-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.breakdown-table tbody tr:hover {
    background: #f8fafc;
}

.breakdown-table tbody tr:last-child td {
    border-bottom: none;
}

.pressure-conversion-table-section {
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.pressure-table-card {
    background: var(--pressure-surface);
    border-radius: var(--pressure-radius-lg);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--pressure-shadow-sm);
}

.pressure-table-card h2 {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--pressure-text);
    margin-bottom: 0.75rem;
}

.pressure-table-card p {
    font-size: 1rem;
    color: var(--pressure-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.pressure-conversion-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.pressure-conversion-table thead {
    background: #f8fafc;
    border-bottom: 2px solid var(--pressure-border);
}

.pressure-conversion-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 700;
    color: var(--pressure-text);
    font-size: 0.9rem;
    white-space: nowrap;
}

.pressure-conversion-table th:first-child {
    padding-left: 1rem;
}

.pressure-conversion-table th:last-child {
    padding-right: 1rem;
}

.pressure-conversion-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--pressure-border);
    color: var(--pressure-text);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.pressure-conversion-table td:first-child {
    padding-left: 1rem;
    font-weight: 700;
}

.pressure-conversion-table td:last-child {
    padding-right: 1rem;
}

.pressure-conversion-table tbody tr:hover {
    background: #f8fafc;
}

.pressure-conversion-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 991px) {
    .pressure-converter {
        padding: 1.75rem;
    }
}

@media (max-width: 768px) {
    .pressure-page {
        padding: 2rem 0 3rem;
    }

    .breadcrumbs {
        margin-bottom: 1.25rem;
    }

    .breadcrumbs-link,
    .breadcrumbs-current {
        font-size: 0.85rem;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .copy-buttons-row {
        flex-direction: column;
    }

    .copy-buttons-row .copy-btn {
        width: 100%;
    }

    .share-buttons {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .pressure-table-card {
        padding: 1.5rem;
    }

    .pressure-conversion-table th,
    .pressure-conversion-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .pressure-conversion-table th:first-child,
    .pressure-conversion-table td:first-child {
        padding-left: 0.75rem;
    }

    .pressure-conversion-table th:last-child,
    .pressure-conversion-table td:last-child {
        padding-right: 0.75rem;
    }

    .breakdown-table th,
    .breakdown-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

}

@media (max-width: 576px) {
    .pressure-converter {
        padding: 1.5rem;
    }

    .result-card {
        border-radius: 1.25rem;
    }

    .breadcrumbs-link,
    .breadcrumbs-current {
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
