/* ==== Apple-inspired Global Reset & Typography ==== */ :root { --apple-black: #0000; --apple-white: #ffff; --apple-grey-50: #f5f5f7; --apple-grey-100: #efeff4; /* iOS group background */ --apple-grey-200: #e5e5ea; --apple-grey-300: #d1d1d6; --apple-grey-600: #8e8e93; --apple-blue: #007aff; --apple-blue-hover: #0056cc; --apple-green: #34c759; --apple-red: #ff3b30; --shadow-soft: 0 8px 30px rgba(0,0,0,0.08); --radius-lg: 14px; --radius-md: 12px; --radius-sm: 10px; --transition: all 0.3s ease; --text-color: #1d1d1f; --link-underline-offset: 2px; } * { box-sizing: border-box; } html, body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--text-color); background: var(--apple-grey-50); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* ==== Layout Containers ==== */ .main-container { max-width: 1100px; margin: 0 auto; padding: 24px; } /* Fixed top nav (subtle, Apple-like) */ .top-nav { position: sticky; top: 0; z-index: 1000; backdrop-filter: saturate(180%) blur(12px); background: rgba(250,250,252,0.72); border-bottom: 1px solid rgba(0,0,0,0.06); } .top-nav-inner { max-width: 1100px; margin: 0 auto; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; } .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.2px; } .brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--apple-blue); box-shadow: 0 0 0 4px rgba(0,122,255,0.15); } .nav-actions .burger { width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(0,0,0,0.08); display: grid; place-items: center; background: var(--apple-white); box-shadow: var(--shadow-soft); cursor: pointer; transition: var(--transition); } .nav-actions .burger:hover { transform: translateY(-1px); } /* Inline burger menu panel (local help/actions) */ .inline-menu { position: fixed; top: 64px; right: 16px; width: 260px; background: var(--apple-white); border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 12px; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: var(--transition); } .inline-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); } .inline-menu h4 { margin: 6px 0 10px 0; font-size: 14px; font-weight: 700; } .inline-menu a { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: underline; text-underline-offset: var(--link-underline-offset); color: var(--text-color); } .inline-menu a:hover { background: var(--apple-grey-100); } /* ==== Header (full-width black) ==== */ .header { margin: 18px 0 28px 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--apple-black); color: #ffff !important; /* Force white text */ box-shadow: var(--shadow-soft); } .header, .header * { color: #ffff !important; /* All content in white */ } .header a, .header a:visited, .header a:active { color: #ffff !important; /* White links */ text-decoration: underline; text-underline-offset: var(--link-underline-offset); } .header-inner { padding: 48px 32px; text-align: center; } .header h1 { margin: 0; font-weight: 700; letter-spacing: -0.02em; font-size: clamp(28px, 3.5vw, 40px); } .header p { opacity: 0.92; font-size: 17px; line-height: 1.5; margin: 12px auto 0; max-width: 760px; } /* ==== Section Cards (alternating backgrounds) ==== */ .section { background: var(--apple-white); border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-soft); } .section + .section { margin-top: 16px; } /* Alternate section – subtle grey Apple background */ .section.alt { background: var(--apple-grey-100); } /* Labels/titles inside sections */ .section h3, .section h2, .section h4 { margin-top: 0; letter-spacing: -0.01em; } .section h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; } /* ==== Inputs & Controls ==== */ input[type="text"], input[type="password"], textarea { border-radius: var(--radius-md) !important; border: 1px solid rgba(0,0,0,0.08) !important; background: var(--apple-white) !important; transition: var(--transition) !important; box-shadow: 0 1px 0 rgba(0,0,0,0.02) inset; } input:focus, textarea:focus { outline: none !important; border-color: var(--apple-blue) !important; box-shadow: 0 0 0 3px rgba(0,122,255,0.15) !important; } /* Buttons */ .apple-button, .reset-button, .ghost-button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; font-weight: 600; letter-spacing: 0.2px; transition: var(--transition); user-select: none; } .apple-button { background: var(--apple-blue); color: #fff; box-shadow: 0 6px 18px rgba(0,122,255,0.25); } .apple-button:hover { background: var(--apple-blue-hover); transform: translateY(-1px); } .apple-button:active { transform: translateY(0); } .reset-button { background: var(--apple-red); color: #fff; box-shadow: 0 6px 18px rgba(255,59,48,0.22); } .reset-button:hover { filter: brightness(0.96); transform: translateY(-1px); } .reset-button:active { transform: translateY(0); } /* Secondary ghost button style if needed */ .ghost-button { background: var(--apple-white); color: var(--text-color); border: 1px solid rgba(0,0,0,0.08); } .ghost-button:hover { background: #fafafa; } /* Status messages */ .status-success { color: var(--apple-green); font-weight: 600; } .status-error { color: var(--apple-red); font-weight: 600; } /* ==== Tabs Styling (Apple-like) ==== */ .tab-nav { background: var(--apple-grey-100); border-radius: var(--radius-md); padding: 4px; display: flex; gap: 2px; margin-bottom: 16px; } .tab-nav button { flex: 1; padding: 8px 16px; border: none; border-radius: var(--radius-sm); background: transparent; color: var(--apple-grey-600); font-weight: 500; font-size: 14px; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 6px; } .tab-nav button.selected { background: var(--apple-white); color: var(--text-color); box-shadow: 0 1px 3px rgba(0,0,0,0.1); font-weight: 600; } .tab-nav button:hover:not(.selected) { color: var(--text-color); background: rgba(255,255,255,0.5); } /* Tab content */ .tab-content { min-height: 120px; } /* ==== Download & Preview ==== */ .preview-card { background: var(--apple-white); border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); overflow: hidden; } .preview-header { background: linear-gradient(180deg, #fafafa, #f2f2f7); border-bottom: 1px solid rgba(0,0,0,0.06); padding: 12px 16px; display: flex; align-items: center; gap: 8px; } .preview-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; box-shadow: 16px 0 0 #ffbd2e, 32px 0 0 #28c840; } .preview-body { padding: 16px; max-height: 520px; overflow: auto; background: var(--apple-grey-50); } .preview-body pre, .preview-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 12px; } /* ==== Footer (full-width black) ==== */ .footer { margin-top: 22px; border-radius: var(--radius-lg); overflow: hidden; background: var(--apple-black); color: #ffff !important; /* Force white text */ box-shadow: var(--shadow-soft); } .footer, .footer * { color: #ffff !important; /* All content in white */ } .footer a, .footer a:visited, .footer a:active { color: #ffff !important; /* White links */ text-decoration: underline; text-underline-offset: var(--link-underline-offset); } .footer-inner { padding: 18px 20px; font-size: 14px; line-height: 1.5; } /* Links globally */ a { text-decoration: underline; text-underline-offset: var(--link-underline-offset); } /* Hover animations */ .section, .preview-card, .header, .footer { transition: var(--transition); } .section:hover, .preview-card:hover { transform: translateY(-2px); } /* Responsive */ @media (max-width: 768px) { .top-nav-inner { padding: 0 12px; } .header-inner { padding: 36px 20px; } .preview-body { max-height: 420px; } }