/* ============================================ HSEQ Kennisbank — JVG Consultancy Corporate Professional Design System ============================================ */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --primary: #003366; --primary-light: #004D99; --primary-dark: #001F3F; --accent: #0066CC; --bg: #F4F6F9; --bg-white: #FFFFFF; --card: #FFFFFF; --text: #1A1A2E; --text-secondary: #5A5A7A; --text-light: #8A8AA0; --border: #DDE1E8; --border-light: #EEF0F4; --success: #00796B; --warning: #D4760A; --danger: #C62828; --shadow-sm: 0 1px 3px rgba(0,0,0,0.06); --shadow-md: 0 4px 12px rgba(0,0,0,0.08); --shadow-lg: 0 8px 24px rgba(0,0,0,0.10); --radius: 8px; --radius-sm: 4px; --radius-lg: 12px; --transition: 0.15s ease; --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; } html { font-size: 15px; -webkit-font-smoothing: antialiased; } body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; } a { color: var(--accent); text-decoration: none; transition: color var(--transition); } a:hover { color: var(--primary); } img { max-width: 100%; } /* ============ HEADER ============ */ .header { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.15); } .header-inner { max-width: 1200px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; gap: 20px; } .logo-link { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex-shrink: 0; } .logo-link:hover { color: #fff; opacity: 0.9; } .logo-img { height: 40px; width: 40px; border-radius: var(--radius-sm); } .logo-text { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.3px; white-space: nowrap; } .header-sub { font-size: 0.8rem; color: rgba(255,255,255,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* ============ MAIN ============ */ .main { flex: 1; max-width: 1200px; width: 100%; margin: 0 auto; padding: 32px; } /* ============ FOOTER ============ */ .footer { background: var(--primary-dark); color: rgba(255,255,255,0.5); padding: 16px 32px; margin-top: auto; } .footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; } .footer-brand { font-weight: 600; color: rgba(255,255,255,0.7); } .footer-tagline { letter-spacing: 2px; text-transform: uppercase; font-size: 0.7rem; } /* ============ HERO ============ */ .hero { text-align: center; padding: 48px 0 32px; } .hero.hero-small { padding: 32px 0 24px; } .hero-title { font-size: 1.87rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; letter-spacing: -0.5px; } .hero-sub { font-size: 1rem; color: var(--text-secondary); margin-bottom: 28px; } /* ============ SEARCH BOX ============ */ .search-box { display: flex; gap: 0; max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); } .search-input-wrap { flex: 1; display: flex; align-items: center; padding: 0 16px; } .search-icon { width: 20px; height: 20px; color: var(--text-light); flex-shrink: 0; } .search-input { flex: 1; border: none; outline: none; padding: 14px 12px; font-size: 0.95rem; font-family: var(--font); color: var(--text); background: transparent; } .search-input::placeholder { color: var(--text-light); } /* ============ BUTTONS ============ */ .btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; font-size: 0.9rem; font-weight: 600; font-family: var(--font); border: none; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); white-space: nowrap; } .btn-primary { background: var(--primary); color: #fff; } .btn-primary:hover { background: var(--primary-light); color: #fff; } .btn-secondary { background: var(--border-light); color: var(--text); } .btn-secondary:hover { background: var(--border); color: var(--text); } .btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--border); } .btn-outline:hover { background: var(--primary); color: #fff; border-color: var(--primary); } /* ============ STATS GRID ============ */ .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; } .stat-card { background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); border-left: 3px solid var(--primary); transition: box-shadow var(--transition); } .stat-card:hover { box-shadow: var(--shadow-md); } .stat-value { display: block; font-size: 1.6rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; } .stat-label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; } /* ============ CATEGORIES BAR ============ */ .categories-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); } .categories-label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; } .categories-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; } .pill { display: inline-block; padding: 6px 16px; font-size: 0.82rem; font-weight: 500; border-radius: 20px; border: 1px solid var(--border); color: var(--text-secondary); background: var(--card); white-space: nowrap; transition: all var(--transition); } .pill:hover { border-color: var(--primary); color: var(--primary); } .pill-active { background: var(--primary); border-color: var(--primary); color: #fff; } .pill-active:hover { background: var(--primary-light); color: #fff; } /* ============ BADGE ============ */ .badge { display: inline-block; padding: 3px 10px; font-size: 0.72rem; font-weight: 600; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px; background: var(--border-light); color: var(--text-secondary); } .badge-procedures { background: #E3F2FD; color: #1565C0; } .badge-regulations { background: #FFF3E0; color: #E65100; } .badge-templates { background: #E8F5E9; color: #2E7D32; } .badge-training { background: #F3E5F5; color: #7B1FA2; } .badge-reports { background: #ECEFF1; color: #37474F; } .badge-uncategorized { background: var(--border-light); color: var(--text-light); } /* ============ DOCUMENT GRID ============ */ .doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; } .doc-card { background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: all var(--transition); color: var(--text); text-decoration: none; } .doc-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); transform: translateY(-2px); color: var(--text); } .doc-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } .doc-meta-sm { font-size: 0.75rem; color: var(--text-light); } .doc-card-title { font-size: 1rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .doc-card-preview { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; flex: 1; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .doc-card-footer { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border-light); } .doc-meta { font-size: 0.78rem; color: var(--text-light); } /* ============ PAGINATION ============ */ .pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-light); } .page-btn { padding: 8px 20px; font-size: 0.85rem; font-weight: 500; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); transition: all var(--transition); } .page-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); } .page-info { font-size: 0.85rem; color: var(--text-light); } /* ============ SEARCH RESULTS ============ */ .search-header { margin-bottom: 24px; } .search-title { font-size: 1.1rem; font-weight: 600; color: var(--text); } .highlight { color: var(--primary); font-weight: 600; } .results-list { display: flex; flex-direction: column; gap: 12px; } .result-item { display: block; background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-sm); transition: all var(--transition); color: var(--text); text-decoration: none; } .result-item:hover { box-shadow: var(--shadow-md); border-color: var(--primary); color: var(--text); } .result-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; } .result-title { font-size: 1rem; font-weight: 600; color: var(--primary-dark); line-height: 1.4; } .result-snippet { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; } .result-snippet mark { background: #FFF9C4; color: var(--text); padding: 1px 3px; border-radius: 2px; } .result-meta { display: flex; gap: 16px; font-size: 0.78rem; color: var(--text-light); } /* ============ BREADCRUMB ============ */ .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); } .breadcrumb a { color: var(--text-secondary); } .breadcrumb a:hover { color: var(--primary); } .bc-sep { color: var(--text-light); } .bc-current { color: var(--text); font-weight: 500; } /* ============ DOCUMENT DETAIL ============ */ .doc-detail-title { font-size: 1.6rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 24px; line-height: 1.3; } .meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; padding: 20px; background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius); } .meta-item { display: flex; flex-direction: column; gap: 4px; } .meta-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); } .meta-value { font-size: 0.92rem; color: var(--text); font-weight: 500; } /* ============ DOCUMENT SECTIONS ============ */ .doc-sections { margin-bottom: 32px; } .section-block { margin-bottom: 24px; padding: 24px; background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius); border-left: 3px solid var(--primary); } .section-title { font-size: 1.1rem; font-weight: 600; color: var(--primary); margin-bottom: 12px; } .section-content { font-size: 0.92rem; line-height: 1.7; color: var(--text); } .doc-content { padding: 28px; background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius); font-size: 0.92rem; line-height: 1.7; } .doc-content mark, .section-content mark { background: #C8E6C9; color: var(--text); padding: 1px 4px; border-radius: 2px; } /* ============ DOCUMENT ACTIONS ============ */ .doc-actions { display: flex; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border-light); } .action-form { display: inline-flex; } /* ============ EMPTY STATE ============ */ .empty-state { text-align: center; padding: 64px 32px; } .empty-icon { width: 64px; height: 64px; color: var(--border); margin-bottom: 20px; } .empty-text { font-size: 1rem; color: var(--text-secondary); margin-bottom: 8px; } .empty-tips { margin: 20px 0; text-align: left; max-width: 360px; margin-left: auto; margin-right: auto; } .empty-tips p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 6px; } /* ============ RESPONSIVE ============ */ @media (max-width: 768px) { .header-inner { padding: 12px 20px; gap: 12px; } .header-sub { display: none; } .main { padding: 20px; } .hero { padding: 32px 0 24px; } .hero-title { font-size: 1.5rem; } .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .doc-grid { grid-template-columns: 1fr; } .search-box { flex-direction: column; border-radius: var(--radius); } .search-input-wrap { padding: 0 16px; } .btn { width: 100%; justify-content: center; border-radius: 0 0 var(--radius) var(--radius); } .meta-grid { grid-template-columns: 1fr 1fr; } .doc-actions { flex-direction: column; } .footer-inner { flex-direction: column; gap: 4px; text-align: center; } }