/* ============================================================ CALCI FRAMEWORK — Design System v1.0 ============================================================ */ /* ── TOKENS ─────────────────────────────────────────────── */ :root { --calci-blue: #1565C0; --calci-blue-dark: #0D47A1; --calci-blue-hover: #1251A3; --calci-blue-light: #E3F2FD; --calci-blue-mid: #1976D2; --calci-green: #2E7D32; --calci-green-bg:#E8F5E9; --calci-amber: #E65100; --calci-amber-bg:#FFF3E0; --calci-red: #C62828; --calci-red-bg: #FFEBEE; --calci-purple: #6A1B9A; --calci-purple-bg:#F3E5F5; --calci-teal: #00695C; --calci-teal-bg: #E0F2F1; --calci-bg: #F0F4F8; --calci-surface: #FFFFFF; --calci-surface-alt: #F8FAFC; --calci-border: #E2E8F0; --calci-border-focus: #1565C0; --calci-text: #1A202C; --calci-text-2: #4A5568; --calci-text-3: #718096; --calci-radius-sm: 6px; --calci-radius: 10px; --calci-radius-lg: 16px; --calci-radius-xl: 20px; --calci-shadow-sm: 0 1px 3px rgba(0,0,0,.08); --calci-shadow: 0 4px 12px rgba(0,0,0,.10); --calci-shadow-lg: 0 8px 24px rgba(0,0,0,.12); --calci-font: -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, sans-serif; --calci-mono: \'SFMono-Regular\', Consolas, monospace; --calci-transition: 0.18s ease; } /* ── CALCULATOR CONTAINER ───────────────────────────────── */ .calci-wrap { font-family: var(--calci-font); color: var(--calci-text); background: var(--calci-surface); border-radius: var(--calci-radius-lg); overflow: hidden; } /* ── HEADER ─────────────────────────────────────────────── */ .calci-header { background: linear-gradient(135deg, var(--calci-blue) 0%, var(--calci-blue-mid) 100%); color: #fff; padding: 20px 24px; display: flex; align-items: center; gap: 16px; border-radius: var(--calci-radius-lg) var(--calci-radius-lg) 0 0; } .calci-header__icon { width: 48px; height: 48px; background: rgba(255,255,255,.18); border-radius: var(--calci-radius); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; } .calci-header__title { font-size: 1.35rem; font-weight: 700; margin: 0 0 2px; line-height: 1.2; } .calci-header__subtitle { font-size: .82rem; opacity: .82; margin: 0; line-height: 1.4; } /* ── BODY / LAYOUT ──────────────────────────────────────── */ .calci-body { padding: 24px; } .calci-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; } @media (max-width: 680px) { .calci-row { grid-template-columns: 1fr; } .calci-body { padding: 16px; } } .calci-col { min-width: 0; } .calci-section { margin-bottom: 24px; } .calci-section:last-child { margin-bottom: 0; } /* ── SECTION TITLE ──────────────────────────────────────── */ .calci-section-title { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--calci-text-3); margin: 0 0 14px; } /* ── INPUT GROUP ────────────────────────────────────────── */ .calci-input-group { margin-bottom: 18px; } .calci-input-group:last-child { margin-bottom: 0; } .calci-label { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 500; color: var(--calci-text-2); margin-bottom: 6px; } .calci-label__value { font-weight: 700; color: var(--calci-blue); font-size: .88rem; } /* ── SLIDER ─────────────────────────────────────────────── */ .calci-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 3px; background: var(--calci-border); outline: none; margin: 8px 0 4px; cursor: pointer; transition: var(--calci-transition); } .calci-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--calci-blue); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(21,101,192,.4); cursor: pointer; transition: transform var(--calci-transition), box-shadow var(--calci-transition); } .calci-slider::-webkit-slider-thumb:hover { transform: scale(1.15); box-shadow: 0 2px 8px rgba(21,101,192,.5); } .calci-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--calci-blue); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(21,101,192,.4); cursor: pointer; } .calci-slider-ticks { display: flex; justify-content: space-between; font-size: .68rem; color: var(--calci-text-3); margin-top: 2px; } /* ── TEXT / NUMBER INPUT ────────────────────────────────── */ .calci-input { width: 100%; padding: 9px 12px; font-size: .92rem; font-family: var(--calci-font); color: var(--calci-text); background: var(--calci-surface); border: 1.5px solid var(--calci-border); border-radius: var(--calci-radius-sm); outline: none; box-sizing: border-box; transition: border-color var(--calci-transition), box-shadow var(--calci-transition); } .calci-input:focus { border-color: var(--calci-border-focus); box-shadow: 0 0 0 3px rgba(21,101,192,.12); } .calci-input-addon { display: flex; align-items: center; border: 1.5px solid var(--calci-border); border-radius: var(--calci-radius-sm); overflow: hidden; transition: border-color var(--calci-transition), box-shadow var(--calci-transition); } .calci-input-addon:focus-within { border-color: var(--calci-border-focus); box-shadow: 0 0 0 3px rgba(21,101,192,.12); } .calci-input-addon__prefix, .calci-input-addon__suffix { padding: 9px 10px; font-size: .82rem; font-weight: 600; color: var(--calci-text-3); background: var(--calci-surface-alt); border-right: 1.5px solid var(--calci-border); white-space: nowrap; flex-shrink: 0; } .calci-input-addon__suffix { border-right: none; border-left: 1.5px solid var(--calci-border); } .calci-input-addon .calci-input { border: none; border-radius: 0; box-shadow: none; } .calci-input-addon .calci-input:focus { box-shadow: none; } /* ── SELECT ─────────────────────────────────────────────── */ .calci-select { width: 100%; padding: 9px 32px 9px 12px; font-size: .92rem; font-family: var(--calci-font); color: var(--calci-text); background: var(--calci-surface) url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'10\' height=\'6\'%3E%3Cpath d=\'M0 0l5 6 5-6z\' fill=\'%234A5568\'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1.5px solid var(--calci-border); border-radius: var(--calci-radius-sm); outline: none; -webkit-appearance: none; appearance: none; cursor: pointer; box-sizing: border-box; transition: border-color var(--calci-transition); } .calci-select:focus { border-color: var(--calci-border-focus); box-shadow: 0 0 0 3px rgba(21,101,192,.12); } /* ── TABS ───────────────────────────────────────────────── */ .calci-tabs { display: flex; background: var(--calci-surface-alt); border: 1.5px solid var(--calci-border); border-radius: var(--calci-radius-sm); padding: 3px; gap: 2px; margin-bottom: 16px; } .calci-tab { flex: 1; padding: 7px 12px; font-size: .82rem; font-weight: 600; color: var(--calci-text-2); background: transparent; border: none; border-radius: calc(var(--calci-radius-sm) - 2px); cursor: pointer; transition: all var(--calci-transition); text-align: center; } .calci-tab:hover { color: var(--calci-blue); } .calci-tab.is-active { background: var(--calci-blue); color: #fff; box-shadow: var(--calci-shadow-sm); } /* ── BUTTONS ────────────────────────────────────────────── */ .calci-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; font-size: .88rem; font-weight: 600; font-family: var(--calci-font); border: none; border-radius: var(--calci-radius-sm); cursor: pointer; text-decoration: none; transition: all var(--calci-transition); white-space: nowrap; line-height: 1; } .calci-btn--primary { background: var(--calci-blue); color: #fff; } .calci-btn--primary:hover { background: var(--calci-blue-hover); box-shadow: 0 4px 12px rgba(21,101,192,.3); transform: translateY(-1px); } .calci-btn--secondary { background: var(--calci-surface-alt); color: var(--calci-text-2); border: 1.5px solid var(--calci-border); } .calci-btn--secondary:hover { background: var(--calci-blue-light); color: var(--calci-blue); border-color: var(--calci-blue); } .calci-btn--ghost { background: transparent; color: var(--calci-blue); border: 1.5px solid var(--calci-blue); } .calci-btn--ghost:hover { background: var(--calci-blue-light); } .calci-btn--sm { padding: 6px 14px; font-size: .78rem; } .calci-btn--lg { padding: 13px 28px; font-size: .95rem; border-radius: var(--calci-radius); } .calci-btn--full { width: 100%; } .calci-btn-group { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; } /* ── RESULTS SECTION ────────────────────────────────────── */ .calci-results { background: var(--calci-surface-alt); border-radius: var(--calci-radius); padding: 20px; } .calci-results-title { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--calci-text-3); display: flex; align-items: center; gap: 6px; margin: 0 0 16px; } .calci-results-title::before { content: ""; display: block; width: 3px; height: 14px; background: var(--calci-blue); border-radius: 2px; } /* ── RESULT CARDS ───────────────────────────────────────── */ .calci-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; } .calci-card { background: var(--calci-surface); border-radius: var(--calci-radius); padding: 14px 16px; border-left: 4px solid var(--calci-blue); box-shadow: var(--calci-shadow-sm); } .calci-card--blue { border-left-color: var(--calci-blue); } .calci-card--green { border-left-color: var(--calci-green); } .calci-card--amber { border-left-color: var(--calci-amber); } .calci-card--red { border-left-color: var(--calci-red); } .calci-card--purple { border-left-color: var(--calci-purple); } .calci-card--teal { border-left-color: var(--calci-teal); } .calci-card__label { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--calci-text-3); margin-bottom: 4px; } .calci-card__value { font-size: 1.45rem; font-weight: 800; color: var(--calci-text); line-height: 1.1; margin-bottom: 2px; } .calci-card--blue .calci-card__value { color: var(--calci-blue); } .calci-card--green .calci-card__value { color: var(--calci-green); } .calci-card--amber .calci-card__value { color: var(--calci-amber); } .calci-card--red .calci-card__value { color: var(--calci-red); } .calci-card--purple .calci-card__value { color: var(--calci-purple); } .calci-card--teal .calci-card__value { color: var(--calci-teal); } .calci-card__sub { font-size: .72rem; color: var(--calci-text-3); } /* ── TABLE ──────────────────────────────────────────────── */ .calci-table-wrap { overflow-x: auto; border-radius: var(--calci-radius); border: 1px solid var(--calci-border); margin-top: 16px; } .calci-table { width: 100%; border-collapse: collapse; font-size: .84rem; } .calci-table thead th { background: var(--calci-blue); color: #fff; padding: 10px 14px; text-align: left; font-weight: 700; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; } .calci-table thead th:first-child { border-radius: var(--calci-radius) 0 0 0; } .calci-table thead th:last-child { border-radius: 0 var(--calci-radius) 0 0; } .calci-table tbody tr { border-bottom: 1px solid var(--calci-border); transition: background var(--calci-transition); } .calci-table tbody tr:last-child { border-bottom: none; } .calci-table tbody tr:nth-child(even) { background: var(--calci-surface-alt); } .calci-table tbody tr:hover { background: var(--calci-blue-light); } .calci-table tbody td { padding: 9px 14px; color: var(--calci-text); vertical-align: middle; } .calci-table tbody td:first-child { font-weight: 600; color: var(--calci-text-2); } .calci-table tfoot td { padding: 10px 14px; font-weight: 700; background: var(--calci-surface-alt); border-top: 2px solid var(--calci-border); } .calci-table .num { text-align: right; font-variant-numeric: tabular-nums; } /* ── CHART ──────────────────────────────────────────────── */ .calci-chart-wrap { position: relative; margin-top: 16px; background: var(--calci-surface); border-radius: var(--calci-radius); padding: 16px; border: 1px solid var(--calci-border); } .calci-chart-title { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--calci-text-3); margin-bottom: 12px; } .calci-chart-wrap canvas { max-width: 100%; } /* ── PROGRESS BAR ───────────────────────────────────────── */ .calci-progress { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--calci-border); margin: 8px 0; } .calci-progress__bar { height: 100%; border-radius: 5px; transition: width 0.4s ease; } .calci-progress__bar--blue { background: var(--calci-blue); } .calci-progress__bar--green { background: var(--calci-green); } .calci-progress__bar--red { background: var(--calci-red); } .calci-progress__bar--amber { background: var(--calci-amber); } /* ── DIVIDER ────────────────────────────────────────────── */ .calci-divider { border: none; border-top: 1px solid var(--calci-border); margin: 20px 0; } /* ── ACTION BAR ─────────────────────────────────────────── */ .calci-action-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--calci-border); background: var(--calci-surface-alt); } .calci-action-bar__label { font-size: .78rem; color: var(--calci-text-3); font-weight: 500; margin-right: 4px; } /* ── EMBED MODAL ────────────────────────────────────────── */ .calci-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; align-items: center; justify-content: center; } .calci-modal-overlay.is-open { display: flex; } .calci-modal { background: var(--calci-surface); border-radius: var(--calci-radius-lg); padding: 28px; width: min(480px, 92vw); box-shadow: var(--calci-shadow-lg); position: relative; } .calci-modal__title { font-size: 1rem; font-weight: 700; color: var(--calci-text); margin: 0 0 6px; } .calci-modal__sub { font-size: .8rem; color: var(--calci-text-3); margin: 0 0 16px; } .calci-modal__code { width: 100%; padding: 10px 12px; font-size: .78rem; font-family: var(--calci-mono); background: var(--calci-surface-alt); border: 1px solid var(--calci-border); border-radius: var(--calci-radius-sm); color: var(--calci-text-2); resize: none; box-sizing: border-box; min-height: 80px; } .calci-modal__close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--calci-text-3); line-height: 1; padding: 4px; } .calci-modal__close:hover { color: var(--calci-text); } .calci-modal__actions { display: flex; gap: 8px; margin-top: 14px; } /* ── FAQ ────────────────────────────────────────────────── */ .calci-faq { margin-top: 32px; } .calci-faq__title { font-size: 1.05rem; font-weight: 700; color: var(--calci-text); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; } .calci-faq__title::before { content: ""; display: block; width: 4px; height: 18px; background: var(--calci-blue); border-radius: 2px; } .calci-faq-item { border: 1px solid var(--calci-border); border-radius: var(--calci-radius-sm); margin-bottom: 6px; overflow: hidden; } .calci-faq-item summary { padding: 13px 16px; font-size: .88rem; font-weight: 600; color: var(--calci-text); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; background: var(--calci-surface); transition: background var(--calci-transition); } .calci-faq-item summary::-webkit-details-marker { display: none; } .calci-faq-item summary::after { content: "+"; font-size: 1.1rem; color: var(--calci-blue); font-weight: 700; flex-shrink: 0; } .calci-faq-item[open] summary::after { content: "\2212"; } .calci-faq-item summary:hover { background: var(--calci-blue-light); } .calci-faq-item[open] summary { background: var(--calci-blue-light); color: var(--calci-blue); } .calci-faq-item__body { padding: 12px 16px; font-size: .85rem; line-height: 1.6; color: var(--calci-text-2); background: var(--calci-surface-alt); border-top: 1px solid var(--calci-border); } /* ── RELATED TOOLS ──────────────────────────────────────── */ .calci-related { margin-top: 28px; } .calci-related__title { font-size: 1.05rem; font-weight: 700; color: var(--calci-text); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; } .calci-related__title::before { content: ""; display: block; width: 4px; height: 18px; background: var(--calci-blue); border-radius: 2px; } .calci-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; } .calci-related__card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--calci-surface); border: 1.5px solid var(--calci-border); border-radius: var(--calci-radius-sm); text-decoration: none; color: var(--calci-text); font-size: .84rem; font-weight: 600; transition: all var(--calci-transition); } .calci-related__card:hover { border-color: var(--calci-blue); color: var(--calci-blue); box-shadow: var(--calci-shadow-sm); transform: translateY(-1px); } .calci-related__card .icon { font-size: 1.2rem; flex-shrink: 0; } /* ── BADGE / TAG ────────────────────────────────────────── */ .calci-badge { display: inline-block; padding: 2px 8px; font-size: .68rem; font-weight: 700; border-radius: 20px; letter-spacing: .04em; text-transform: uppercase; } .calci-badge--blue { background: var(--calci-blue-light); color: var(--calci-blue); } .calci-badge--green { background: var(--calci-green-bg); color: var(--calci-green); } .calci-badge--amber { background: var(--calci-amber-bg); color: var(--calci-amber); } .calci-badge--red { background: var(--calci-red-bg); color: var(--calci-red); } /* ── TOOLTIP ────────────────────────────────────────────── */ .calci-tooltip { position: relative; display: inline-flex; align-items: center; } .calci-tooltip__icon { width: 15px; height: 15px; border-radius: 50%; background: var(--calci-text-3); color: #fff; font-size: .6rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: help; margin-left: 4px; flex-shrink: 0; } .calci-tooltip__text { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--calci-text); color: #fff; font-size: .72rem; padding: 6px 10px; border-radius: var(--calci-radius-sm); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity var(--calci-transition); z-index: 100; max-width: 220px; white-space: normal; text-align: center; line-height: 1.4; } .calci-tooltip:hover .calci-tooltip__text { opacity: 1; } /* ── COPY SUCCESS FEEDBACK ──────────────────────────────── */ .calci-copy-feedback { font-size: .72rem; color: var(--calci-green); font-weight: 600; opacity: 0; transition: opacity .2s; } .calci-copy-feedback.is-visible { opacity: 1; } /* ── PRINT / PDF STYLES ─────────────────────────────────── */ @media print { .calci-action-bar, .calci-modal-overlay, .calci-related { display: none !important; } .calci-wrap { box-shadow: none; } } /* ── RESPONSIVE ─────────────────────────────────────────── */ @media (max-width: 480px) { .calci-header { padding: 16px; gap: 12px; } .calci-header__icon { width: 40px; height: 40px; font-size: 18px; } .calci-header__title { font-size: 1.1rem; } .calci-cards { grid-template-columns: 1fr 1fr; } .calci-related__grid { grid-template-columns: 1fr 1fr; } } '; }, 20 ); /* ── INLINE CORE JS ──────────────────────────────────────── */ add_action( 'wp_footer', function() { if ( ! is_singular() || is_front_page() ) return; echo ' '; }, 20 ); http://calci.in/post-sitemap.xml 2026-08-11T10:37:12+00:00 http://calci.in/page-sitemap.xml 2026-08-14T11:54:52+00:00 http://calci.in/category-sitemap.xml 2026-08-11T10:37:12+00:00