/* ============================================================ Metal Web Joist Span Calculator — style.css ============================================================ */ /* Reset & base */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Segoe UI', Arial, sans-serif; background: #eef2f7; color: #2c3e50; min-height: 100vh; display: flex; flex-direction: column; } /* ===== HEADER ===== */ .header { background: linear-gradient(135deg, #1a2a4a 0%, #2c4a7c 60%, #1a6a9a 100%); color: #fff; padding: 18px 28px 14px; box-shadow: 0 3px 12px rgba(0,0,0,0.3); } .header-inner { max-width: 1100px; margin: 0 auto; } .header-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; } .logo-block { display: flex; align-items: center; gap: 12px; } .logo-icon { font-size: 2.2rem; opacity: 0.85; } .logo-img { height: 54px; width: auto; object-fit: contain; /* 흰 배경 PNG → screen 블렌드로 흰 배경 투명하게 처리 */ mix-blend-mode: screen; border-radius: 4px; } .logo-main { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.5px; } .logo-sub { font-size: 0.85rem; opacity: 0.75; margin-top: 2px; } .badge-group { display: flex; gap: 8px; flex-wrap: wrap; } .badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3px; } .badge-blue { background: rgba(100,160,255,0.25); border: 1px solid rgba(100,160,255,0.5); } .badge-green { background: rgba(80,200,120,0.25); border: 1px solid rgba(80,200,120,0.5); } .badge-gray { background: rgba(200,210,220,0.2); border: 1px solid rgba(200,210,220,0.4); } .header-desc { margin-top: 8px; font-size: 0.8rem; opacity: 0.65; letter-spacing: 0.3px; } /* ===== MAIN GRID ===== */ .main-grid { flex: 1; display: grid; grid-template-columns: 380px 1fr; gap: 20px; padding: 22px 24px; max-width: 1100px; margin: 0 auto; width: 100%; } /* ===== PANEL ===== */ .panel { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.09); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; } /* ===== SECTION TITLE ===== */ .section-title { font-size: 0.88rem; font-weight: 700; color: #2c4a7c; letter-spacing: 0.4px; text-transform: uppercase; padding-bottom: 4px; border-bottom: 2px solid #e8eef5; } .section-icon { margin-right: 5px; } /* ===== DIVIDER ===== */ .divider { height: 1px; background: #eef2f7; margin: 4px 0; } /* ===== FORM ELEMENTS ===== */ .form-group { display: flex; flex-direction: column; gap: 5px; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } label { font-size: 0.78rem; font-weight: 600; color: #4a5568; } .input-unit-wrap { display: flex; align-items: center; border: 1.5px solid #cbd5e0; border-radius: 6px; overflow: hidden; transition: border-color 0.2s; } .input-unit-wrap:focus-within { border-color: #2c4a7c; box-shadow: 0 0 0 3px rgba(44,74,124,0.12); } .num-input { flex: 1; border: none; outline: none; padding: 7px 10px; font-size: 0.92rem; font-weight: 600; color: #2c3e50; background: transparent; width: 0; /* flex에서 축소 허용 */ } .unit { padding: 6px 10px; font-size: 0.75rem; color: #718096; background: #f7fafc; border-left: 1px solid #e2e8f0; white-space: nowrap; } .select-control { width: 100%; padding: 8px 10px; border: 1.5px solid #cbd5e0; border-radius: 6px; font-size: 0.88rem; font-weight: 600; color: #2c3e50; background: #fff; cursor: pointer; outline: none; transition: border-color 0.2s; } .select-control:focus { border-color: #2c4a7c; box-shadow: 0 0 0 3px rgba(44,74,124,0.12); } /* ===== EI HINT ===== */ .ei-hint { font-size: 0.75rem; color: #718096; padding: 2px 4px; text-align: right; } /* ===== TOTAL LOAD BAR ===== */ .total-load-bar { background: linear-gradient(90deg, #eef2f7, #f0f4f8); border: 1px solid #d0daea; border-radius: 6px; padding: 8px 14px; font-size: 0.83rem; font-weight: 600; color: #2c4a7c; } .total-load-bar span { font-size: 1rem; color: #c0392b; font-weight: 700; } /* ===== SPACING VISUAL ===== */ .spacing-visual { display: flex; align-items: center; gap: 8px; padding: 8px 0 2px; } .spacing-bar { flex: 1; height: 4px; background: linear-gradient(90deg, #2c4a7c, #1a6a9a); border-radius: 2px; } .spacing-label { font-size: 0.8rem; font-weight: 700; color: #2c4a7c; background: #eef2f7; padding: 3px 10px; border-radius: 12px; white-space: nowrap; } /* ===== RESULT BOX ===== */ .result-box { display: flex; align-items: baseline; gap: 8px; background: linear-gradient(135deg, #1a2a4a, #2c4a7c); border-radius: 10px; padding: 16px 20px; box-shadow: 0 4px 14px rgba(44,74,124,0.25); } .result-value { font-size: 2.6rem; font-weight: 800; color: #fff; letter-spacing: -1px; line-height: 1; } .result-unit { font-size: 1rem; color: rgba(255,255,255,0.65); font-weight: 500; } .result-sub { font-size: 0.78rem; color: #718096; text-align: center; padding: 2px 0; } /* ===== JOIST DIAGRAM ===== */ .joist-diagram-wrap { background: #f0f4f8; border: 1px solid #e2e8f0; border-radius: 10px; padding: 4px; overflow: hidden; } .joist-diagram-wrap svg { width: 100%; height: auto; display: block; } /* ===== CALC STEPS ===== */ .calc-steps { background: #f8fafd; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 16px; font-size: 0.83rem; line-height: 1.9; color: #2c3e50; min-height: 120px; } .calc-step-placeholder { color: #a0aec0; font-style: italic; } .step-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 1px dashed #e2e8f0; padding: 3px 0; } .step-row:last-child { border-bottom: none; } .step-label { color: #4a5568; font-weight: 500; } .step-val { font-weight: 700; color: #2c4a7c; white-space: nowrap; } .step-formula { font-style: italic; color: #718096; font-size: 0.78rem; display: block; padding: 2px 6px; background: #eef2f7; border-radius: 4px; margin: 2px 0; } .step-govern { margin-top: 6px; padding: 6px 10px; border-radius: 6px; background: #fff3cd; border: 1px solid #f0c040; color: #856404; font-weight: 700; font-size: 0.82rem; line-height: 1.7; } /* ===== 검산 블록 ===== */ .step-verify { margin-top: 10px; border: 1.5px solid #b8d4f0; border-radius: 8px; overflow: hidden; font-size: 0.81rem; } .verify-title { background: #2c4a7c; color: #fff; padding: 5px 12px; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.3px; } .verify-body { background: #f0f6ff; padding: 10px 14px; display: flex; flex-direction: column; gap: 5px; color: #2c3e50; line-height: 1.6; } .verify-formula { font-style: italic; color: #4a5568; background: #dce9f8; border-radius: 4px; padding: 3px 8px; font-size: 0.78rem; } .verify-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 1px dashed #c8daf0; padding: 2px 0; } .verify-row:last-of-type { border-bottom: none; } .verify-row span:first-child { color: #4a5568; } .verify-row span:last-child { font-weight: 700; color: #1a5276; white-space: nowrap; } .verify-note { margin-top: 6px; font-weight: 600; color: #155724; background: #d4edda; border-radius: 4px; padding: 6px 10px; font-size: 0.79rem; line-height: 1.7; } .verify-concept { background: #fffbea; border: 1px solid #f0c040; border-radius: 5px; padding: 7px 10px; font-size: 0.8rem; line-height: 1.7; color: #5a4000; } .verify-sub-title { font-size: 0.78rem; font-weight: 700; color: #2c4a7c; margin-top: 6px; padding: 3px 0; border-bottom: 1px solid #c8daf0; } /* 검산 내부 테이블 */ .verify-table { width: 100%; border-collapse: collapse; font-size: 0.77rem; margin-top: 4px; } .verify-table th { background: #dce9f8; color: #1a3a6a; font-weight: 700; padding: 5px 6px; text-align: center; border: 1px solid #b8d4f0; } .verify-table td { padding: 5px 6px; text-align: center; border: 1px solid #d0e4f5; color: #2c3e50; } .verify-table tbody tr:nth-child(even) { background: #f0f6ff; } /* 현재 선택된 행 강조 */ .verify-row-current { background: #fff3cd !important; font-weight: 700; } .verify-row-current td { color: #856404; font-weight: 700; } /* ===== CHECK TABLE ===== */ .check-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; } .check-table th { background: #eef2f7; padding: 8px 10px; text-align: center; font-weight: 700; color: #2c4a7c; border-bottom: 2px solid #d0daea; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.3px; } .check-table td { padding: 9px 10px; text-align: center; border-bottom: 1px solid #e8eef5; color: #2c3e50; font-weight: 500; } .check-table tr:last-child td { border-bottom: none; } .judge-ok { display: inline-block; padding: 3px 12px; background: #d4edda; color: #155724; border-radius: 12px; font-weight: 700; font-size: 0.8rem; } .judge-ng { display: inline-block; padding: 3px 12px; background: #f8d7da; color: #721c24; border-radius: 12px; font-weight: 700; font-size: 0.8rem; } .judge-pending { display: inline-block; padding: 3px 12px; background: #e9ecef; color: #6c757d; border-radius: 12px; font-weight: 600; font-size: 0.8rem; } /* ===== 스팬 배치도 ===== */ #spanLayoutWrap { background: #ffffff; border-radius: 4px; } #spanLayoutSVG { width: 100%; display: block; border-radius: 4px; background: #ffffff; } #spanLayoutDesc { font-size: 0.76rem; color: #4a5568; margin-top: 5px; line-height: 1.7; padding: 4px 2px; } #spanLayoutDesc strong { color: #2c4a7c; font-weight: 700; } /* ===== EI 자동 산출 박스 ===== */ .ei-auto-box { background: linear-gradient(135deg, #eef6ff 0%, #e8f0fb 100%); border: 1px solid #b8d0f0; border-radius: 8px; padding: 10px 14px; margin-bottom: 4px; display: flex; flex-direction: column; gap: 4px; } .ei-auto-label { font-size: 0.74rem; font-weight: 700; color: #2c4a7c; letter-spacing: 0.2px; } .ei-auto-formula { font-size: 0.78rem; color: #4a5568; font-style: italic; background: #dce9f8; border-radius: 4px; padding: 3px 8px; display: inline-block; } .ei-auto-result { font-size: 0.9rem; font-weight: 700; color: #1a3a6a; padding: 2px 0; } .ei-auto-btn { align-self: flex-start; margin-top: 2px; padding: 5px 14px; font-size: 0.76rem; font-weight: 700; background: #2c4a7c; color: #fff; border: none; border-radius: 5px; cursor: pointer; transition: background 0.15s; } .ei-auto-btn:hover { background: #1a6a9a; } /* ===== FOOTER ===== */ .footer { background: #1a2a4a; color: rgba(255,255,255,0.55); font-size: 0.72rem; text-align: center; padding: 12px 20px; margin-top: auto; letter-spacing: 0.3px; } /* ===== RESPONSIVE ===== */ @media (max-width: 800px) { .main-grid { grid-template-columns: 1fr; padding: 14px; gap: 14px; } .form-row { grid-template-columns: 1fr 1fr; } .result-value { font-size: 2rem; } } @media (max-width: 480px) { .header { padding: 14px 16px 10px; } .logo-main { font-size: 1.2rem; } .badge { font-size: 0.68rem; padding: 3px 9px; } .form-row { grid-template-columns: 1fr; } .main-grid { padding: 10px; } .panel { padding: 16px 14px; } }