Spaces:
Running
Running
File size: 7,192 Bytes
8308b2d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | /* static/css/style.css */
:root {
--bg-color: #F4F7F6;
--card-bg: #FFFFFF;
--primary-color: #3A8DDE;
--primary-hover: #2C68A6;
--secondary-color: #5FAD56;
--danger-color: #D9534F;
--danger-hover: #C9302C;
--text-primary: #212529;
--text-secondary: #6C757D;
--border-color: #DEE2E6;
--font-heading: 'Poppins', sans-serif;
--font-body: 'Noto Sans', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: var(--font-body);
background-color: var(--bg-color);
background-image: url('https://images.unsplash.com/photo-1554034483-04fda0d3507b?q=80&w=2070&auto=format&fit=crop');
background-size: cover;
background-attachment: fixed;
color: var(--text-primary);
line-height: 1.6;
}
.container { display: flex; min-height: 100vh; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); }
/* --- Sidebar --- */
.sidebar {
width: 380px; flex-shrink: 0;
background: rgba(255, 255, 255, 0.95);
padding: 30px; border-right: 1px solid var(--border-color);
overflow-y: auto;
}
.sidebar-header { text-align: center; margin-bottom: 30px; }
.logo { margin: 0 auto 10px; }
.sidebar-header h2 { font-family: var(--font-heading); font-weight: 600; color: var(--text-primary); }
.step { padding-bottom: 20px; border-bottom: 1px dashed var(--border-color); margin-bottom: 20px; }
.step:last-child { border-bottom: none; }
.step-header h3 { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 1.1em; }
.step-header span {
display: flex; align-items: center; justify-content: center;
width: 28px; height: 28px;
background-color: var(--primary-color);
color: white; border-radius: 50%; font-size: 0.9em;
}
.video-frame { padding: 5px; border: 1px solid var(--border-color); margin-top: 10px; border-radius: 8px; background: #fff; }
video { display: block; border-radius: 4px; }
/* --- Buttons & Forms --- */
button {
width: 100%; padding: 12px 15px; font-size: 1em;
font-family: var(--font-heading); font-weight: 600;
border: none; border-radius: 8px; cursor: pointer;
color: white; margin-top: 10px;
background-color: var(--text-secondary);
transition: all 0.2s ease;
}
button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
button:disabled { background-color: #ccc; cursor: not-allowed; }
button.primary { background-color: var(--primary-color); }
button.primary:hover { background-color: var(--primary-hover); }
button.danger { background-color: var(--danger-color); }
button.danger:hover { background-color: var(--danger-hover); }
label { font-weight: 700; font-size: 0.9em; display: block; margin-bottom: 5px; }
select, input[type="range"] {
width: 100%; margin-top: 5px;
background-color: #F8F9FA; border: 1px solid var(--border-color);
color: var(--text-primary); padding: 10px; border-radius: 8px;
}
select { margin-bottom: 10px; }
/* --- Voice Visualizer --- */
#voice-visualizer {
display: block;
width: 100%;
height: 50px;
background-color: #f8f9fa;
border-radius: 8px;
margin-bottom: 10px;
border: 1px solid var(--border-color);
}
/* --- Main Content & Cards --- */
.main-content { flex-grow: 1; padding: 40px; overflow-y: auto; }
.main-header { margin-bottom: 30px; }
.main-header h1 { font-family: var(--font-heading); font-weight: 600; }
.main-header p { color: var(--text-secondary); font-size: 1.1em; max-width: 600px; }
.card {
background-color: var(--card-bg);
border-radius: 12px; box-shadow: 0 4px 25px rgba(0,0,0,0.08);
border: 1px solid var(--border-color); margin-bottom: 30px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
.card-header { padding: 20px 25px; border-bottom: 1px solid var(--border-color); }
.card-header h2 { font-family: var(--font-heading); margin: 0; font-size: 1.2em; }
.card-body { padding: 25px; }
/* Tabs, Dashboard, & Logs */
.tabs { padding: 0 10px; }
.tab-link { background-color: transparent; border: none; border-bottom: 3px solid transparent; padding: 15px 20px; font-size: 1em; font-weight: 700; color: var(--text-secondary); }
.tab-link.active, .tab-link:hover { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.tab-content { display: none; }
.section-description { color: var(--text-secondary); margin-bottom: 20px; padding: 0 25px; }
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 25px; }
.chart-card { min-height: 300px; }
.table-container { max-height: 400px; overflow-y: auto; }
#log-table { width: 100%; border-collapse: collapse; }
#log-table th, #log-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border-color); }
#log-table th { font-family: var(--font-heading); background-color: #f8f9fa; }
#log-table td:last-child { font-weight: 700; }
#no-logs-message { padding: 40px 20px; text-align: center; color: var(--text-secondary); }
/* Results Area */
.results-area { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 30px; }
#current-analysis-card, #feedback-report-display, #recommendations-card {
opacity: 0;
animation: fadeIn 0.6s ease-out forwards;
}
#captured-image-display { width: 100%; border-radius: 8px; margin-bottom: 15px; }
.result-box {
margin-top: 10px; padding: 12px; border-radius: 8px;
background-color: #F8F9FA; opacity: 0; transform: translateY(10px);
transition: opacity 0.5s ease, transform 0.5s ease;
}
.result-box.show { opacity: 1; transform: translateY(0); }
.metric { text-align: center; margin-bottom: 15px; }
.metric-value { font-size: 2.5em; font-weight: 700; color: var(--primary-color); }
#recommendations-content ul { list-style: none; padding-left: 0; }
#recommendations-content li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
#recommendations-content li::before { content: '✓'; color: var(--secondary-color); font-weight: 700; }
.status-message {
margin-top: 15px; min-height: 20px;
text-align: center; font-weight: 700;
}
.status-message.success { color: var(--secondary-color); }
.status-message.error { color: var(--danger-color); }
.status-message.info { color: var(--text-secondary); }
footer { text-align: center; margin-top: 20px; font-size: 0.9em; color: var(--text-secondary); }
footer button { width: auto; padding: 8px 15px; font-size: 0.9em; margin-top: 15px; }
/* --- Responsiveness --- */
@media (max-width: 1300px) { .dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 1024px) { .container { flex-direction: column; } .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); } }
@media (max-width: 768px) { .main-content { padding: 20px; } .results-area { grid-template-columns: 1fr; } } |