Py-detect / src /app /case-details-summary-page /case-details-summary-page.component.css
RajalashmiNagarajan
updated
5df7b16
/* case-details-summary-page.component.css */
/* ===== CSS Reset ===== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
width: 100%;
overflow: auto;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
font-size: 12px;
scroll-behavior: smooth;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* ===== Animations ===== */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInLeft {
from {
opacity: 0;
transform: translateX(-20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes fadeInRight {
from {
opacity: 0;
transform: translateX(20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes pulse {
0%, 100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.05);
opacity: 0.8;
}
}
@keyframes pulse-ring {
0% {
transform: scale(0.8);
opacity: 0.5;
}
80%, 100% {
transform: scale(2);
opacity: 0;
}
}
@keyframes shimmer {
0% {
background-position: -1000px 0;
}
100% {
background-position: 1000px 0;
}
}
@keyframes float {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-8px);
}
}
@keyframes gradientShift {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
@keyframes ripple {
0% {
transform: scale(0);
opacity: 0.5;
}
100% {
transform: scale(4);
opacity: 0;
}
}
@keyframes slideIn {
from {
transform: translateX(-100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes scaleIn {
from {
transform: scale(0.95);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* ===== 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);
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 20px;
max-width: 1440px;
margin: 0 auto;
width: 100%;
}
.logo-cluster {
display: flex;
align-items: center;
gap: 12px;
margin-left: -220px; /* Remove negative margin if it exists */
}
.brand-logo {
display: flex;
align-items: center;
gap: 12px;
position: relative;
}
.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;
}
.action-buttons {
display: flex;
align-items: center;
gap: 8px;
margin-right: -209px;
}
.action-btn {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: 6px;
border: none;
font-size: 11px;
font-weight: 600;
cursor: pointer;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
backdrop-filter: blur(8px);
}
.action-btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}
.action-btn:hover::before {
width: 200px;
height: 200px;
}
.action-btn.print-btn {
background: rgba(255, 255, 255, 0.1);
color: #ffffff;
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1), 0 1px 1px -1px rgba(0, 0, 0, 0.1);
}
.action-btn.print-btn:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-1px);
box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.1), 0 2px 3px -2px rgba(0, 0, 0, 0.1);
border-color: rgba(255, 255, 255, 0.3);
}
.action-btn.export-btn {
background: linear-gradient(135deg, #f97316, #ea580c);
color: #ffffff;
border: none;
box-shadow: 0 3px 10px 0 rgba(249, 115, 22, 0.3);
}
.action-btn.export-btn:hover {
transform: translateY(-1px);
box-shadow: 0 6px 12px -3px rgba(0, 0, 0, 0.1), 0 3px 5px -3px rgba(0, 0, 0, 0.1);
animation: pulse 1s ease-in-out;
}
.btn-label {
font-size: 11px;
font-weight: 600;
letter-spacing: 0.2px;
}
.back-btn {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 14px;
background: rgba(255, 255, 255, 0.95);
color: #111827;
border: 1px solid #e5e7eb;
border-radius: 6px;
font-weight: 600;
font-size: 11px;
cursor: pointer;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1), 0 1px 1px -1px rgba(0, 0, 0, 0.1);
}
.back-btn:hover {
background: #ffffff;
transform: translateX(-2px);
box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.1), 0 2px 3px -2px rgba(0, 0, 0, 0.1);
border-color: #1E3A8A;
color: #1E3A8A;
}
.back-btn i {
font-size: 11px;
transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.back-btn:hover i {
transform: translateX(-2px);
}
/* ===== Loading Overlay ===== */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, #011329 0%, #0a2540 100%);
display: flex;
align-items: center;
justify-content: center;
z-index: 2000;
animation: fadeIn 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.loading-spinner {
text-align: center;
color: white;
position: relative;
}
.spinner-ring {
width: 60px;
height: 60px;
border: 2px solid rgba(56, 189, 248, 0.3);
border-top-color: #38bdf8;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 16px;
box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}
.loading-spinner i {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 20px;
color: #38bdf8;
animation: pulse 2s infinite;
}
.loading-spinner p {
color: #cbd5e1;
font-weight: 500;
font-size: 14px;
margin-top: 16px;
animation: pulse 2s ease-in-out infinite;
}
/* ===== Main Layout ===== */
.case-details-summary-layout {
display: flex;
height: calc(108vh - 137px);
overflow: hidden;
background: #f8fafc;
position: relative;
}
/* ===== Sidebar Navigation ===== */
.sidebar {
width: 272px;
background: #ffffff;
flex-shrink: 0;
display: flex;
flex-direction: column;
border-right: 1px solid #e5e7eb;
box-shadow: 0 6px 12px -3px rgba(0, 0, 0, 0.1), 0 3px 5px -3px rgba(0, 0, 0, 0.1);
animation: fadeInLeft 250ms cubic-bezier(0.4, 0, 0.2, 1);
z-index: 100;
position: relative;
height: 88.5vh;
}
.sidebar::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
z-index: -1;
}
.sidebar-nav {
flex: 1;
padding: 16px 0;
overflow-y: auto;
overflow-x: hidden;
}
.sidebar-nav::-webkit-scrollbar {
width: 5px;
}
.sidebar-nav::-webkit-scrollbar-track {
background: #f9fafb;
border-radius: 3px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
background: #e5e7eb;
border-radius: 3px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
background: #d1d5db;
}
.nav-section {
margin-bottom: 4px;
position: relative;
}
.nav-section-header {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
color: #374151;
font-weight: 600;
font-size: 12px;
cursor: pointer;
border-left: 3px solid transparent;
background: transparent;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
border-bottom: 1px solid transparent;
}
.nav-section-header:hover {
background: linear-gradient(90deg, rgba(30, 58, 138, 0.05), transparent);
color: #1E3A8A;
border-left-color: #1E3A8A;
transform: translateX(2px);
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1), 0 1px 1px -1px rgba(0, 0, 0, 0.1);
}
.nav-section-header:hover .nav-icon-wrapper {
transform: scale(1.08);
background: linear-gradient(135deg, #1E3A8A, #2563eb);
box-shadow: 0 3px 10px 0 rgba(30, 58, 138, 0.3);
}
.nav-icon-wrapper {
width: 32px;
height: 32px;
border-radius: 6px;
background: #f9fafb;
display: flex;
align-items: center;
justify-content: center;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
border: 1px solid #e5e7eb;
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.05);
}
.nav-section-header i:first-child {
font-size: 14px;
color: #1E3A8A;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-chevron {
margin-left: auto;
transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
font-size: 10px;
color: #9CA3AF;
}
.nav-chevron.rotated {
transform: rotate(90deg);
color: #1E3A8A;
}
.nav-subgroups {
padding: 8px 0;
background: #f9fafb;
border-left: 3px solid #e5e7eb;
animation: fadeIn 250ms cubic-bezier(0.4, 0, 0.2, 1);
border-bottom: 1px solid #e5e7eb;
}
.nav-subgroup-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 16px 10px 44px;
color: #374151;
font-size: 11px;
cursor: pointer;
border-left: 3px solid transparent;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
border-bottom: 1px solid transparent;
}
.nav-subgroup-item:hover {
background: rgba(30, 58, 138, 0.05);
color: #1E3A8A;
transform: translateX(2px);
border-bottom-color: #e5e7eb;
}
.nav-subgroup-item:hover .subgroup-icon-wrapper {
transform: scale(1.08);
background: #1E3A8A;
box-shadow: 0 3px 10px 0 rgba(30, 58, 138, 0.3);
}
.nav-subgroup-item.active {
background: rgba(30, 58, 138, 0.08);
color: #1E3A8A;
font-weight: 600;
border-left-color: #1E3A8A;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1), 0 1px 1px -1px rgba(0, 0, 0, 0.1);
}
.nav-subgroup-item.active .subgroup-icon-wrapper {
background: #1E3A8A;
box-shadow: 0 3px 10px 0 rgba(30, 58, 138, 0.3);
}
.subgroup-icon-wrapper {
width: 28px;
height: 28px;
border-radius: 5px;
background: #f3f4f6;
display: flex;
align-items: center;
justify-content: center;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
border: 1px solid #e5e7eb;
}
.nav-subgroup-item i {
font-size: 12px;
color: #1E3A8A;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-subgroup-item.active i {
color: white;
}
.nav-subgroup-item:hover i {
color: white;
}
.subgroup-indicator {
margin-left: auto;
width: 5px;
height: 5px;
border-radius: 50%;
background: #22c55e;
opacity: 0;
transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 0 6px #22c55e;
}
.nav-subgroup-item.active .subgroup-indicator {
opacity: 1;
animation: pulse 2s infinite;
}
/* Sidebar Footer */
.sidebar-footer {
padding: 16px;
border-top: 1px solid #e5e7eb;
background: #f9fafb;
animation: fadeInUp 250ms cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}
.case-summary {
background: #ffffff;
border-radius: 10px;
padding: 16px;
border: 1px solid #e5e7eb;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1), 0 1px 1px -1px rgba(0, 0, 0, 0.1);
}
.case-summary h4 {
color: #111827;
font-size: 11px;
margin-bottom: 16px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.4px;
display: flex;
align-items: center;
gap: 6px;
padding-bottom: 10px;
border-bottom: 2px solid #e5e7eb;
}
.case-summary h4 i {
color: #1E3A8A;
}
.summary-item {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
padding: 10px;
background: #f9fafb;
border-radius: 6px;
border: 1px solid #e5e7eb;
animation: fadeInUp 250ms cubic-bezier(0.4, 0, 0.2, 1);
animation-fill-mode: both;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.summary-item:hover {
transform: translateY(-1px);
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1), 0 1px 1px -1px rgba(0, 0, 0, 0.1);
border-color: #1E3A8A;
}
.summary-label {
color: #6b7280;
font-size: 11px;
font-weight: 600;
}
.summary-value {
font-size: 11px;
font-weight: 700;
padding: 4px 10px;
border-radius: 16px;
border: 2px solid;
min-width: 70px;
text-align: center;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.05);
}
.summary-value:hover {
transform: scale(1.04);
}
.summary-value.open {
background: linear-gradient(135deg, #86efac, #22c55e);
color: #166534;
border-color: rgba(34, 197, 94, 0.3);
box-shadow: 0 3px 10px 0 rgba(34, 197, 94, 0.3);
}
.summary-value.under-investigation {
background: linear-gradient(135deg, #fdba74, #f97316);
color: #92400e;
border-color: rgba(249, 115, 22, 0.3);
box-shadow: 0 3px 10px 0 rgba(249, 115, 22, 0.3);
}
.summary-value.closed {
background: linear-gradient(135deg, #fca5a5, #ef4444);
color: #991b1b;
border-color: rgba(239, 68, 68, 0.3);
box-shadow: 0 3px 10px 0 rgba(239, 68, 68, 0.3);
}
.summary-value.pending,
.summary-value.not-assigned {
background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
color: #374151;
border-color: #e5e7eb;
}
.summary-progress {
margin-top: 16px;
padding-top: 12px;
border-top: 2px solid #e5e7eb;
}
.progress-label {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
font-size: 11px;
font-weight: 600;
color: #111827;
}
.progress-bar {
height: 6px;
background: #f3f4f6;
border-radius: 3px;
overflow: hidden;
border: 1px solid #e5e7eb;
box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #38bdf8, #1E3A8A);
border-radius: 3px;
transition: width 1s ease-in-out;
position: relative;
overflow: hidden;
}
.progress-fill::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
animation: shimmer 2s infinite;
}
/* ===== Main Content Area ===== */
.main-content {
flex: 1;
padding: 16px;
background: #f8fafc;
overflow-y: auto;
overflow-x: hidden;
display: flex;
flex-direction: column;
position: relative;
}
.main-content::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(249, 250, 251, 0.9) 100%);
z-index: -1;
}
/* ===== Case Header Banner ===== */
.case-header-banner {
background: linear-gradient(135deg, #1E3A8A 0%, #1e40af 100%);
border-radius: 12px;
padding: 20px;
margin-bottom: 16px;
flex-shrink: 0;
box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2);
animation: fadeInDown 250ms cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.case-header-banner::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.case-header-content {
position: relative;
z-index: 1;
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
}
.case-identity {
flex: 1;
min-width: 0;
}
.case-ref-top {
display: flex;
justify-content: space-between;
margin-bottom: 8px;
}
.case-ref-label {
text-transform: uppercase;
letter-spacing: 1.2px;
margin-bottom: 2px;
display: block;
color: rgba(255, 255, 255, 0.9);
font-weight: 700;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.case-actions {
display: flex;
gap: 6px;
}
.case-action-btn {
width: 30px;
height: 30px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.3);
background: rgba(255, 255, 255, 0.1);
color: white;
cursor: pointer;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
align-items: center;
justify-content: center;
backdrop-filter: blur(8px);
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1), 0 1px 1px -1px rgba(0, 0, 0, 0.1);
}
.case-action-btn:hover {
background: rgba(255, 255, 255, 0.2);
transform: scale(1.08);
box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.1), 0 2px 3px -2px rgba(0, 0, 0, 0.1);
}
.case-action-btn.favorited {
background: rgba(245, 158, 11, 0.3);
border-color: rgba(245, 158, 11, 0.5);
box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}
.case-ref-value {
font-size: 28px;
font-weight: 900;
margin: 0 0 16px 0;
color: white;
text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
background: linear-gradient(135deg, #ffffff 0%, #e3f6ff 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
letter-spacing: -0.4px;
}
.case-tags {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.case-tag {
padding: 6px 12px;
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.25);
border-radius: 16px;
font-size: 11px;
font-weight: 600;
color: white;
display: flex;
align-items: center;
gap: 6px;
backdrop-filter: blur(8px);
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1), 0 1px 1px -1px rgba(0, 0, 0, 0.1);
}
.case-tag:hover {
background: rgba(255, 255, 255, 0.25);
transform: translateY(-1px);
box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.1), 0 2px 3px -2px rgba(0, 0, 0, 0.1);
}
.case-meta {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.case-status-badge {
padding: 8px 16px;
border-radius: 20px;
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.4px;
border: 2px solid;
display: flex;
align-items: center;
gap: 8px;
backdrop-filter: blur(8px);
animation: pulse 2s infinite;
box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.1), 0 2px 3px -2px rgba(0, 0, 0, 0.1);
}
.case-status-badge.open {
background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.4));
color: #dcfce7;
border-color: rgba(34, 197, 94, 0.5);
box-shadow: 0 3px 10px 0 rgba(34, 197, 94, 0.3);
}
.case-status-badge.under-investigation {
background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(249, 115, 22, 0.4));
color: #fef3c7;
border-color: rgba(249, 115, 22, 0.5);
box-shadow: 0 3px 10px 0 rgba(249, 115, 22, 0.3);
}
.case-status-badge.closed {
background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.4));
color: #fee2e2;
border-color: rgba(239, 68, 68, 0.5);
box-shadow: 0 3px 10px 0 rgba(239, 68, 68, 0.3);
}
.case-status-badge.pending,
.case-status-badge.not-assigned {
background: linear-gradient(135deg, rgba(156, 163, 175, 0.25), rgba(156, 163, 175, 0.4));
color: #f3f4f6;
border-color: rgba(156, 163, 175, 0.5);
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
display: inline-block;
animation: pulse 2s infinite;
box-shadow: 0 0 8px currentColor;
}
.case-priority {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: white;
}
.priority-label {
color: rgba(255, 255, 255, 0.9);
font-size: 11px;
font-weight: 600;
}
.priority-value {
font-weight: 800;
padding: 8px 14px;
border-radius: 16px;
border: 2px solid;
color: white;
font-size: 11px;
display: flex;
align-items: center;
gap: 6px;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.1), 0 2px 3px -2px rgba(0, 0, 0, 0.1);
}
.priority-value:hover {
transform: translateY(-1px);
box-shadow: 0 6px 12px -3px rgba(0, 0, 0, 0.1), 0 3px 5px -3px rgba(0, 0, 0, 0.1);
}
.priority-value.high {
background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.5));
border-color: rgba(239, 68, 68, 0.6);
}
.priority-value.medium {
background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(217, 119, 6, 0.5));
border-color: rgba(249, 115, 22, 0.6);
}
.priority-value.low {
background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(5, 150, 105, 0.5));
border-color: rgba(34, 197, 94, 0.6);
}
/* Quick Info Items */
.case-quick-info {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
min-width: 280px;
}
.quick-info-item {
display: flex;
align-items: center;
gap: 12px;
padding: 16px;
background: rgba(255, 255, 255, 0.95);
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.2);
backdrop-filter: blur(15px);
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
animation: fadeInUp 250ms cubic-bezier(0.4, 0, 0.2, 1);
animation-fill-mode: both;
box-shadow: 0 6px 20px rgba(31, 38, 135, 0.1);
}
.quick-info-item::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), transparent);
opacity: 0;
transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.quick-info-item:hover::before {
opacity: 1;
}
.quick-info-item:nth-child(1) {
animation-delay: 0.1s;
}
.quick-info-item:nth-child(2) {
animation-delay: 0.2s;
}
.quick-info-item:nth-child(3) {
animation-delay: 0.3s;
}
.quick-info-item:hover {
transform: translateY(-4px);
box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1), 0 6px 8px -4px rgba(0, 0, 0, 0.1);
border-color: rgba(56, 189, 248, 0.3);
}
.quick-info-item:hover .info-icon-wrapper {
transform: scale(1.08) rotate(5deg);
box-shadow: 0 3px 10px 0 rgba(30, 58, 138, 0.3);
}
.info-icon-wrapper {
width: 44px;
height: 44px;
border-radius: 10px;
background: linear-gradient(135deg, #1E3A8A, #2563eb);
display: flex;
align-items: center;
justify-content: center;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 3px 10px 0 rgba(30, 58, 138, 0.3);
border: 2px solid rgba(255, 255, 255, 0.3);
}
.quick-info-item i {
font-size: 20px;
color: white;
}
.info-content {
flex: 1;
min-width: 0;
}
.info-label {
display: block;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.8px;
margin-bottom: 6px;
color: #6b7280;
font-weight: 700;
}
.info-value {
display: block;
font-size: 16px;
font-weight: 800;
color: #111827;
line-height: 1.3;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.info-hover-effect {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, transparent, rgba(56, 189, 248, 0.1), transparent);
opacity: 0;
transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.quick-info-item:hover .info-hover-effect {
opacity: 1;
}
/* ===== Details Section ===== */
.details-section {
flex: 1;
display: flex;
flex-direction: column;
background: #ffffff;
border-radius: 12px;
border: 1px solid #e5e7eb;
overflow: hidden;
min-height: 0;
box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2);
animation: scaleIn 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* Section Header */
.section-header {
padding: 16px 20px;
background: linear-gradient(135deg, #f9fafb, #ffffff);
border-bottom: 2px solid #e5e7eb;
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
position: relative;
}
.section-header::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg, #1E3A8A, #38bdf8);
opacity: 0.5;
}
.section-title {
display: flex;
align-items: center;
gap: 16px;
}
.section-icon-wrapper {
width: 44px;
height: 44px;
border-radius: 10px;
background: linear-gradient(135deg, #1E3A8A, #2563eb);
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 3px 10px 0 rgba(30, 58, 138, 0.3);
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
border: 2px solid rgba(255, 255, 255, 0.3);
}
.section-title:hover .section-icon-wrapper {
transform: scale(1.04) rotate(5deg);
box-shadow: 0 6px 12px -3px rgba(0, 0, 0, 0.1), 0 3px 5px -3px rgba(0, 0, 0, 0.1);
}
.section-title i {
font-size: 20px;
color: white;
}
.section-title h2 {
font-size: 18px;
font-weight: 800;
color: #111827;
margin: 0;
letter-spacing: 0.4px;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.section-subtitle {
font-size: 12px;
color: #1E3A8A;
font-weight: 700;
margin-top: 4px;
display: flex;
align-items: center;
gap: 6px;
}
.section-subtitle::before {
content: '';
width: 6px;
height: 6px;
border-radius: 50%;
background: #38bdf8;
display: inline-block;
box-shadow: 0 0 8px #38bdf8;
}
.section-actions {
display: flex;
gap: 8px;
}
.section-action-btn {
width: 36px;
height: 36px;
border-radius: 10px;
border: 2px solid #e5e7eb;
background: #ffffff;
color: #6b7280;
cursor: pointer;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
position: relative;
overflow: hidden;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1), 0 1px 1px -1px rgba(0, 0, 0, 0.1);
}
.section-action-btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(30, 58, 138, 0.1);
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}
.section-action-btn:hover::before {
width: 150px;
height: 150px;
}
.section-action-btn:hover {
background: #1E3A8A;
border-color: #1E3A8A;
color: white;
transform: translateY(-2px);
box-shadow: 0 6px 12px -3px rgba(0, 0, 0, 0.1), 0 3px 5px -3px rgba(0, 0, 0, 0.1);
}
.section-action-btn.expand-all:hover {
background: #7c3aed;
border-color: #7c3aed;
box-shadow: 0 3px 15px rgba(124, 58, 237, 0.4);
}
/* ===== 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;
}
/* Details Content */
.details-content-scrollable {
overflow-y: scroll;
padding: 20px;
background: #ffffff;
height: 63vh;
position: relative;
}
.details-content-scrollable::-webkit-scrollbar {
width: 8px;
}
.details-content-scrollable::-webkit-scrollbar-track {
background: #f9fafb;
border-radius: 4px;
border: 1px solid #e5e7eb;
}
.details-content-scrollable::-webkit-scrollbar-thumb {
background: #d1d5db;
border-radius: 4px;
border: 2px solid #f9fafb;
}
.details-content-scrollable::-webkit-scrollbar-thumb:hover {
background: #9ca3af;
}
/* Form Grid */
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 16px;
}
.form-group {
display: flex;
flex-direction: column;
animation: fadeIn 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.form-group.description-field {
grid-column: 1 / -1;
}
.form-group.important-field {
border-left: 4px solid #1E3A8A;
padding-left: 12px;
background: linear-gradient(90deg, rgba(30, 58, 138, 0.03), transparent);
border-radius: 0 10px 10px 0;
}
.form-group.expanded .field-container {
box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1), 0 6px 8px -4px rgba(0, 0, 0, 0.1);
border-color: #1E3A8A;
transform: translateY(-4px);
background: linear-gradient(135deg, #ffffff, #f9fafb);
}
.form-group.expanded .field-expand-icon {
transform: rotate(180deg);
}
/* Field Container */
.field-container {
background: #ffffff;
border: 2px solid #e5e7eb;
border-radius: 10px;
overflow: hidden;
height: 100%;
display: flex;
flex-direction: column;
min-height: 0;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
position: relative;
box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.1), 0 2px 3px -2px rgba(0, 0, 0, 0.1);
align-items: center;
}
.field-container:hover {
border-color: #1E3A8A;
box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1), 0 6px 8px -4px rgba(0, 0, 0, 0.1);
transform: translateY(-3px);
}
.field-container:hover .field-icon-wrapper {
transform: scale(1.08);
background: #1E3A8A;
box-shadow: 0 3px 10px 0 rgba(30, 58, 138, 0.3);
}
.field-container:hover .field-icon-wrapper i {
color: white;
}
.field-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px;
background: linear-gradient(135deg, #f9fafb, #ffffff);
border-bottom: 2px solid #e5e7eb;
flex-shrink: 0;
gap: 0.2vw;
}
.field-label {
display: flex;
align-items: center;
gap: 12px;
min-width: 0;
flex: 1;
}
.field-icon-wrapper {
width: 36px;
height: 36px;
border-radius: 6px;
background: #f3f4f6;
display: flex;
align-items: center;
justify-content: center;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
border: 2px solid #e5e7eb;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1), 0 1px 1px -1px rgba(0, 0, 0, 0.1);
}
.field-label i {
font-size: 14px;
color: #1E3A8A;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.field-label-text {
color: #374151;
font-size: 12px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.4px;
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
}
.field-meta {
display: flex;
align-items: center;
gap: 12px;
flex-shrink: 0;
}
.field-type {
font-size: 10px;
color: #6b7280;
background: #f3f4f6;
padding: 4px 10px;
border-radius: 12px;
text-transform: uppercase;
letter-spacing: 0.4px;
font-weight: 800;
white-space: nowrap;
border: 1px solid #e5e7eb;
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.05);
}
.field-expand-icon {
font-size: 12px;
color: #9CA3AF;
transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
background: #ffffff;
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid #e5e7eb;
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.05);
}
.field-value-container {
padding: 16px;
background: #ffffff;
flex: 1;
min-height: 0;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}
.field-value {
color: #111827;
font-size: 14px;
line-height: 1.6;
word-break: break-word;
font-weight: 600;
width: 100%;
flex: 1;
}
.field-value.empty-field {
background: linear-gradient(135deg, #f9fafb, #f8fafc);
border-left: 4px solid #e5e7eb;
padding: 16px;
border-radius: 6px;
font-style: italic;
animation: pulse 3s infinite;
border: 1px solid #e5e7eb;
box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}
/* Not Provided State */
.not-provided {
color: #9CA3AF;
font-style: italic;
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
font-weight: 700;
padding: 10px;
background: rgba(156, 163, 175, 0.1);
border-radius: 6px;
border: 1px dashed #e5e7eb;
}
.not-provided i {
font-size: 16px;
color: #9CA3AF;
animation: pulse 2s infinite;
}
.field-actions {
display: flex;
gap: 8px;
flex-shrink: 0;
}
.field-action-btn {
width: 30px;
height: 30px;
border-radius: 6px;
border: 2px solid #e5e7eb;
background: #ffffff;
color: #6b7280;
cursor: pointer;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
position: relative;
overflow: hidden;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1), 0 1px 1px -1px rgba(0, 0, 0, 0.1);
}
.field-action-btn:hover {
background: #1E3A8A;
border-color: #1E3A8A;
color: white;
transform: scale(1.08);
box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.1), 0 2px 3px -2px rgba(0, 0, 0, 0.1);
}
.field-footer {
padding: 12px 16px;
background: linear-gradient(135deg, #f9fafb, #ffffff);
border-top: 2px solid #e5e7eb;
display: flex;
justify-content: space-between;
font-size: 11px;
color: #6b7280;
font-weight: 500;
}
.field-hint {
font-style: italic;
background: rgba(30, 58, 138, 0.05);
padding: 3px 8px;
border-radius: 5px;
border: 1px solid rgba(30, 58, 138, 0.1);
}
.field-updated {
font-weight: 600;
color: #374151;
background: rgba(156, 163, 175, 0.1);
padding: 3px 8px;
border-radius: 5px;
border: 1px solid #e5e7eb;
}
/* Empty Fields Summary */
.empty-fields-summary {
margin-top: 20px;
padding: 20px;
background: linear-gradient(135deg, #fef3c7, #fef9c3);
border: 2px solid #fde68a;
border-radius: 10px;
animation: fadeIn 250ms cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 6px 12px -3px rgba(0, 0, 0, 0.1), 0 3px 5px -3px rgba(0, 0, 0, 0.1);
}
.summary-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 16px;
}
.summary-header i {
font-size: 24px;
color: #d97706;
animation: pulse 2s infinite;
}
.summary-header h3 {
font-size: 16px;
color: #92400e;
font-weight: 800;
margin: 0;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.empty-fields-summary p {
color: #92400e;
margin-bottom: 20px;
line-height: 1.6;
font-size: 13px;
font-weight: 500;
}
.fill-empty-btn {
background: linear-gradient(135deg, #f97316, #ea580c);
color: white;
border: none;
padding: 12px 20px;
border-radius: 10px;
font-weight: 700;
font-size: 13px;
cursor: pointer;
display: flex;
align-items: center;
gap: 10px;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 3px 10px 0 rgba(249, 115, 22, 0.3);
border: 2px solid rgba(249, 115, 22, 0.3);
}
.fill-empty-btn:hover {
transform: translateY(-2px);
box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1), 0 6px 8px -4px rgba(0, 0, 0, 0.1);
}
/* Empty State */
.empty-state {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 60px 32px;
text-align: center;
background: #ffffff;
border-radius: 12px;
border: 2px dashed #e5e7eb;
animation: fadeIn 250ms cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 6px 12px -3px rgba(0, 0, 0, 0.1), 0 3px 5px -3px rgba(0, 0, 0, 0.1);
position: relative;
overflow: hidden;
}
.empty-state::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(30, 58, 138, 0.02), rgba(56, 189, 248, 0.02));
z-index: -1;
}
.empty-state-icon {
font-size: 60px;
color: #1E3A8A;
margin-bottom: 32px;
position: relative;
animation: float 6s ease-in-out infinite;
}
.pulse-ring {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80px;
height: 80px;
border: 2px solid #38bdf8;
border-radius: 50%;
animation: pulse-ring 3s infinite;
}
.empty-state h3 {
font-size: 24px;
color: #111827;
margin-bottom: 16px;
font-weight: 900;
background: linear-gradient(135deg, #1E3A8A, #2563eb);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
letter-spacing: -0.4px;
}
.empty-state p {
color: #6b7280;
max-width: 400px;
line-height: 1.6;
margin-bottom: 32px;
font-size: 16px;
font-weight: 500;
}
.empty-state-actions {
display: flex;
gap: 16px;
margin-bottom: 32px;
}
.primary-btn {
padding: 14px 28px;
background: linear-gradient(135deg, #1E3A8A, #2563eb);
color: white;
border: none;
border-radius: 10px;
font-weight: 800;
font-size: 14px;
cursor: pointer;
display: flex;
align-items: center;
gap: 12px;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
box-shadow: 0 3px 10px 0 rgba(30, 58, 138, 0.3);
border: 2px solid rgba(255, 255, 255, 0.3);
}
.primary-btn:hover {
transform: translateY(-4px);
box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2);
letter-spacing: 0.5px;
}
.secondary-btn {
padding: 14px 28px;
background: white;
color: #1E3A8A;
border: 2px solid #1E3A8A;
border-radius: 10px;
font-weight: 800;
font-size: 14px;
cursor: pointer;
display: flex;
align-items: center;
gap: 12px;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.1), 0 2px 3px -2px rgba(0, 0, 0, 0.1);
}
.secondary-btn:hover {
background: #1E3A8A;
color: white;
transform: translateY(-4px);
box-shadow: 0 6px 12px -3px rgba(0, 0, 0, 0.1), 0 3px 5px -3px rgba(0, 0, 0, 0.1);
}
.empty-state-tips {
margin-top: 32px;
padding-top: 16px;
border-top: 2px solid #e5e7eb;
width: 100%;
max-width: 400px;
}
.tip {
display: flex;
align-items: center;
gap: 12px;
color: #6b7280;
font-size: 13px;
font-weight: 500;
padding: 10px;
background: rgba(30, 58, 138, 0.05);
border-radius: 6px;
border: 1px solid rgba(30, 58, 138, 0.1);
}
.tip i {
color: #f97316;
font-size: 18px;
animation: pulse 2s infinite;
}
/* Quick Actions Bar */
.quick-actions-bar {
position: fixed;
bottom: 70px; /* Increased from 59px for better visibility above footer */
right: 20px;
display: flex;
flex-direction: column;
gap: 12px;
z-index: 1101;
animation: fadeInUp 250ms cubic-bezier(0.4, 0, 0.2, 1);
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
padding: 10px;
border-radius: 16px;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
border: 1px solid rgba(30, 58, 138, 0.1);
}
.quick-action {
width: 48px;
height: 48px;
border-radius: 50%;
background: linear-gradient(135deg, #1E3A8A, #2563eb);
color: white;
border: none;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 3px 10px 0 rgba(30, 58, 138, 0.3);
border: 2px solid rgba(255, 255, 255, 0.3);
position: relative;
overflow: hidden;
}
.quick-action:hover::after {
opacity: 1;
}
.quick-action::before {
content: '';
position: absolute;
right: 52px;
top: 50%;
transform: translateY(-50%);
border: 6px solid transparent;
border-left-color: #1f2937;
opacity: 0;
pointer-events: none;
transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
z-index: 1102;
}
.quick-action:hover::before {
opacity: 1;
}
.quick-action:hover {
transform: translateY(-4px) scale(1.08);
box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2);
}
/* Different colors for each action button */
.quick-action:nth-child(2):hover {
background: linear-gradient(135deg, #059669, #10b981);
}
.quick-action:nth-child(3):hover {
background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}
.quick-action:nth-child(4):hover {
background: linear-gradient(135deg, #f97316, #fb923c);
}
.quick-action i {
font-size: 18px;
}
.quick-action span {
font-size: 9px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.4px;
}
/* Tooltip for quick actions */
.quick-action::after {
content: attr(data-tooltip);
position: absolute;
right: 60px;
top: 50%;
transform: translateY(-50%);
background: #1f2937;
color: white;
padding: 8px 12px;
border-radius: 6px;
font-size: 11px;
font-weight: 600;
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
z-index: 1102;
}
/* Notification Toast */
.notification-toast {
position: fixed;
top: 80px;
right: 24px;
background: #ffffff;
border-radius: 12px;
box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2);
padding: 20px;
max-width: 320px;
z-index: 2000;
transform: translateX(120%);
transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
animation: slideInRight 250ms cubic-bezier(0.4, 0, 0.2, 1);
border: 2px solid #e5e7eb;
backdrop-filter: blur(8px);
}
.notification-toast.show {
transform: translateX(0);
}
.toast-content {
display: flex;
align-items: flex-start;
gap: 16px;
}
.toast-content i {
font-size: 24px;
margin-top: 2px;
color: #1E3A8A;
}
.toast-title {
font-weight: 800;
color: #111827;
margin-bottom: 4px;
font-size: 14px;
}
.toast-message {
color: #6b7280;
font-size: 12px;
line-height: 1.5;
font-weight: 500;
}
.toast-close {
position: absolute;
top: 16px;
right: 16px;
background: #ffffff;
border: 2px solid #e5e7eb;
color: #9CA3AF;
cursor: pointer;
font-size: 12px;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
width: 28px;
height: 28px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1), 0 1px 1px -1px rgba(0, 0, 0, 0.1);
}
.toast-close:hover {
color: #ef4444;
border-color: #ef4444;
transform: scale(1.08);
}
/* ===== Print Styles ===== */
@media print {
.site-header,
.sidebar,
.quick-actions-bar,
.notification-toast,
.action-buttons,
.section-actions,
.field-actions,
.field-expand-icon,
.empty-fields-summary,
footer {
display: none !important;
}
body {
background: white !important;
color: black !important;
font-size: 12px !important;
}
.case-details-summary-layout {
height: auto !important;
overflow: visible !important;
background: white !important;
display: block !important;
}
.main-content {
padding: 0 !important;
background: white !important;
overflow: visible !important;
width: 100% !important;
}
.case-header-banner {
box-shadow: none !important;
background: #f0f0f0 !important;
border: 1px solid #ccc !important;
margin-bottom: 20px !important;
}
.case-ref-value {
-webkit-text-fill-color: black !important;
color: black !important;
}
.details-section {
box-shadow: none !important;
border: 1px solid #ccc !important;
page-break-inside: avoid;
margin-bottom: 20px !important;
}
.form-grid {
display: block !important;
}
.form-group {
page-break-inside: avoid;
margin-bottom: 15px !important;
}
.field-container {
border: 1px solid #ccc !important;
box-shadow: none !important;
margin-bottom: 10px !important;
break-inside: avoid;
}
.field-header {
background: #f5f5f5 !important;
padding: 10px !important;
}
.field-value-container {
display: block !important;
padding: 15px !important;
}
.field-value {
font-size: 12px !important;
}
.field-footer {
display: none !important;
}
.details-content-scrollable {
height: auto !important;
overflow: visible !important;
max-height: none !important;
padding: 15px !important;
}
/* Ensure all content is visible */
.nav-subgroups,
.expanded .field-value-container {
display: block !important;
height: auto !important;
opacity: 1 !important;
}
.field-expand-icon {
display: none !important;
}
.print-mode .sidebar {
display: none !important;
}
}
/* ===== Responsive Design ===== */
@media (max-width: 1400px) {
.form-grid {
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.case-quick-info {
grid-template-columns: repeat(2, 1fr);
}
.case-ref-value {
font-size: 24px;
}
}
@media (max-width: 1200px) {
.sidebar {
width: 200px;
}
.header-inner,
.main-content {
padding: 0 16px;
}
.section-header {
padding: 16px;
}
.details-content-scrollable {
padding: 16px;
}
}
@media (max-width: 992px) {
.case-details-summary-layout {
flex-direction: column;
height: auto;
min-height: 100vh;
overflow: auto;
}
.sidebar {
width: 100%;
height: auto;
max-height: 320px;
border-right: none;
border-bottom: 2px solid #e5e7eb;
box-shadow: 0 6px 12px -3px rgba(0, 0, 0, 0.1), 0 3px 5px -3px rgba(0, 0, 0, 0.1);
}
.case-header-content {
flex-direction: column;
gap: 20px;
}
.case-quick-info {
grid-template-columns: 1fr;
width: 100%;
}
.quick-actions-bar {
position: static;
flex-direction: row;
justify-content: center;
margin-top: 24px;
gap: 8px;
}
.quick-action {
width: 44px;
height: 44px;
}
.form-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.header-inner {
padding: 0 16px;
flex-direction: column;
gap: 12px;
height: auto;
padding: 12px 16px;
}
.site-header {
height: auto;
}
.site-header.scrolled {
height: auto;
}
.action-buttons {
flex-wrap: wrap;
justify-content: center;
gap: 8px;
}
.case-ref-value {
font-size: 22px;
}
.case-status-badge,
.priority-value {
padding: 8px 12px;
font-size: 10px;
}
.section-header {
flex-direction: column;
gap: 16px;
align-items: flex-start;
}
.section-actions {
align-self: flex-end;
}
.empty-state {
padding: 40px 16px;
}
.empty-state h3 {
font-size: 20px;
}
.empty-state p {
font-size: 14px;
}
.empty-state-actions {
flex-direction: column;
width: 100%;
gap: 12px;
}
.primary-btn,
.secondary-btn {
width: 100%;
justify-content: center;
padding: 12px 20px;
}
}
@media (max-width: 480px) {
.py-detect-title-header {
font-size: 18px;
letter-spacing: 1.5px;
}
.logo-img-header {
width: 32px;
height: 32px;
}
.action-btn {
padding: 5px 10px;
font-size: 10px;
}
.back-btn {
padding: 5px 12px;
font-size: 10px;
}
.case-ref-value {
font-size: 20px;
}
.case-tags {
flex-direction: column;
align-items: flex-start;
}
.case-meta {
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
.main-content {
padding: 12px;
}
.section-header,
.details-content-scrollable {
padding: 12px;
}
.field-header {
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
.field-meta {
align-self: flex-end;
}
.case-quick-info {
gap: 8px;
}
.quick-info-item {
padding: 12px;
}
.notification-toast {
right: 12px;
left: 12px;
max-width: none;
}
}
/* Remark fields should span full width */
.form-group.remark-field {
grid-column: 1 / -1;
}