imetting_frontend/src/pages/MeetingDetails.css

680 lines
11 KiB
CSS

.meeting-details-page {
background-color: #f8fafc;
min-height: 100vh;
padding: 2rem;
}
.details-header {
max-width: 1400px;
margin: 0 auto 1.5rem auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.details-layout {
max-width: 1400px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 400px;
gap: 2rem;
}
.main-content {
min-height: 0;
}
.back-link {
display: inline-flex;
align-items: center;
gap: 0.5rem;
color: #475569;
text-decoration: none;
font-weight: 500;
transition: color 0.3s ease;
}
.back-link:hover {
color: #667eea;
}
.details-content-card {
background: white;
border-radius: 16px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
overflow: hidden;
}
.card-header {
padding: 2rem;
background: linear-gradient(135deg, #f5f7fa, #eef2f7);
border-bottom: 1px solid #e2e8f0;
}
.card-header h1 {
font-size: 2rem;
font-weight: 700;
color: #1e293b;
margin: 0 0 1.5rem 0;
}
.meta-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
}
.meta-item {
display: flex;
align-items: center;
gap: 0.75rem;
color: #334155;
}
.meta-item svg {
color: #667eea;
}
.meta-item strong {
font-weight: 600;
}
.card-section {
padding: 2rem;
border-bottom: 1px solid #e2e8f0;
}
.card-section:last-child {
border-bottom: none;
}
.card-section h2 {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 1.25rem;
font-weight: 600;
color: #334155;
margin: 0 0 1rem 0;
}
.summary-content {
line-height: 1.7;
color: #475569;
white-space: pre-wrap;
}
/* Markdown content styling */
.markdown-content {
font-size: 1rem;
line-height: 1.6;
}
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
margin: 0.8rem 0 0.4rem 0;
font-weight: 600;
color: #1e293b;
}
.markdown-content h1:first-child,
.markdown-content h2:first-child,
.markdown-content h3:first-child,
.markdown-content h4:first-child,
.markdown-content h5:first-child,
.markdown-content h6:first-child {
margin-top: 0;
}
.markdown-content h1 { font-size: 1.5rem; }
.markdown-content h2 { font-size: 1.25rem; }
.markdown-content h3 { font-size: 1.1rem; }
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 { font-size: 1rem; }
.markdown-content p {
margin: 0.3rem 0;
}
.markdown-content p:first-child {
margin-top: 0;
}
.markdown-content p:last-child {
margin-bottom: 0;
}
.markdown-content ul,
.markdown-content ol {
margin: 0.4rem 0;
padding-left: 1.5rem;
}
.markdown-content li {
margin: 0.1rem 0;
}
.markdown-content li p {
margin: 0.1rem 0;
}
.markdown-content strong {
font-weight: 600;
color: #1e293b;
}
.markdown-content em {
font-style: italic;
}
.markdown-content code {
background: #f1f5f9;
padding: 0.2rem 0.4rem;
border-radius: 4px;
font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
font-size: 0.9rem;
color: #dc2626;
}
.markdown-content pre {
background: #f8fafc;
padding: 1rem;
border-radius: 8px;
overflow-x: auto;
border: 1px solid #e2e8f0;
}
.markdown-content pre code {
background: none;
padding: 0;
color: #334155;
}
.markdown-content blockquote {
border-left: 4px solid #667eea;
padding-left: 1rem;
margin: 1rem 0;
font-style: italic;
color: #64748b;
background: #f8fafc;
padding: 1rem;
border-radius: 0 8px 8px 0;
}
.markdown-content table {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
}
.markdown-content th,
.markdown-content td {
border: 1px solid #e2e8f0;
padding: 0.5rem;
text-align: left;
}
.markdown-content th {
background: #f8fafc;
font-weight: 600;
}
.markdown-content hr {
border: none;
height: 1px;
background: #e2e8f0;
margin: 2rem 0;
}
.attendees-list {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
}
.attendee-chip {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background-color: #f1f5f9;
color: #475569;
padding: 0.5rem 1rem;
border-radius: 20px;
font-weight: 500;
}
/* Audio file info */
.audio-file-info {
margin-bottom: 1rem;
padding: 0.5rem 0.75rem;
background: #f8fafc;
border-radius: 6px;
border-left: 3px solid #667eea;
}
.audio-file-name {
font-size: 0.9rem;
color: #475569;
font-weight: 500;
}
/* Audio Player Styles */
.audio-section {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.audio-section h2 {
color: white;
margin-bottom: 1.5rem;
}
.audio-player {
background: rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 1.5rem;
backdrop-filter: blur(10px);
}
.player-controls {
display: flex;
align-items: center;
gap: 1rem;
margin-top: 1rem;
}
.play-button {
background: rgba(255, 255, 255, 0.2);
border: none;
border-radius: 50%;
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
color: white;
cursor: pointer;
transition: all 0.3s ease;
}
.play-button:hover {
background: rgba(255, 255, 255, 0.3);
transform: scale(1.05);
}
.time-info {
font-size: 0.9rem;
font-weight: 500;
min-width: 50px;
text-align: center;
}
.progress-container {
flex: 1;
height: 40px;
display: flex;
align-items: center;
cursor: pointer;
padding: 0 1rem;
margin: 0 0.5rem;
user-select: none;
}
.progress-bar {
width: 100%;
height: 6px;
background: rgba(255, 255, 255, 0.3);
border-radius: 3px;
position: relative;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: rgba(255, 255, 255, 0.9);
border-radius: 3px;
transition: width 0.1s ease;
position: relative;
}
.progress-fill::after {
content: '';
position: absolute;
right: -6px;
top: 50%;
transform: translateY(-50%);
width: 12px;
height: 12px;
background: white;
border-radius: 50%;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
opacity: 0;
transition: opacity 0.2s ease;
}
.progress-container:hover .progress-fill::after {
opacity: 1;
}
.volume-control {
display: flex;
align-items: center;
gap: 0.5rem;
}
.volume-slider {
width: 80px;
height: 4px;
background: rgba(255, 255, 255, 0.2);
outline: none;
border-radius: 2px;
cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
appearance: none;
width: 16px;
height: 16px;
background: white;
border-radius: 50%;
cursor: pointer;
}
/* Transcript Sidebar */
.transcript-sidebar {
background: white;
border-radius: 16px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
height: fit-content;
max-height: calc(100vh - 200px);
display: flex;
flex-direction: column;
}
.transcript-header {
padding: 1.5rem;
border-bottom: 1px solid #e2e8f0;
display: flex;
justify-content: space-between;
align-items: center;
}
.transcript-header h3 {
margin: 0;
color: #334155;
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1.1rem;
}
.toggle-transcript {
background: #f1f5f9;
border: none;
border-radius: 6px;
padding: 0.5rem 1rem;
color: #475569;
cursor: pointer;
font-size: 0.9rem;
font-weight: 500;
transition: all 0.3s ease;
}
.toggle-transcript:hover {
background: #e2e8f0;
}
.transcript-content {
padding: 1rem;
overflow-y: auto;
flex: 1;
}
.transcript-item {
margin-bottom: 1.5rem;
padding: 1rem;
background: #f8fafc;
border-radius: 8px;
border-left: 3px solid #667eea;
}
.transcript-header-item {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
}
.speaker-name {
font-weight: 600;
color: #334155;
font-size: 0.9rem;
}
.timestamp-button {
background: #667eea;
border: none;
border-radius: 4px;
padding: 0.25rem 0.5rem;
color: white;
cursor: pointer;
font-size: 0.8rem;
font-weight: 500;
transition: all 0.3s ease;
}
.timestamp-button:hover {
background: #5a67d8;
transform: scale(1.05);
}
.transcript-text {
color: #475569;
line-height: 1.6;
font-size: 0.95rem;
}
/* No Audio Display */
.no-audio {
text-align: center;
padding: 3rem 2rem;
background: rgba(255, 255, 255, 0.1);
border-radius: 12px;
backdrop-filter: blur(10px);
}
.no-audio-icon {
margin-bottom: 1rem;
opacity: 0.7;
}
.no-audio-message {
font-size: 1.1rem;
font-weight: 600;
margin: 0 0 0.5rem 0;
color: white;
}
.no-audio-hint {
font-size: 0.9rem;
margin: 0;
color: rgba(255, 255, 255, 0.8);
}
/* Meeting Actions */
.meeting-actions {
display: flex;
gap: 0.75rem;
align-items: center;
}
.action-btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
border-radius: 8px;
font-size: 0.9rem;
font-weight: 500;
text-decoration: none;
border: none;
cursor: pointer;
transition: all 0.3s ease;
min-width: 100px;
justify-content: center;
}
.edit-btn {
background: #667eea;
color: white;
box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}
.edit-btn:hover {
background: #5a67d8;
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
color: white;
}
.delete-btn {
background: #ef4444;
color: white;
box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}
.delete-btn:hover {
background: #dc2626;
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}
/* Delete Modal */
.delete-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.delete-modal {
background: white;
border-radius: 12px;
padding: 2rem;
max-width: 400px;
width: 90%;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.delete-modal h3 {
margin: 0 0 1rem 0;
color: #1e293b;
font-size: 1.25rem;
}
.delete-modal p {
margin: 0 0 2rem 0;
color: #64748b;
line-height: 1.6;
}
.modal-actions {
display: flex;
gap: 1rem;
justify-content: flex-end;
}
.btn-cancel, .btn-delete {
padding: 0.5rem 1rem;
border-radius: 6px;
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
border: none;
}
.btn-cancel {
background: #f1f5f9;
color: #475569;
}
.btn-cancel:hover {
background: #e2e8f0;
}
.btn-delete {
background: #ef4444;
color: white;
}
.btn-delete:hover {
background: #dc2626;
}
/* Responsive Design */
@media (max-width: 1200px) {
.details-layout {
grid-template-columns: 1fr;
gap: 1.5rem;
}
.transcript-sidebar {
max-height: 500px;
}
}
@media (max-width: 768px) {
.meeting-details-page {
padding: 1rem;
}
.details-header {
flex-direction: column;
gap: 1rem;
align-items: stretch;
}
.meeting-actions {
justify-content: center;
gap: 0.5rem;
}
.action-btn {
padding: 0.4rem 0.8rem;
font-size: 0.8rem;
min-width: 80px;
}
.action-btn span {
display: none;
}
.player-controls {
flex-wrap: wrap;
gap: 0.75rem;
}
.progress-container {
order: 3;
flex-basis: 100%;
}
.volume-control {
order: 4;
}
}