:root {
    --clb-primary: #2563eb;
    --clb-primary-dark: #1d4ed8;
    --clb-accent: #0ea5e9;
    --clb-surface: #ffffff;
    --clb-border: #e2e8f0;
    --clb-text: #0f172a;
    --clb-muted: #64748b;
    --clb-success: #22c55e;
    --clb-warning: #f59e0b;
    --clb-radius-lg: 1.5rem;
    --clb-radius-md: 1rem;
    --clb-radius-sm: 0.75rem;
    --clb-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --clb-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;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.clb-hero {
    margin-bottom: clamp(1.5rem, 2vw, 2.25rem);
}

.clb-title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    color: var(--clb-text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.clb-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--clb-muted);
    max-width: 860px;
    margin: 0 0 1.75rem;
    line-height: 1.7;
}

.clb-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.clb-stat {
    background: var(--clb-surface);
    border-radius: var(--clb-radius-md);
    padding: 1rem 1.5rem;
    border: 1px solid var(--clb-border);
    box-shadow: var(--clb-shadow-sm);
    text-align: center;
    min-width: 160px;
}

.clb-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clb-primary);
    margin-bottom: 0.25rem;
}

.clb-stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--clb-muted);
    font-weight: 500;
}

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

.clb-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(--clb-text);
    font-size: 1rem;
}

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

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

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clb-text);
    color: #ffffff;
    padding: 0.8rem;
    border-radius: var(--clb-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;
}

.skill-select {
    appearance: none;
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: var(--clb-radius-md);
    border: 2px solid var(--clb-border);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--clb-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;
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

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

.primary-btn {
    flex: 1 1 200px;
    background: linear-gradient(135deg, var(--clb-primary) 0%, var(--clb-primary-dark) 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--clb-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(--clb-primary);
    border: 2px solid rgba(37, 99, 235, 0.35);
    padding: 1rem 1.5rem;
    border-radius: var(--clb-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);
}

.result-card {
    background: #216f57;
    color: #ffffff;
    border-radius: var(--clb-radius-lg);
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 30px 40px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.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;
}

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

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

.result-item {
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--clb-radius-sm);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-item-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.result-item-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

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

.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(--clb-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;
    cursor: pointer;
}

.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: #2e9777;
    border-radius: var(--clb-radius-md);
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.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; }

.clb-reference-table {
    margin-top: clamp(2rem, 3vw, 2.5rem);
    background: #f8fafc;
    border-radius: var(--clb-radius-lg);
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

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

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

.conversion-table {
    width: 100%;
    border-collapse: collapse;
    display: table;
    table-layout: auto;
}

.conversion-table thead {
    background: #ffffff;
    border-bottom: 2px solid var(--clb-border);
    display: table-header-group;
}

.conversion-table tbody {
    display: table-row-group;
}

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

.conversion-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--clb-border);
    color: var(--clb-text);
    font-weight: 600;
    white-space: nowrap;
}

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

.clb-content-section {
    margin-top: clamp(3rem, 5vw, 4rem);
}

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

.clb-content-card h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--clb-text);
    margin-bottom: 1.5rem;
}

.clb-content-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--clb-text);
    margin-top: 2.25rem;
    margin-bottom: 1rem;
}

.clb-content-card p {
    font-size: 1rem;
    color: var(--clb-muted);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.clb-visual-guide {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: var(--clb-radius-md);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.visual-guide-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clb-text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.clb-level-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.level-bar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.level-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--clb-text);
    min-width: 60px;
    text-align: right;
}

.level-bar {
    height: 36px;
    width: var(--bar-width, 50%);
    background: linear-gradient(90deg, var(--clb-primary) 0%, var(--clb-accent) 100%);
    border-radius: var(--clb-radius-sm);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
    transition: width 0.6s ease;
}

.level-bar.clb-highlight {
    background: linear-gradient(90deg, var(--clb-success) 0%, #16a34a 100%);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

.bar-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.clb-warning-box {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--clb-warning);
    border-radius: 0 var(--clb-radius-sm) var(--clb-radius-sm) 0;
}

.clb-warning-box strong {
    display: block;
    font-size: 1rem;
    color: var(--clb-text);
    margin-bottom: 0.5rem;
}

.clb-warning-box p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--clb-muted);
    line-height: 1.6;
}

.clb-use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.use-case-card {
    background: #f8fafc;
    border-radius: var(--clb-radius-md);
    border: 1px solid var(--clb-border);
    overflow: hidden;
}

.use-case-header {
    background: var(--clb-primary);
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.use-case-body {
    padding: 1.25rem;
}

.use-case-body p {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.use-case-body p:last-child {
    margin-bottom: 0;
}

.use-case-body strong {
    color: var(--clb-text);
}

.clb-accuracy-note {
    margin: 2.5rem 0 0;
    padding: 1.25rem 1.5rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--clb-radius-md);
}

.accuracy-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #16a34a;
    font-weight: 700;
    font-size: 1rem;
}

.accuracy-header i {
    font-size: 1.1rem;
}

.clb-accuracy-note p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--clb-muted);
    line-height: 1.6;
}

@media (max-width: 991px) {
    .clb-converter {
        padding: 1.75rem;
    }
    
    .clb-stats {
        gap: 0.75rem;
    }
    
    .clb-stat {
        min-width: 140px;
        padding: 0.85rem 1.25rem;
    }
}

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

    .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));
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .clb-stats {
        flex-direction: column;
        align-items: stretch;
    }
    
    .clb-stat {
        min-width: auto;
    }
    
    .level-bar-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .level-label {
        text-align: left;
    }
    
    .level-bar {
        width: var(--bar-width, 50%);
        min-width: 150px;
    }
    
    .clb-use-cases {
        grid-template-columns: 1fr;
    }
}

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

    .result-card {
        border-radius: 1.25rem;
    }
    
    .clb-stat-value {
        font-size: 1.25rem;
    }
}

@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;
    }
}
.clb-table {
    overflow-x: auto;
}