Py-detect / src /app /py-detect /py-detect.component.css
RajalashmiNagarajan
adminpage update
86b4aeb
/* ===== GLOBAL RESET & BASE ===== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body, html {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
color: #1e293b;
min-height: 100vh;
overflow-x: hidden;
}
/* ===== HEADER ===== */
.site-header {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
padding: 0 0 0 0;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.header-inner {
max-width: 1400px;
margin: 0 auto;
padding: 0 32px;
display: flex;
align-items: center;
justify-content: space-between;
height: 70px;
}
.logo-cluster {
display: flex;
align-items: center;
gap: 16px;
}
.logo-img-header {
width: 42px;
height: 42px;
background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
border-radius: 12px;
padding: 8px;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.py-detect-title-header {
font-size: 22px;
font-weight: 700;
letter-spacing: 2px;
background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
display: flex;
gap: 6px;
}
.py-letter {
transition: transform 0.2s ease;
}
.py-letter:hover {
transform: translateY(-2px);
}
.header-actions-right-group {
display: flex;
align-items: center;
gap: 16px;
}
/* ===== BACK BUTTON ===== */
.back-btn {
background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
color: white;
border: none;
border-radius: 12px;
padding: 10px 20px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
align-items: center;
gap: 10px;
position: relative;
overflow: hidden;
box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}
.back-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.6s ease;
}
.back-btn:hover {
transform: translateY(-2px) scale(1.03);
box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
}
.back-btn:hover::before {
left: 100%;
}
.back-btn:active {
transform: translateY(0) scale(0.98);
}
.back-btn i {
font-size: 16px;
transition: transform 0.3s ease;
}
.back-btn:hover i {
transform: translateX(-3px);
}
/* ===== HEADER ACTION ICONS CONTAINER ===== */
.header-actions-icons {
display: flex;
gap: 12px;
}
/* ===== EVIDENCE UPLOAD BUTTON ===== */
.evidence-btn {
width: 44px;
height: 44px;
border-radius: 12px;
background: linear-gradient(135deg, #059669 0%, #10b981 100%);
color: white;
border: none;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}
.evidence-btn::after {
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.4s ease, height 0.4s ease;
}
.evidence-btn:hover {
transform: translateY(-2px) rotate(5deg);
box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
background: linear-gradient(135deg, #047857 0%, #0d9669 100%);
}
.evidence-btn:hover::after {
width: 60px;
height: 60px;
}
.evidence-btn:active {
transform: translateY(0) rotate(0);
}
.evidence-btn i {
font-size: 18px;
position: relative;
z-index: 1;
transition: transform 0.3s ease;
}
.evidence-btn:hover i {
transform: scale(1.1);
}
/* ===== SUMMARY BUTTON ===== */
.summary-btn {
width: 44px;
height: 44px;
border-radius: 12px;
background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
color: white;
border: none;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}
.summary-btn::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
transform: translateX(-100%);
transition: transform 0.6s ease;
}
.summary-btn:hover {
transform: translateY(-2px) rotate(-5deg);
box-shadow: 0 8px 25px rgba(217, 119, 6, 0.4);
background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
}
.summary-btn:hover::before {
transform: translateX(100%);
}
.summary-btn:active {
transform: translateY(0) rotate(0);
}
.summary-btn i {
font-size: 18px;
position: relative;
z-index: 1;
transition: transform 0.3s ease;
}
.summary-btn:hover i {
transform: scale(1.1);
}
/* ===== TOOLTIP FOR ICONS ===== */
.evidence-btn::after,
.summary-btn::after {
content: attr(title);
position: absolute;
bottom: -40px;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.8);
color: white;
padding: 6px 12px;
border-radius: 6px;
font-size: 12px;
font-weight: 500;
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease, transform 0.3s ease;
z-index: 1001;
}
.evidence-btn:hover::after,
.summary-btn:hover::after {
opacity: 1;
transform: translateX(-50%) translateY(-5px);
}
/* ===== MAIN CONTENT CARD ===== */
.main-content-card {
max-width: 1400px;
margin: 32px auto;
background: white;
border-radius: 24px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(255, 255, 255, 0.2);
overflow: hidden;
position: relative;
min-height: calc(100vh - 200px);
}
/* Decorative elements for the card */
.main-content-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 6px;
background: linear-gradient(90deg, #2563eb, #3b82f6, #8b5cf6);
background-size: 300% 100%;
animation: gradient-shift 4s ease infinite;
}
.main-content-card::after {
content: '';
position: absolute;
top: 6px;
left: 20px;
right: 20px;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
}
@keyframes gradient-shift {
0%, 100% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
}
.card-inner {
padding: 32px;
height: 100%;
}
/* ===== CONTENT LAYOUT ===== */
.content-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 32px;
height: 100%;
}
/* ===== LEFT PANEL ===== */
.left-panel {
display: flex;
flex-direction: column;
gap: 24px;
}
/* Guidance Banner */
.guidance-banner {
background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
border-radius: 16px;
padding: 20px 24px;
color: white;
box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2);
animation: slideIn 0.5s ease;
position: relative;
overflow: hidden;
}
.guidance-banner::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
animation: shimmer 2s infinite;
}
@keyframes shimmer {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(100%);
}
}
.guidance-content {
display: flex;
align-items: center;
gap: 16px;
position: relative;
z-index: 1;
}
.guidance-icon {
font-size: 28px;
background: rgba(255, 255, 255, 0.2);
width: 56px;
height: 56px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
backdrop-filter: blur(10px);
}
.guidance-text {
flex: 1;
}
.guidance-text h3 {
font-size: 16px;
font-weight: 600;
margin-bottom: 4px;
}
.guidance-text p {
font-size: 14px;
opacity: 0.9;
}
/* Start Investigation Button */
.start-investigation-btn {
background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
color: white;
border: none;
border-radius: 14px;
padding: 18px 32px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
position: relative;
overflow: hidden;
}
.start-investigation-btn:hover {
transform: translateY(-3px);
box-shadow: 0 12px 32px rgba(22, 163, 74, 0.4);
}
.start-investigation-btn:active {
transform: translateY(-1px);
}
/* Question Section */
.question-section {
background: #f8fafc;
border-radius: 16px;
padding: 24px;
border: 1px solid #e2e8f0;
transition: all 0.3s ease;
}
.question-section:hover {
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
transform: translateY(-2px);
}
.question-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 20px;
}
.question-badge {
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
color: white;
padding: 6px 16px;
border-radius: 20px;
font-size: 14px;
font-weight: 600;
}
.question-content {
background: white;
border-radius: 12px;
padding: 20px;
border: 1px solid #e2e8f0;
min-height: 120px;
}
.question-content h3 {
font-size: 15px;
font-weight: 600;
color: #64748b;
margin-bottom: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.question-text {
font-size: 16px;
line-height: 1.6;
color: #1e293b;
font-weight: 500;
}
.no-question {
color: #94a3b8;
font-style: italic;
padding: 20px 0;
text-align: center;
}
.status-indicator {
margin-top: 16px;
padding: 12px;
background: #f0f9ff;
border-radius: 8px;
border-left: 4px solid #3b82f6;
font-size: 14px;
color: #1e40af;
display: flex;
align-items: center;
gap: 8px;
}
/* Answer Section */
.answer-section {
background: #f8fafc;
border-radius: 16px;
padding: 24px;
border: 1px solid #e2e8f0;
transition: all 0.3s ease;
}
.answer-section:hover {
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
transform: translateY(-2px);
}
.answer-section h3 {
font-size: 18px;
font-weight: 600;
color: #1e293b;
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 10px;
}
.answer-section h3::before {
content: '';
width: 4px;
height: 20px;
background: #2563eb;
border-radius: 2px;
}
.answer-input {
width: 100%;
min-height: 150px;
padding: 16px;
border: 2px solid #e2e8f0;
border-radius: 12px;
font-family: inherit;
font-size: 15px;
line-height: 1.6;
resize: vertical;
transition: all 0.3s ease;
margin-bottom: 20px;
background: white;
}
.answer-input:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.answer-input::placeholder {
color: #94a3b8;
}
.answer-actions {
display: flex;
gap: 12px;
margin-bottom: 20px;
}
.btn-primary {
background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
color: white;
border: none;
border-radius: 10px;
padding: 12px 24px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
flex: 1;
justify-content: center;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.btn-secondary {
background: white;
color: #2563eb;
border: 2px solid #2563eb;
border-radius: 10px;
padding: 12px 24px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
flex: 1;
justify-content: center;
}
.btn-secondary:hover {
background: #f0f9ff;
transform: translateY(-2px);
}
.recording-status {
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
border-radius: 10px;
padding: 12px 16px;
display: flex;
align-items: center;
gap: 12px;
animation: pulse 2s infinite;
border: 1px solid #fbbf24;
}
.recording-dot {
width: 12px;
height: 12px;
background: #dc2626;
border-radius: 50%;
animation: blink 1.5s infinite;
}
/* Results Section */
.results-section {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 16px;
margin-top: 24px;
}
.result-card {
background: white;
border-radius: 12px;
padding: 20px;
border: 1px solid #e2e8f0;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.result-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 4px;
height: 100%;
background: linear-gradient(to bottom, #2563eb, #3b82f6);
border-radius: 2px 0 0 2px;
}
.result-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
.result-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 16px;
}
.result-icon {
width: 40px;
height: 40px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
}
.result-icon.truth {
background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
color: #1d4ed8;
}
.result-icon.face {
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
color: #b45309;
}
.result-icon.involvement {
background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
color: #7c3aed;
}
.result-icon.emotion {
background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
color: #be185d;
}
.result-title {
font-size: 14px;
font-weight: 600;
color: #475569;
flex: 1;
}
.result-value {
font-size: 24px;
font-weight: 700;
color: #1e293b;
}
.progress-bar {
height: 8px;
background: #e2e8f0;
border-radius: 4px;
overflow: hidden;
margin: 12px 0;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #10b981, #8b5cf6);
border-radius: 4px;
transition: width 1s ease;
}
.cues-container {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}
.cue-tag {
background: #f1f5f9;
color: #475569;
padding: 4px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 500;
transition: all 0.2s ease;
}
.cue-tag:hover {
background: #e2e8f0;
transform: translateY(-1px);
}
/* ===== RIGHT PANEL ===== */
.right-panel {
display: flex;
flex-direction: column;
gap: 32px;
}
/* Camera Section */
.camera-section {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
border-radius: 20px;
overflow: hidden;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
position: relative;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.camera-placeholder {
height: 400px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
padding: 40px;
text-align: center;
}
.camera-icon {
font-size: 64px;
margin-bottom: 24px;
opacity: 0.7;
color: #cbd5e1;
}
.camera-placeholder h3 {
font-size: 20px;
font-weight: 600;
margin-bottom: 12px;
background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.camera-placeholder p {
font-size: 14px;
color: #cbd5e1;
max-width: 300px;
line-height: 1.6;
}
.video-active {
height: 400px;
position: relative;
overflow: hidden;
}
.camera-video {
width: 100%;
height: 100%;
object-fit: cover;
}
.recording-overlay {
position: absolute;
top: 20px;
left: 20px;
background: rgba(220, 38, 38, 0.9);
color: white;
padding: 8px 20px;
border-radius: 20px;
font-size: 14px;
font-weight: 500;
display: flex;
align-items: center;
gap: 8px;
backdrop-filter: blur(10px);
animation: pulse 2s infinite;
border: 1px solid rgba(255, 255, 255, 0.2);
}
/* Transcription Section */
.transcription-section {
background: #f8fafc;
border-radius: 20px;
padding: 24px;
border: 1px solid #e2e8f0;
transition: all 0.3s ease;
}
.transcription-section:hover {
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.transcription-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
}
.transcription-header h3 {
font-size: 18px;
font-weight: 600;
color: #1e293b;
display: flex;
align-items: center;
gap: 8px;
}
.live-badge {
background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
color: white;
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
animation: pulse 2s infinite;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.transcription-content {
background: white;
border-radius: 12px;
padding: 20px;
max-height: 300px;
overflow-y: auto;
border: 1px solid #e2e8f0;
}
.transcription-line {
padding: 12px;
border-bottom: 1px solid #e2e8f0;
font-size: 14px;
line-height: 1.6;
color: #475569;
position: relative;
padding-left: 20px;
}
.transcription-line::before {
content: '';
position: absolute;
left: 0;
top: 16px;
width: 8px;
height: 8px;
background: #3b82f6;
border-radius: 50%;
}
.transcription-line:last-child {
border-bottom: none;
}
/* Final Action */
.final-action {
margin-top: 16px;
text-align: center;
padding: 20px;
background: #f8fafc;
border-radius: 16px;
border: 1px solid #e2e8f0;
}
.evaluate-btn {
background: linear-gradient(135deg, #059669 0%, #10b981 100%);
color: white;
border: none;
border-radius: 14px;
padding: 18px 48px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
gap: 12px;
box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
position: relative;
overflow: hidden;
}
.evaluate-btn:hover {
transform: translateY(-3px);
box-shadow: 0 12px 32px rgba(5, 150, 105, 0.4);
}
.evaluate-btn:active {
transform: translateY(-1px);
}
/* ===== SIDEBARS ===== */
.evidence-sidebar,
.summary-sidebar {
position: fixed;
top: 0;
right: -400px;
width: 380px;
height: 100vh;
background: white;
box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
z-index: 2000;
transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
overflow-y: auto;
}
.evidence-sidebar.open,
.summary-sidebar.open {
right: 0;
}
.sidebar-header {
padding: 24px;
border-bottom: 1px solid #e2e8f0;
display: flex;
align-items: center;
justify-content: space-between;
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
color: white;
}
.sidebar-title {
font-size: 18px;
font-weight: 600;
display: flex;
align-items: center;
gap: 12px;
}
.close-btn {
background: rgba(255, 255, 255, 0.1);
border: none;
width: 36px;
height: 36px;
border-radius: 10px;
color: white;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
.close-btn:hover {
background: rgba(255, 255, 255, 0.2);
transform: rotate(90deg);
}
.sidebar-content {
padding: 24px;
}
/* ===== BLUR BACKGROUND ===== */
.blur-bg {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(8px);
z-index: 1999;
opacity: 0;
pointer-events: none;
transition: opacity 0.4s ease;
}
.blur-bg.active {
opacity: 1;
pointer-events: all;
}
/* ===== FOOTER ===== */
footer {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
color: white;
text-align: center;
padding: 24px 0;
margin-top: 40px;
}
footer p {
font-size: 14px;
color: #cbd5e1;
opacity: 0.8;
}
/* ===== ANIMATIONS ===== */
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
@keyframes blink {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.3;
}
}
/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
.content-grid {
grid-template-columns: 1fr;
gap: 24px;
}
.results-section {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.main-content-card {
margin: 16px;
border-radius: 20px;
}
.card-inner {
padding: 20px;
}
.header-inner {
padding: 0 16px;
}
.content-grid {
gap: 16px;
}
.results-section {
grid-template-columns: 1fr;
}
.answer-actions {
flex-direction: column;
}
.video-active,
.camera-placeholder {
height: 300px;
}
.evidence-sidebar,
.summary-sidebar {
width: 100%;
right: -100%;
}
}
@media (max-width: 480px) {
.py-detect-title-header {
font-size: 18px;
letter-spacing: 1px;
}
.header-actions-right-group {
gap: 12px;
flex-direction: column;
align-items: flex-end;
}
.back-btn span:last-child {
display: none;
}
.back-btn {
padding: 10px 15px;
font-size: 13px;
}
.evidence-btn,
.summary-btn {
width: 40px;
height: 40px;
}
.main-content-card {
margin: 8px;
border-radius: 16px;
}
}