File manager - Edit - /var/www/sme-os.tech.cm.in.th/sme-os-new1082569/style.css
Back
/* ================================================================ CMTC Smart Restaurant OS - Portal Stylesheet Clean Architecture | Dual Theme | Flexbox/Grid | Glassmorphism ================================================================ */ /* ------------------------------------------------------------------ 0. GOOGLE FONT IMPORT ------------------------------------------------------------------ */ @import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&display=swap'); /* ------------------------------------------------------------------ 1. CSS VARIABLES - DARK THEME (Default) ------------------------------------------------------------------ */ :root, [data-theme="dark"] { /* Backgrounds */ --bg-root: #080C14; --bg-surface: #0D1421; --bg-card: rgba(18, 28, 48, 0.75); --bg-card-hover: rgba(15, 22, 38, 0.9); --bg-navbar: rgba(8, 12, 20, 0.92); /* Typography */ --text-primary: #F1F5F9; --text-secondary: #94A3B8; --text-muted: #64748B; /* Borders */ --border-glass: rgba(255, 255, 255, 0.08); --border-hover: rgba(255, 107, 0, 0.35); /* Accent Colors */ --accent-orange: #FF6B00; --accent-gold: #F59E0B; --accent-cyan: #00E5FF; --accent-teal: #00C9A7; --accent-green: #10B981; --accent-red: #EF4444; /* Shadows - Default state has NO glow/box-shadow */ --shadow-card: none; --shadow-hover: 0 0 25px rgba(255, 107, 0, 0.45); --glow-orange: none; --glow-cyan: none; /* Hero Gradient */ --hero-gradient: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 107, 0, 0.18) 0%, transparent 70%); } /* ------------------------------------------------------------------ 2. CSS VARIABLES - LIGHT THEME ------------------------------------------------------------------ */ [data-theme="light"] { /* Backgrounds - White Cream */ --bg-root: #F7F4EF; --bg-surface: #FAF7F2; --bg-card: rgba(255, 255, 255, 0.95); --bg-card-hover: rgba(248, 244, 236, 0.98); --bg-navbar: rgba(247, 244, 239, 0.95); /* Typography - MUST be ultra-sharp dark for 100% readability */ --text-primary: #0F172A; --text-secondary: #1E293B; --text-muted: #475569; /* Borders */ --border-glass: rgba(0, 0, 0, 0.12); --border-hover: rgba(224, 90, 0, 0.5); /* Accent Colors - Amber / Orange / Teal */ --accent-orange: #E05A00; --accent-gold: #D97706; --accent-cyan: #0284C7; --accent-teal: #0F766E; --accent-green: #059669; --accent-red: #DC2626; /* Shadows - Default state has NO glow/box-shadow */ --shadow-card: none; --shadow-hover: 0 0 25px rgba(224, 90, 0, 0.45); --glow-orange: none; --glow-cyan: none; /* Hero Gradient */ --hero-gradient: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(224, 90, 0, 0.12) 0%, transparent 70%); } /* ------------------------------------------------------------------ 3. RESET & BASE ------------------------------------------------------------------ */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; } body { font-family: 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 400; font-size: 16px; line-height: 1.7; color: var(--text-primary); background-color: var(--bg-root); background-image: var(--hero-gradient); background-attachment: fixed; min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; transition: background-color 0.3s ease, color 0.3s ease; } /* Remove emoji/unicode artifacts from anywhere */ .clean-text { font-variant-emoji: none; } /* ------------------------------------------------------------------ 4. LAYOUT CONTAINERS ------------------------------------------------------------------ */ .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; } .portal-section { padding: 100px 0; } /* First section: extra top padding to account for fixed navbar */ .hero-section { padding-top: 150px; padding-bottom: 100px; } /* ------------------------------------------------------------------ 5. NAVBAR (Core Flexbox: Brand | Links | Actions) Additional inline overrides in index.php <style> block ensure these can never be overridden by specificity conflicts. ------------------------------------------------------------------ */ /* Smooth scroll spy indicator */ .portal-navbar.scrolled { border-bottom-color: var(--border-hover); box-shadow: 0 4px 32px rgba(0,0,0,0.3); } /* ------------------------------------------------------------------ 6. HERO SECTION ------------------------------------------------------------------ */ .hero-wrapper { display: flex; flex-direction: column; align-items: center; gap: 50px; } .hero-content { text-align: center; max-width: 900px; margin: 0 auto; } .hero-badge { display: inline-block; padding: 6px 18px; border-radius: 30px; background: rgba(255, 107, 0, 0.12); border: 1px solid rgba(255, 107, 0, 0.35); color: var(--accent-orange); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 20px; } .hero-title { font-size: clamp(2.2rem, 3.5vw, 3.2rem); font-weight: 700; line-height: 1.35; color: var(--text-primary); margin-bottom: 24px; word-break: keep-all; text-wrap: balance; text-align: center; } .hero-description { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.75; margin: 0 auto 32px auto; max-width: 720px; text-align: center; word-break: keep-all; text-wrap: balance; } .hero-cta-group { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 0 auto; flex-wrap: wrap; } .btn-cta-primary { display: inline-block; padding: 14px 28px; background: linear-gradient(135deg, #FF6B00, #FF9500); color: #fff; font-weight: 700; font-size: 0.95rem; border-radius: 12px; text-decoration: none; box-shadow: none !important; transition: all 0.3s ease; white-space: nowrap; } .btn-cta-primary:hover, .btn-cta-primary:active { transform: translateY(-3px); box-shadow: 0 0 20px rgba(255, 90, 0, 0.5) !important; } .btn-cta-secondary { display: inline-block; padding: 13px 24px; border: 1.5px solid var(--accent-cyan); color: var(--accent-cyan); font-weight: 700; font-size: 0.95rem; border-radius: 12px; text-decoration: none; background: rgba(0, 229, 255, 0.06); box-shadow: none !important; transition: all 0.3s ease; white-space: nowrap; } .btn-cta-secondary:hover, .btn-cta-secondary:active { background: rgba(0, 229, 255, 0.12); box-shadow: 0 0 20px rgba(0, 229, 255, 0.4) !important; transform: translateY(-2px); } /* Hero Showcase Card */ .hero-showcase-card { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: 20px; padding: 32px; max-width: 760px; width: 100%; margin: 0 auto; backdrop-filter: blur(20px); box-shadow: none !important; transition: all 0.3s ease; animation: floatCard 6s ease-in-out infinite; } .hero-showcase-card:hover { border-color: var(--accent-orange) !important; box-shadow: 0 0 25px rgba(255, 90, 0, 0.35) !important; } @keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } } /* Glowing Text - Glow only on hover or active */ .glow-text-orange { color: var(--accent-orange); text-shadow: none !important; transition: text-shadow 0.3s ease; } .glow-text-orange:hover, .glow-text-orange:active { text-shadow: 0 0 16px rgba(255, 90, 0, 0.6) !important; } /* ------------------------------------------------------------------ 7. SECTION HEADERS ------------------------------------------------------------------ */ .section-header { text-align: center; margin-bottom: 60px; } .section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--text-primary); line-height: 1.3; margin-bottom: 14px; } .section-subtitle { font-size: 1rem; color: var(--text-secondary); max-width: 620px; margin: 0 auto; line-height: 1.7; } /* ------------------------------------------------------------------ 8. FEATURE CARDS ------------------------------------------------------------------ */ .features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; } .feature-card { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: 18px; padding: 32px 24px; backdrop-filter: blur(16px); transition: all 0.3s ease; box-shadow: var(--shadow-card); position: relative; overflow: hidden; } .feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent-orange), var(--accent-gold), var(--accent-cyan)); opacity: 0; transition: opacity 0.3s; } .feature-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--shadow-hover); } .feature-card:hover::before { opacity: 1; } .feature-icon-wrapper { width: 54px; height: 54px; border-radius: 14px; background: rgba(255, 107, 0, 0.12); border: 1px solid rgba(255, 107, 0, 0.25); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--accent-orange); font-size: 1.6rem; } .feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; line-height: 1.4; } .feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; } /* ------------------------------------------------------------------ 8.5 WHY CHOOSE US / COMPETITOR ADVANTAGES ------------------------------------------------------------------ */ .comparison-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; } .advantage-card { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: 20px; padding: 36px 28px; backdrop-filter: blur(16px); box-shadow: none !important; transition: all 0.3s ease; position: relative; } .advantage-card:hover, .advantage-card:active, .advantage-card:focus-within { transform: translateY(-5px); border-color: var(--accent-orange) !important; box-shadow: 0 0 25px rgba(255, 90, 0, 0.45) !important; } .advantage-card.highlight { border-color: rgba(255, 107, 0, 0.35); background: linear-gradient(180deg, rgba(255,107,0,0.08) 0%, var(--bg-card) 100%); box-shadow: none !important; } .advantage-card.highlight:hover, .advantage-card.highlight:active, .advantage-card.highlight:focus-within { border-color: var(--accent-orange) !important; box-shadow: 0 0 25px rgba(255, 90, 0, 0.45) !important; } .adv-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; background: rgba(255, 107, 0, 0.15); border: 1px solid var(--accent-orange); color: var(--accent-orange); font-size: 0.8rem; font-weight: 700; margin-bottom: 16px; } .adv-badge.unique { background: rgba(0, 229, 255, 0.15); border-color: var(--accent-cyan); color: var(--accent-cyan); } .advantage-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; } .advantage-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; } /* ------------------------------------------------------------------ 9. BENEFITS SECTION ------------------------------------------------------------------ */ .benefits-grid { display: grid; grid-template-columns: 1fr; gap: 20px; } .benefit-card { display: flex; flex-direction: row; align-items: flex-start; gap: 24px; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: 16px; padding: 28px; backdrop-filter: blur(12px); transition: all 0.25s; box-shadow: var(--shadow-card); } .benefit-card:hover { border-color: var(--border-hover); transform: translateX(4px); } .benefit-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--bg-root); border: 1px solid var(--border-glass); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .benefit-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; } .benefit-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; } /* ------------------------------------------------------------------ 10. PRICING SECTION ------------------------------------------------------------------ */ .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; } .pricing-card { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: 20px; padding: 32px 28px; backdrop-filter: blur(16px); position: relative; transition: all 0.3s ease; box-shadow: none !important; } .pricing-card:hover, .pricing-card:active, .pricing-card:focus-within { transform: translateY(-5px); border-color: var(--accent-orange) !important; box-shadow: 0 0 25px rgba(255, 90, 0, 0.45) !important; } .pricing-card.featured { border-color: rgba(255, 107, 0, 0.4); box-shadow: none !important; } .pricing-card.featured:hover, .pricing-card.featured:active, .pricing-card.featured:focus-within { border-color: var(--accent-orange) !important; box-shadow: 0 0 30px rgba(255, 90, 0, 0.55) !important; } .pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 18px; border-radius: 30px; background: linear-gradient(135deg, #FF6B00, #FF9500); color: #fff; font-size: 0.8rem; font-weight: 700; white-space: nowrap; } .pricing-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; } .pricing-price { font-size: 2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 10px; } .pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-secondary); } .pricing-trial-tag { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.82rem; font-weight: 700; margin-bottom: 20px; } .pricing-features { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; } .pricing-features li { display: flex; flex-direction: row; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-secondary); } .btn-pricing-select { width: 100%; padding: 13px; border-radius: 12px; font-size: 0.92rem; font-weight: 700; cursor: pointer; border: none; transition: all 0.25s; } .btn-pricing-select.primary { background: linear-gradient(135deg, #FF6B00, #FF9500); color: #fff; box-shadow: 0 4px 15px rgba(255, 107, 0, 0.35); } .btn-pricing-select.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 107, 0, 0.5); } .btn-pricing-select.secondary { background: transparent; border: 1.5px solid var(--border-glass); color: var(--text-primary); } .btn-pricing-select.secondary:hover { border-color: var(--accent-orange); color: var(--accent-orange); } /* ------------------------------------------------------------------ 11. FAQ ACCORDION ------------------------------------------------------------------ */ .faq-accordion { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; } .faq-item { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: 14px; backdrop-filter: blur(12px); overflow: hidden; transition: border-color 0.25s; } .faq-item.open { border-color: rgba(255, 107, 0, 0.3); } .faq-header { display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 20px 24px; cursor: pointer; font-weight: 600; color: var(--text-primary); font-size: 0.95rem; gap: 16px; user-select: none; transition: color 0.2s; } .faq-header:hover { color: var(--accent-orange); } .faq-icon { font-size: 1.4rem; font-weight: 300; color: var(--text-muted); flex-shrink: 0; transition: transform 0.3s; line-height: 1; } .faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent-orange); } .faq-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding: 0 24px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; } .faq-item.open .faq-body { max-height: 300px; padding-bottom: 20px; padding-top: 0; } /* ------------------------------------------------------------------ 12. FOOTER ------------------------------------------------------------------ */ .portal-footer { padding: 48px 0; border-top: 1px solid var(--border-glass); text-align: center; background: var(--bg-surface); } /* ------------------------------------------------------------------ 13. MODAL ------------------------------------------------------------------ */ .modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 99999; opacity: 0; pointer-events: none; transition: opacity 0.25s; padding: 20px; } .modal-backdrop.open { opacity: 1; pointer-events: all; } .modal-card { background: var(--bg-surface); border: 1px solid var(--border-glass); border-radius: 20px; padding: 36px; width: 100%; max-width: 480px; position: relative; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); animation: modalSlideIn 0.3s ease; } /* ------------------------------------------------------------------ 13.5 CARD EXPAND DETAIL MODAL STYLES ------------------------------------------------------------------ */ .detail-modal-card { max-width: 680px !important; width: 92%; max-height: 88vh; overflow-y: auto; border: 1px solid var(--accent-orange, #FF6B00) !important; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 107, 0, 0.25) !important; } .detail-modal-header { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-glass); } .detail-modal-icon { width: 58px; height: 58px; border-radius: 16px; background: rgba(255, 107, 0, 0.12); border: 1px solid rgba(255, 107, 0, 0.3); display: flex; align-items: center; justify-content: center; font-size: 2rem; flex-shrink: 0; } .detail-modal-title { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); line-height: 1.3; margin-top: 4px; } .detail-modal-body { font-size: 0.94rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 24px; } .detail-modal-body h4 { color: var(--accent-orange); font-size: 1rem; font-weight: 700; margin: 16px 0 8px 0; } .detail-modal-body ul { list-style: none; padding: 0; margin: 10px 0; } .detail-modal-body ul li { position: relative; padding-left: 24px; margin-bottom: 10px; line-height: 1.6; } .detail-modal-body ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-orange); font-weight: bold; font-size: 1.05rem; } .detail-modal-footer { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border-glass); } .btn-detail-close { padding: 10px 20px; border-radius: 10px; border: 1px solid var(--border-glass); background: transparent; color: var(--text-primary); font-weight: 600; cursor: pointer; transition: all 0.2s; } .btn-detail-close:hover { border-color: var(--text-muted); } .btn-detail-cta { padding: 10px 22px; border-radius: 10px; border: none; background: linear-gradient(135deg, #FF6B00, #FF9500); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 4px 15px rgba(255, 107, 0, 0.35); transition: all 0.2s; } .btn-detail-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5); } /* Clickable Hint Indicator */ .card-expand-hint { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; font-weight: 700; color: var(--accent-orange); margin-top: 14px; opacity: 0.85; transition: opacity 0.2s; } .feature-card:hover .card-expand-hint, .advantage-card:hover .card-expand-hint, .pricing-card:hover .card-expand-hint { opacity: 1; } @keyframes modalSlideIn { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .modal-close-btn { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--text-muted); line-height: 1; transition: color 0.2s; } .modal-close-btn:hover { color: var(--accent-orange); } /* ------------------------------------------------------------------ 14. RESPONSIVE BREAKPOINTS ------------------------------------------------------------------ */ /* Tablet: max 1024px */ @media (max-width: 1024px) { .container { padding: 0 24px; } .hero-wrapper { grid-template-columns: 1fr; gap: 40px; } .hero-title { font-size: 2.2rem; } .features-grid { grid-template-columns: repeat(2, 1fr); } .comparison-grid { grid-template-columns: repeat(2, 1fr); } .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } .pricing-card.featured { transform: none; } } /* Mobile: max 640px */ @media (max-width: 640px) { .container { padding: 0 16px; } .portal-section { padding: 70px 0; } .hero-section { padding-top: 120px; padding-bottom: 70px; } .hero-title { font-size: 1.8rem; } .features-grid { grid-template-columns: 1fr; } .comparison-grid { grid-template-columns: 1fr; } .benefit-card { flex-direction: column; gap: 16px; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.29 |
proxy
|
phpinfo
|
Settings