:root { --primary: #1a365d; --primary-dark: #0f2442; --accent: #2c5282; --light: #f7fafc; --gray: #718096; --gray-light: #e2e8f0; --white: #ffffff; --shadow: 0 4px 6px rgba(0, 0, 0, 0.1); --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--light); color: var(--primary); line-height: 1.6; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* Header */ header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); padding: 40px 0; box-shadow: var(--shadow-lg); } header h1 { font-size: 32px; font-weight: 700; margin-bottom: 10px; } header p { font-size: 16px; opacity: 0.9; max-width: 800px; } /* Search */ .search-container { background: var(--white); padding: 30px 0; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; } .search-box { display: flex; gap: 15px; max-width: 800px; margin: 0 auto; } .search-input { flex: 1; padding: 14px 20px; border: 2px solid var(--gray-light); border-radius: 8px; font-size: 16px; transition: border-color 0.3s; } .search-input:focus { outline: none; border-color: var(--accent); } .search-btn { padding: 14px 30px; background: var(--accent); color: var(--white); border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.3s; } .search-btn:hover { background: var(--primary); } /* Categories */ .categories { padding: 40px 0; } .category-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; justify-content: center; } .category-tab { padding: 12px 24px; background: var(--white); border: 2px solid var(--gray-light); border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.3s; display: flex; align-items: center; gap: 8px; } .category-tab:hover { border-color: var(--accent); background: #ebf8ff; } .category-tab.active { background: var(--accent); color: var(--white); border-color: var(--accent); } /* Documents Grid */ .documents-section { padding: 20px 0 60px; } .section-title { font-size: 28px; font-weight: 700; margin-bottom: 30px; color: var(--primary); display: flex; align-items: center; gap: 12px; } .documents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 24px; } .document-card { background: var(--white); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); transition: all 0.3s; border: 1px solid var(--gray-light); } .document-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } .document-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--primary); } .document-card p { font-size: 14px; color: var(--gray); margin-bottom: 20px; line-height: 1.5; } .document-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--gray-light); } .document-type { font-size: 12px; padding: 4px 12px; background: #ebf8ff; color: var(--accent); border-radius: 20px; font-weight: 600; text-transform: uppercase; } .view-btn { padding: 8px 20px; background: var(--accent); color: var(--white); border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.3s; } .view-btn:hover { background: var(--primary); } /* Modal */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; } .modal-overlay.active { display: flex; } .modal { background: var(--white); border-radius: 12px; max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); } .modal-header { padding: 24px; border-bottom: 1px solid var(--gray-light); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--white); border-radius: 12px 12px 0 0; } .modal-header h2 { font-size: 22px; color: var(--primary); } .close-btn { background: none; border: none; font-size: 28px; cursor: pointer; color: var(--gray); transition: color 0.3s; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; } .close-btn:hover { color: var(--primary); } .modal-body { padding: 24px; } .document-content { background: var(--light); padding: 30px; border-radius: 8px; font-family: "Courier New", Courier, monospace; font-size: 14px; line-height: 1.8; white-space: pre-wrap; max-height: 60vh; overflow-y: auto; border: 1px solid var(--gray-light); } .modal-footer { padding: 24px; border-top: 1px solid var(--gray-light); display: flex; justify-content: flex-end; gap: 12px; position: sticky; bottom: 0; background: var(--white); border-radius: 0 0 12px 12px; } .download-btn { padding: 12px 30px; background: var(--accent); color: var(--white); border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.3s; display: flex; align-items: center; gap: 8px; } .download-btn:hover { background: var(--primary); } .secondary-btn { padding: 12px 30px; background: var(--white); color: var(--accent); border: 2px solid var(--accent); border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; } .secondary-btn:hover { background: #ebf8ff; } /* No Results */ .no-results { text-align: center; padding: 60px 20px; color: var(--gray); } .no-results h3 { font-size: 20px; margin-bottom: 10px; } /* Footer */ footer { background: var(--primary-dark); color: var(--white); padding: 30px 0; text-align: center; } footer p { font-size: 14px; opacity: 0.8; } /* Responsive */ @media (max-width: 768px) { header h1 { font-size: 24px; } header p { font-size: 14px; } .search-box { flex-direction: column; } .documents-grid { grid-template-columns: 1fr; } .category-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 10px; } .category-tab { white-space: nowrap; } .modal { max-height: 95vh; margin: 10px; } .modal-header h2 { font-size: 18px; } .document-content { padding: 20px; font-size: 13px; } .modal-footer { flex-direction: column; } .download-btn, .secondary-btn { width: 100%; justify-content: center; } } /* Print styles */ @media print { .modal-overlay { position: absolute; background: white; } .modal { max-width: 100%; box-shadow: none; } .modal-header, .modal-footer { display: none; } .document-content { max-height: none; border: none; padding: 0; } }