/* GPA Calculator — style.css v1.0 */
.gpac-wrap { max-width:620px; margin:0 auto; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; color:#1a1a1a; }
.gpac-header { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.gpac-icon { font-size:34px; line-height:1; }
.gpac-title { font-size:22px !important; font-weight:600 !important; margin:0 0 3px !important; padding:0 !important; border:none !important; color:#1a1a1a !important; }
.gpac-sub { font-size:13px; color:#666; margin:0; }
.gpac-tabs { display:flex; gap:8px; margin-bottom:20px; flex-wrap:wrap; }
.gpac-tab { flex:1 1 auto; min-width:140px; padding:10px 8px; font-size:12.5px; font-weight:500; border:1px solid #d8d8d8; border-radius:10px; background:#fff; color:#555; cursor:pointer; transition:background .13s,color .13s,border-color .13s; display:flex; flex-direction:column; align-items:center; gap:3px; text-align:center; }
.gpac-tab:hover:not(.act) { background:#fffbeb; }
.gpac-tab.act { background:#fef3c7; color:#92400E; border-color:#fcd34d; }
.gpac-tab span:first-child { font-size:18px; }
.gpac-tab-sub { font-size:11px; font-weight:400; opacity:.7; }
.gpac-panel { display:none; }
.gpac-panel.act { display:block; }
.gpac-section-lbl { font-size:11px; font-weight:700; color:#999; text-transform:uppercase; letter-spacing:.6px; margin-bottom:8px; }
.gpac-course-head { display:grid; grid-template-columns:1fr 80px 110px 30px; gap:8px; padding-bottom:4px; margin-bottom:6px; font-size:11px; font-weight:700; color:#999; text-transform:uppercase; letter-spacing:.4px; border-bottom:1px solid #e8e8e8; }
.gpac-course-row { display:grid; grid-template-columns:1fr 80px 110px 30px; gap:8px; margin-bottom:7px; align-items:center; }
@media(max-width:440px){ .gpac-course-head,.gpac-course-row { grid-template-columns:1fr 60px 90px 28px; } }
.gpac-course-row input[type="text"],.gpac-course-row input[type="number"],.gpac-course-row select { width:100%; box-sizing:border-box; padding:8px 10px; border:1px solid #d0d0d0; border-radius:7px; font-size:13px; color:#1a1a1a; background:#fff; outline:none; transition:border-color .15s; -moz-appearance:textfield; font-family:inherit; }
.gpac-course-row input::-webkit-inner-spin-button,.gpac-course-row input::-webkit-outer-spin-button { -webkit-appearance:none; }
.gpac-course-row input:focus,.gpac-course-row select:focus { border-color:#D97706; box-shadow:0 0 0 3px rgba(217,119,6,.1); }
.gpac-course-row select { appearance:none; -webkit-appearance:none; cursor:pointer; }
.gpac-rm-btn { width:26px; height:26px; border-radius:6px; border:1px solid #e8e8e8; background:#fff; color:#bbb; font-size:12px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .13s,color .13s; flex-shrink:0; }
.gpac-rm-btn:hover { background:#fee2e2; color:#b91c1c; border-color:#fca5a5; }
.gpac-add-course-btn { font-size:12.5px; color:#D97706; background:none; border:1px dashed #fcd34d; border-radius:7px; padding:7px 14px; cursor:pointer; margin:4px 0 14px; transition:background .13s; }
.gpac-add-course-btn:hover { background:#fef3c7; }
.gpac-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:4px; }
@media(max-width:440px){ .gpac-grid { grid-template-columns:1fr; } }
.gpac-lbl { display:block; font-size:13px; font-weight:500; color:#555; margin-bottom:5px; }
.gpac-iw input { width:100%; box-sizing:border-box; padding:9px 12px; border:1px solid #d0d0d0; border-radius:8px; font-size:14px; color:#1a1a1a; background:#fff; outline:none; transition:border-color .15s; -moz-appearance:textfield; }
.gpac-iw input::-webkit-inner-spin-button,.gpac-iw input::-webkit-outer-spin-button { -webkit-appearance:none; }
.gpac-iw input:focus { border-color:#D97706; box-shadow:0 0 0 3px rgba(217,119,6,.1); }
.gpac-result-wrap { margin-top:14px; animation:gpac-in .22s ease; }
@keyframes gpac-in { from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:translateY(0)} }
.gpac-gpa-display { background:linear-gradient(135deg,#D97706,#92400E); border-radius:14px; padding:20px 24px; color:#fff; text-align:center; margin-bottom:12px; }
.gpac-gpa-val { font-size:56px; font-weight:700; line-height:1; margin-bottom:4px; }
.gpac-gpa-label { font-size:14px; opacity:.8; margin-bottom:4px; }
.gpac-gpa-letter { display:inline-block; background:rgba(255,255,255,.2); padding:3px 16px; border-radius:12px; font-size:16px; font-weight:700; }
.gpac-stats-row { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:12px; }
@media(max-width:400px){ .gpac-stats-row { grid-template-columns:1fr 1fr; } }
.gpac-stat-card { background:#fef3c7; border:1px solid #fde68a; border-radius:9px; padding:10px; text-align:center; }
.gpac-stat-val { font-size:18px; font-weight:700; color:#92400E; margin-bottom:2px; }
.gpac-stat-lbl { font-size:11px; color:#78350F; }
table.gpac-course-table { width:100%; border-collapse:collapse; font-size:13px; margin-bottom:14px; }
table.gpac-course-table th { padding:7px 10px; text-align:left; color:#888; font-size:11px; text-transform:uppercase; letter-spacing:.4px; border-bottom:1px solid #e8e8e8; background:#fafafa; font-weight:600; }
table.gpac-course-table th:not(:first-child) { text-align:center; }
table.gpac-course-table td { padding:8px 10px; border-bottom:1px solid #f0f0f0; }
table.gpac-course-table td:not(:first-child) { text-align:center; font-family:monospace; font-weight:600; }
table.gpac-course-table tr:last-child td { border-bottom:none; background:#fef3c7; font-weight:700; }
.gpac-target-card { border-radius:12px; padding:16px 18px; margin-top:14px; font-size:13px; border:1px solid; }
.gpac-target-card.achievable { background:#f0fdf4; border-color:#86efac; }
.gpac-target-card.hard { background:#fef3c7; border-color:#fde047; }
.gpac-target-card.impossible { background:#fee2e2; border-color:#fca5a5; }
.gpac-target-title { font-size:15px; font-weight:700; margin-bottom:10px; }
.gpac-target-card.achievable .gpac-target-title { color:#166534; }
.gpac-target-card.hard .gpac-target-title { color:#92400E; }
.gpac-target-card.impossible .gpac-target-title { color:#991b1b; }
.gpac-target-row { display:flex; justify-content:space-between; padding:5px 0; border-bottom:1px solid rgba(0,0,0,.06); font-size:13px; }
.gpac-target-row:last-child { border-bottom:none; font-weight:600; }
.gpac-scale-table { margin-bottom:14px; }
.gpac-scale-head { display:grid; grid-template-columns:50px 110px 90px 1fr; gap:8px; padding:7px 10px; font-size:11px; font-weight:700; color:#888; text-transform:uppercase; letter-spacing:.4px; border-bottom:1px solid #e8e8e8; background:#fafafa; }
.gpac-scale-row { display:grid; grid-template-columns:50px 110px 90px 1fr; gap:8px; padding:7px 10px; border-bottom:1px solid #f5f5f5; font-size:13px; transition:background .1s; }
.gpac-scale-row:hover { background:#fffbeb; }
.gpac-scale-row:last-child { border-bottom:none; }
.gpac-scale-grade { font-weight:700; color:#D97706; font-size:14px; }
.gpac-scale-pts { font-weight:600; color:#1a1a1a; font-family:monospace; }
.gpac-scale-desc { color:#888; }
