/* ===== CSS Variables & Reset ===== */ :root { --primary-blue: #1E3A8A; --primary-blue-light: #2563eb; --accent-green: #22c55e; --accent-red: #ef4444; --accent-purple: #7c3aed; --text-dark: #1f2937; --text-light: #6b7280; --border-color: #e5e7eb; --bg-light: #f8fafc; --bg-white: #ffffff; } * { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; width: 100%; overflow: hidden; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f4f6fa; } /* ===== App Container ===== */ .app-container { display: flex; flex-direction: column; height: 100vh; width: 100%; overflow: hidden; } /* ===== Header Styles ===== */ .site-header { background: linear-gradient(135deg, #011329 0%, #0a2540 100%); box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.1), 0 6px 8px -4px rgba(0, 0, 0, 0.1); height: 60px; flex-shrink: 0; position: sticky; top: 0; z-index: 1000; transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1); border-bottom: 1px solid rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(1, 19, 41, 0.95); } .site-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(1, 19, 41, 0.95) 100%); z-index: -1; } .site-header.scrolled { height: 56px; box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.1), 0 3px 5px -3px rgba(0, 0, 0, 0.1); } .header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 32px; max-width: 1400px; margin: 0 auto; width: 100%; } .logo-cluster { display: flex; align-items: center; gap: 12px; margin-left: -252px; } .logo-img-header { width: 48px; height: 48px; border-radius: 50%; background: white; padding: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); cursor: pointer; transition: transform 0.2s; } .logo-img-header:hover { transform: scale(1.05); } .py-detect-title-header { font-size: 28px; font-weight: 900; letter-spacing: 3px; color: #38bdf8; display: flex; align-items: center; gap: 2px; } .py-detect-title-header .py-letter.p, .py-detect-title-header .py-letter.d, .py-detect-title-header .py-letter.t, .py-detect-title-header .py-letter.c { color: #e3f6ff; text-shadow: 0 0 6px #38bdf8; } .py-detect-title-header .py-letter.y, .py-detect-title-header .py-letter.e, .py-detect-title-header .py-letter.e2, .py-detect-title-header .py-letter.t2 { color: #38bdf8; text-shadow: 0 0 6px #38bdf8; } .py-shape { display: inline-block; width: 16px; height: 4px; background: #e3f6ff; margin: 0 6px; border-radius: 2px; box-shadow: 0 0 6px #38bdf8; } .header-actions-right { display: flex; align-items: center; gap: 12px; margin-right: -250px; } .back-btn, .logout-btn { font-weight: 600; font-size: 11px; padding: 6px 12px; border-radius: 6px; border: none; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; backdrop-filter: blur(8px); } .back-btn { background: white; color: #374151; border: 1px solid #d1d5db; } .back-btn:hover { background: #f9fafb; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .logout-btn { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; } .logout-btn:hover { background: linear-gradient(135deg, #dc2626, #ef4444); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3); } .back-icon, .logout-icon { font-size: 16px; } /* ===== Main Content Area ===== */ .main-content { flex: 1; overflow: hidden; display: flex; flex-direction: column; } .content-container { flex: 1; overflow: hidden; padding: 20px; max-width: 1882px; margin: 0 auto; width: 100%; } .record-card { background: white; border-radius: 12px; box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px; overflow: hidden; display: flex; flex-direction: column; height: 90%; min-height: 0; } /* ===== Analytics Blue Section ===== */ .analytics-blue { background: #1E3A8A; padding: 20px 32px; flex-shrink: 0; } .record-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .record-title-group { display: flex; align-items: center; gap: 16px; } .record-title { font-size: 20px; font-weight: 700; color: white; display: flex; align-items: center; gap: 10px; } .record-title i { font-size: 18px; color: #38bdf8; } .record-dropdown { padding: 8px 16px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); color: white; font-size: 14px; font-weight: 500; cursor: pointer; min-width: 160px; } .record-dropdown:focus { outline: none; border-color: #38bdf8; } option { color: black; } .record-search-container { position: relative; } .record-search { width: 280px; padding: 10px 16px 10px 42px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); color: white; font-size: 14px; transition: all 0.3s; } .record-search:focus { outline: none; border-color: #38bdf8; background: rgba(255, 255, 255, 0.15); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1); } .record-search::placeholder { color: rgba(255, 255, 255, 0.7); } .analytics-cards { display: flex; gap: 20px; flex-shrink: 0; } .summary-card { flex: 1; background: rgba(255, 255, 255, 0.95); border-radius: 10px; padding: 18px; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); min-height: 85px; } .summary-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); } .summary-left { display: flex; flex-direction: column; } .summary-label { font-size: 18px; font-weight: 900; color: #6b7280; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; } .summary-value { font-size: 30px; font-weight: 700; font-family: 'Segoe UI', sans-serif; line-height: 1; } .summary-value.blue { color: #2563eb; } .summary-value.green { color: #22c55e; } .summary-value.red { color: #ef4444; } .summary-icon { width: 42px; height: 42px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: white; } .summary-card.total .summary-icon { background: linear-gradient(135deg, #1E3A8A, #1e40af); } .summary-card.open .summary-icon { background: linear-gradient(135deg, #16a34a, #15803d); } .summary-card.closed .summary-icon { background: linear-gradient(135deg, #dc2626, #b91c1c); } /* ===== Record Meta ===== */ .record-meta { padding: 14px 32px; background: #f8fafc; border-bottom: 1px solid var(--border-color); color: #6b7280; font-size: 14px; font-weight: 500; flex-shrink: 0; } /* ===== Filter Bar ===== */ .filter-bar { display: flex; align-items: center; gap: 16px; padding: 16px 32px; background: #f8fafc; border-bottom: 1px solid var(--border-color); flex-shrink: 0; flex-wrap: wrap; } .filter-icon { color: #6b7280; font-size: 16px; } .filter-select { padding: 9px 16px; border-radius: 6px; border: 1px solid var(--border-color); background: white; color: #374151; font-size: 14px; font-weight: 500; min-width: 150px; cursor: pointer; transition: all 0.2s; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); } .filter-select:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); } .filter-btn { padding: 9px 18px; border-radius: 6px; border: none; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s; } .filter-btn.apply { background: #2563eb; color: white; } .filter-btn.apply:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3); } .filter-btn.reset { background: #E5E7EB; color: #374151; border: 1px solid #D1D5DB; } .filter-btn.reset:hover { background: #D1D5DB; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(107, 114, 128, 0.2); } .filter-btn.reset i { color: #6B7280; } /* ===== Table Container ===== */ .table-container { flex: 1; overflow: hidden; display: flex; flex-direction: column; min-height: 0; } .table-wrapper { flex: 1; overflow: auto; padding: 0 32px; background: white; } .table-wrapper::-webkit-scrollbar { width: 8px; height: 8px; } .table-wrapper::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; } .table-wrapper::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; } .table-wrapper::-webkit-scrollbar-thumb:hover { background: #a8a8a8; } .record-table { width: 100%; border-collapse: separate; border-spacing: 0; background: white; min-height: 118px; } .record-table thead { position: sticky; top: 0; z-index: 10; background: #f8fafc; } .record-table th { padding: 18px 16px; text-align: left; font-weight: 600; color: #374151; font-size: 13px; border-bottom: 2px solid var(--border-color); white-space: nowrap; position: relative; } .record-table th i { color: #64748B; margin-right: 8px; font-size: 13px; } .record-table th.sortable { cursor: pointer; user-select: none; } .record-table th.sortable:hover { background: #f1f5f9; } .sort { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; opacity: 0.5; } .sort.asc { border-bottom: 8px solid #374151; } .sort.desc { border-top: 8px solid #374151; } .sort.neutral { border-top: 8px solid #9ca3af; } .record-table td { padding: 16px 16px; border-bottom: 1px solid var(--border-color); color: #374151; font-size: 14px; white-space: nowrap; box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; } .record-table tbody tr { transition: background 0.2s; } .record-table tbody tr:hover { background: #f8fafc; } .sl-no-col { width: 80px; text-align: center; } .case-id-link { color: #2563eb; text-decoration: none; font-weight: 600; cursor: pointer; transition: color 0.2s; } .case-id-link:hover { color: #1d4ed8; text-decoration: underline; } /* Status Badges */ .status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; min-width: 110px; justify-content: center; } .status-badge.status-open { background: #dcfce7; color: #166534; } .status-badge.status-open .status-dot { background: #166534; } .status-badge.status-under { background: #fef3c7; color: #92400e; } .status-badge.status-under .status-dot { background: #92400e; } .status-badge.status-closed { background: #fee2e2; color: #991b1b; } .status-badge.status-closed .status-dot { background: #991b1b; } .status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } /* Empty values */ .empty-value { color: #9CA3AF; font-style: italic; } /* Action Buttons */ .actions-col { width: 160px; } .action-buttons { display: flex; gap: 8px; } .action-btn { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--border-color); background: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; position: relative; } .action-btn::after { content: attr(title); position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); background: #374151; color: white; padding: 4px 8px; border-radius: 4px; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 100; } .action-btn:hover::after { opacity: 1; } .action-btn.view { color: #2563eb; border-color: #dbeafe; } .action-btn.view:hover { background: #dbeafe; border-color: #2563eb; } .action-btn.edit { color: #7c3aed; border-color: #ede9fe; } .action-btn.edit:hover { background: #ede9fe; border-color: #7c3aed; } .action-btn.delete { color: #ef4444; border-color: #fee2e2; } .action-btn.delete:hover { background: #fee2e2; border-color: #ef4444; } /* Empty State */ .empty { text-align: center; padding: 60px 20px; color: #9ca3af; font-size: 16px; background: white; } .empty i { font-size: 32px; margin-bottom: 16px; display: block; opacity: 0.5; } /* ===== Bottom Controls ===== */ .bottom-controls { display: flex; justify-content: space-between; align-items: center; padding: 16px 32px; background: #f8fafc; border-top: 1px solid var(--border-color); flex-shrink: 0; } .results-summary { display: flex; align-items: center; gap: 20px; } .results-info { display: flex; align-items: center; gap: 8px; color: #6b7280; font-size: 14px; font-weight: 500; } .results-info i { color: #2563eb; } .page-size-selector { display: flex; align-items: center; gap: 8px; color: #6b7280; font-size: 14px; } .page-size-selector select { padding: 6px 12px; border-radius: 4px; border: 1px solid var(--border-color); background: white; color: #374151; font-size: 14px; cursor: pointer; } .pagination-controls { display: flex; align-items: center; gap: 6px; } .page-btn { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--border-color); background: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; color: #374151; } .page-btn:hover:not(:disabled) { background: #f3f4f6; border-color: #9ca3af; } .page-btn:disabled { opacity: 0.5; cursor: not-allowed; } .page-numbers { display: flex; align-items: center; gap: 4px; } .page-number { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--border-color); background: white; color: #374151; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; } .page-number:hover { background: #f3f4f6; } .page-number.active { background: #2563eb; color: white; border-color: #2563eb; } .page-ellipsis { padding: 0 8px; color: #9ca3af; font-size: 14px; } /* ===== FOOTER ===== */ footer { background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(1, 19, 41, 0.95) 100%); color: #fff; text-align: center; padding: 12px 0; position: fixed; bottom: 0; left: 0; width: 100%; font-size: 12px; font-weight: 500; z-index: 1000; } /* ===== Responsive Design ===== */ @media (max-width: 1200px) { .header-inner { padding: 0 24px; } .content-container { padding: 16px; } .analytics-blue, .record-meta, .filter-bar, .table-wrapper, .bottom-controls { padding-left: 24px; padding-right: 24px; } } @media (max-width: 992px) { .analytics-cards { flex-direction: column; gap: 16px; } .record-header { flex-direction: column; align-items: stretch; gap: 16px; } .record-title-group { flex-direction: column; align-items: stretch; gap: 12px; } .record-dropdown, .record-search { width: 100%; } .filter-bar { gap: 12px; } .filter-select { flex: 1; min-width: 120px; } .table-wrapper { padding: 0 16px; overflow-x: auto; } .record-table { min-width: 800px; } } @media (max-width: 768px) { .header-inner { padding: 0 16px; flex-direction: column; height: auto; padding: 12px 16px; gap: 12px; } .py-detect-title-header { font-size: 22px; letter-spacing: 2px; } .header-actions-right { width: 100%; justify-content: space-between; } .back-btn, .logout-btn { flex: 1; justify-content: center; } .analytics-blue, .record-meta, .filter-bar, .table-wrapper, .bottom-controls { padding-left: 16px; padding-right: 16px; } .summary-value { font-size: 22px; } .summary-icon { width: 40px; height: 40px; font-size: 18px; } .bottom-controls { flex-direction: column; gap: 16px; align-items: stretch; } .results-summary { width: 100%; justify-content: space-between; } .pagination-controls { width: 100%; justify-content: center; } } @media (max-width: 480px) { .py-detect-title-header { font-size: 18px; letter-spacing: 1px; } .header-actions-right { flex-direction: column; gap: 8px; } .summary-card { padding: 16px; } .summary-value { font-size: 20px; } .summary-icon { width: 36px; height: 36px; font-size: 16px; } .filter-bar { flex-direction: column; align-items: stretch; } .filter-select, .filter-btn { width: 100%; } .action-buttons { flex-direction: column; gap: 4px; } .action-btn { width: 32px; height: 32px; } }