/* ===== TEMPERATURE CONVERTER - CalcTechLab ===== */

/* App Container */
.temp-app {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== CARDS ===== */
.temp-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}
[data-bs-theme="dark"] .temp-card {
    background: #1e293b;
    border-color: #334155;
}
.temp-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.temp-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
[data-bs-theme="dark"] .temp-card-title {
    color: #f1f5f9;
}

.temp-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

/* ===== HERO CARD ===== */
.temp-hero-card {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 30%, #eab308 60%, #22c55e 80%, #3b82f6 100%);
    color: white;
    padding: 2rem;
    border: none;
}

.temp-hero-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.temp-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.temp-hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    color: white;
}

.temp-hero-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0.25rem 0 0;
}

/* ===== CONVERTER GRID ===== */
.temp-converter-grid {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.temp-input-group {
    flex: 1;
    min-width: 0;
}

.temp-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.temp-input-row {
    display: flex;
    gap: 0.5rem;
}

.temp-input {
    flex: 1;
    padding: 0.75rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
[data-bs-theme="dark"] .temp-input {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}
.temp-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: white;
}
[data-bs-theme="dark"] .temp-input:focus {
    background: #1e293b;
}

.temp-result-input {
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border-color: #3b82f6;
    color: #1e40af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
[data-bs-theme="dark"] .temp-result-input {
    background: linear-gradient(135deg, #1e3a5f, #1a3a2a);
    color: #93c5fd;
}

.temp-select {
    padding: 0.75rem 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    cursor: pointer;
    min-width: 120px;
    max-width: 140px;
    transition: all 0.2s;
}
[data-bs-theme="dark"] .temp-select {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}
.temp-select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Swap Button */
.temp-swap-wrap {
    padding-bottom: 0.25rem;
    flex-shrink: 0;
}

.temp-swap-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: white;
    color: #3b82f6;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
[data-bs-theme="dark"] .temp-swap-btn {
    background: #1e293b;
    border-color: #334155;
}
.temp-swap-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: rotate(180deg);
}

/* ===== WEATHER CONTEXT ===== */
.temp-weather-context {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #f0f9ff, #f0fdf4);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 1px solid #e0f2fe;
}
[data-bs-theme="dark"] .temp-weather-context {
    background: linear-gradient(135deg, #0c2d48, #0c3524);
    border-color: #1e3a5f;
}

.temp-weather-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.temp-weather-info {
    min-width: 0;
}

.temp-weather-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}
[data-bs-theme="dark"] .temp-weather-label {
    color: #f1f5f9;
}

.temp-weather-desc {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
}

/* ===== ACTIONS ROW ===== */
.temp-actions-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.temp-action-btn {
    padding: 0.45rem 0.85rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
[data-bs-theme="dark"] .temp-action-btn {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}
.temp-action-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}
[data-bs-theme="dark"] .temp-action-btn:hover {
    background: #1e3a5f;
}

/* ===== ALL SCALES MATRIX ===== */
.temp-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.temp-matrix-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.2s;
    position: relative;
    min-width: 0;
}
[data-bs-theme="dark"] .temp-matrix-item {
    background: #0f172a;
    border-color: #334155;
}
.temp-matrix-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.temp-matrix-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.temp-matrix-celsius .temp-matrix-icon { background: linear-gradient(135deg, #ef4444, #dc2626); }
.temp-matrix-fahrenheit .temp-matrix-icon { background: linear-gradient(135deg, #f97316, #ea580c); }
.temp-matrix-kelvin .temp-matrix-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.temp-matrix-rankine .temp-matrix-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.temp-matrix-reaumur .temp-matrix-icon { background: linear-gradient(135deg, #22c55e, #16a34a); }
.temp-matrix-delisle .temp-matrix-icon { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.temp-matrix-data {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.temp-matrix-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
[data-bs-theme="dark"] .temp-matrix-value {
    color: #f1f5f9;
}

.temp-matrix-name {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.temp-matrix-copy {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s;
    flex-shrink: 0;
}
.temp-matrix-copy:hover {
    background: #e2e8f0;
    color: #3b82f6;
}
[data-bs-theme="dark"] .temp-matrix-copy:hover {
    background: #334155;
}

/* ===== COMPARISON CHART ===== */
.temp-chart-container {
    width: 100%;
    height: 280px;
    position: relative;
}

.temp-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ===== FORMULAS GRID ===== */
.temp-formulas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.temp-formula-card {
    padding: 0.875rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    overflow: hidden;
}
[data-bs-theme="dark"] .temp-formula-card {
    background: #0f172a;
    border-color: #334155;
}

.temp-formula-card-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.temp-formula-card-formula {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
    word-break: break-all;
}
[data-bs-theme="dark"] .temp-formula-card-formula {
    color: #f1f5f9;
}

.temp-formula-card-example {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #3b82f6;
    font-weight: 600;
    word-break: break-all;
}

/* ===== REFERENCE TABLE ===== */
.temp-reference-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
}

.temp-reference-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8rem;
}

.temp-reference-table thead th {
    padding: 0.6rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background: #f1f5f9;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
    position: sticky;
    top: 0;
}
[data-bs-theme="dark"] .temp-reference-table thead th {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

.temp-reference-table tbody td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    white-space: nowrap;
}
[data-bs-theme="dark"] .temp-reference-table tbody td {
    border-color: #1e293b;
    color: #cbd5e1;
}

.temp-reference-table tbody td:first-child {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.8rem;
}
[data-bs-theme="dark"] .temp-reference-table tbody td:first-child {
    color: #f1f5f9;
}

.temp-reference-table tbody tr:hover {
    background: #f8fafc;
}
[data-bs-theme="dark"] .temp-reference-table tbody tr:hover {
    background: #0f172a;
}

/* Reference row colors */
.temp-ref-extreme-cold td:first-child { border-left: 4px solid #3b82f6; }
.temp-ref-cold td:first-child { border-left: 4px solid #06b6d4; }
.temp-ref-cool td:first-child { border-left: 4px solid #22c55e; }
.temp-ref-mild td:first-child { border-left: 4px solid #84cc16; }
.temp-ref-warm td:first-child { border-left: 4px solid #f97316; }
.temp-ref-hot td:first-child { border-left: 4px solid #ef4444; }
.temp-ref-extreme-hot td:first-child { border-left: 4px solid #dc2626; }

/* ===== HISTORY ===== */
.temp-history-empty {
    text-align: center;
    padding: 1.5rem;
    color: #94a3b8;
}
.temp-history-empty i {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.4;
}
.temp-history-empty p {
    margin: 0;
    font-size: 0.8rem;
}

.temp-history-list {
    max-height: 250px;
    overflow-y: auto;
}

.temp-history-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.25rem;
}
[data-bs-theme="dark"] .temp-history-item {
    border-color: #1e293b;
}

.temp-history-from {
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #1e293b;
    font-size: 0.75rem;
}
[data-bs-theme="dark"] .temp-history-from {
    color: #f1f5f9;
}

.temp-history-arrow {
    color: #94a3b8;
    margin: 0 0.35rem;
    font-size: 0.7rem;
}

.temp-history-to {
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #3b82f6;
    font-size: 0.75rem;
}

.temp-history-time {
    font-size: 0.6rem;
    color: #94a3b8;
    white-space: nowrap;
    margin-left: auto;
}

.temp-clear-history-btn {
    width: 100%;
    padding: 0.45rem;
    border: none;
    background: transparent;
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}
.temp-clear-history-btn:hover {
    background: #fef2f2;
}
[data-bs-theme="dark"] .temp-clear-history-btn:hover {
    background: #3b1111;
}

/* ===== THERMOMETER ===== */
.temp-thermo-card {
    position: sticky;
    top: 80px;
}

.temp-thermometer-wrap {
    display: flex;
    justify-content: center;
    padding: 1rem 0 0.5rem;
}

.temp-thermometer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 220px;
    width: 100px;
}

.temp-thermo-scale {
    position: absolute;
    left: -40px;
    top: 0;
    bottom: 50px;
    width: 40px;
}

.temp-thermo-mark {
    position: absolute;
    right: 4px;
    font-size: 0.55rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: #94a3b8;
    transform: translateY(50%);
    white-space: nowrap;
}

.temp-thermo-tube {
    position: relative;
    width: 28px;
    height: calc(100% - 50px);
    background: #e2e8f0;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    border: 3px solid #cbd5e1;
    border-bottom: none;
}
[data-bs-theme="dark"] .temp-thermo-tube {
    background: #334155;
    border-color: #475569;
}

.temp-thermo-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75%;
    background: linear-gradient(to top, #ef4444, #f97316, #eab308);
    border-radius: 11px 11px 0 0;
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.6s ease;
}

.temp-thermo-marker {
    position: absolute;
    right: -6px;
    height: 2px;
    width: calc(100% + 12px);
    background: #1e293b;
    transition: bottom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    bottom: 75%;
    z-index: 2;
}
[data-bs-theme="dark"] .temp-thermo-marker {
    background: #f1f5f9;
}

.temp-thermo-marker-label {
    position: absolute;
    left: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: #1e293b;
    white-space: nowrap;
    background: #fbbf24;
    padding: 1px 6px;
    border-radius: 4px;
}
[data-bs-theme="dark"] .temp-thermo-marker-label {
    color: #1e293b;
}

.temp-thermo-ref {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    border-top: 1px dashed rgba(100, 116, 139, 0.3);
    z-index: 1;
}

.temp-thermo-ref-label {
    position: absolute;
    right: -48px;
    top: -7px;
    font-size: 0.45rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

.temp-thermo-bulb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 3px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -3px;
    z-index: 3;
    transition: background 0.6s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    flex-shrink: 0;
}
[data-bs-theme="dark"] .temp-thermo-bulb {
    border-color: #475569;
}

.temp-thermo-bulb-value {
    font-size: 0.6rem;
    font-weight: 800;
    color: white;
    font-family: 'JetBrains Mono', monospace;
}

/* ===== PRESETS ===== */
.temp-presets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.temp-preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 0.35rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    gap: 0.15rem;
}
[data-bs-theme="dark"] .temp-preset-btn {
    background: #0f172a;
    border-color: #334155;
}
.temp-preset-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
}
[data-bs-theme="dark"] .temp-preset-btn:hover {
    background: #1e3a5f;
}

.temp-preset-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.temp-preset-label {
    font-size: 0.7rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: #1e293b;
    line-height: 1.2;
}
[data-bs-theme="dark"] .temp-preset-label {
    color: #f1f5f9;
}

.temp-preset-name {
    font-size: 0.5rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

/* ===== LIVE FORMULA ===== */
.temp-live-formula {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}
[data-bs-theme="dark"] .temp-live-formula {
    background: #0f172a;
    border-color: #334155;
}

.temp-formula-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}
[data-bs-theme="dark"] .temp-formula-display {
    border-color: #334155;
}

.temp-formula-from {
    font-size: 1rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: #ef4444;
    word-break: break-all;
}

.temp-formula-arrow {
    color: #94a3b8;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.temp-formula-to {
    font-size: 1rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: #3b82f6;
    word-break: break-all;
}

.temp-formula-steps {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.temp-formula-step {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #64748b;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    word-break: break-all;
}

.temp-formula-result {
    background: #eff6ff;
    color: #1e40af;
    font-weight: 700;
}
[data-bs-theme="dark"] .temp-formula-result {
    background: #1e3a5f;
    color: #93c5fd;
}

/* ===== KEYBOARD SHORTCUTS ===== */
.temp-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.temp-shortcut {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: #64748b;
}

.temp-shortcut kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 0.15rem 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
[data-bs-theme="dark"] .temp-shortcut kbd {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

/* ===== SHARE ===== */
.temp-share-row {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.temp-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.temp-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ===== INFO GRID ===== */
.temp-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.temp-info-item {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
[data-bs-theme="dark"] .temp-info-item {
    background: #0f172a;
    border-color: #334155;
}

.temp-info-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.temp-info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.temp-info-celsius .temp-info-badge { background: linear-gradient(135deg, #ef4444, #dc2626); }
.temp-info-fahrenheit .temp-info-badge { background: linear-gradient(135deg, #f97316, #ea580c); }
.temp-info-kelvin .temp-info-badge { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.temp-info-rankine .temp-info-badge { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.temp-info-reaumur .temp-info-badge { background: linear-gradient(135deg, #22c55e, #16a34a); }
.temp-info-delisle .temp-info-badge { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.temp-info-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
[data-bs-theme="dark"] .temp-info-header h3 {
    color: #f1f5f9;
}

.temp-info-item p {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ===== FAQ ===== */
.temp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.temp-faq-item {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
[data-bs-theme="dark"] .temp-faq-item {
    background: #0f172a;
    border-color: #334155;
}

.temp-faq-item h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.4rem;
}
[data-bs-theme="dark"] .temp-faq-item h3 {
    color: #f1f5f9;
}

.temp-faq-item p {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .temp-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
    .temp-info-grid {
        grid-template-columns: 1fr;
    }
    .temp-formulas-grid {
        grid-template-columns: 1fr;
    }
    .temp-thermo-card {
        position: static;
    }
    .temp-thermometer {
        height: 200px;
    }
}

@media (max-width: 767.98px) {
    .temp-card {
        padding: 1.25rem;
    }
    .temp-converter-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .temp-swap-wrap {
        display: flex;
        justify-content: center;
        padding: 0;
    }
    .temp-swap-btn {
        transform: rotate(90deg);
    }
    .temp-swap-btn:hover {
        transform: rotate(270deg);
    }
    .temp-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
    .temp-presets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .temp-hero-header {
        flex-direction: column;
        text-align: center;
    }
    .temp-hero-title {
        font-size: 1.3rem;
    }
    .temp-input-row {
        flex-direction: column;
    }
    .temp-select {
        min-width: auto;
        max-width: none;
    }
    .temp-chart-container {
        height: 220px;
    }
    .temp-thermometer {
        height: 180px;
        width: 90px;
    }
    .temp-thermo-scale {
        left: -35px;
    }
    .temp-thermo-bulb {
        width: 38px;
        height: 38px;
    }
    .temp-thermo-tube {
        width: 24px;
    }
    .temp-thermo-ref-label {
        right: -42px;
        font-size: 0.4rem;
    }
}

@media (max-width: 575.98px) {
    .temp-matrix {
        grid-template-columns: 1fr;
    }
    .temp-presets-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
    }
    .temp-preset-btn {
        padding: 0.5rem 0.25rem;
    }
    .temp-preset-icon {
        font-size: 1rem;
    }
    .temp-preset-label {
        font-size: 0.6rem;
    }
}
