/* Teams 会议采集系统 - 样式表 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

header h1 {
    color: #6264a7;
    font-size: 1.8rem;
}

#user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

#user-info .user-name {
    font-weight: 500;
}

#user-info .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Main */
main {
    flex: 1;
}

/* Sections */
.section {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.card-header h2 {
    font-size: 1.3rem;
    color: #333;
}

/* Login Card */
.login-card {
    max-width: 400px;
    margin: 100px auto;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 40px;
}

.login-card h2 {
    margin-bottom: 15px;
    color: #333;
}

.login-card p {
    color: #666;
    margin-bottom: 30px;
}

.login-card .btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
}

.login-card .icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #6264a7;
    color: white;
}

.btn-primary:hover {
    background-color: #4f5192;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

.btn-success {
    background-color: #107c10;
    color: white;
}

.btn-success:hover {
    background-color: #0b5c0b;
}

.btn-danger {
    background-color: #d13438;
    color: white;
}

.btn-danger:hover {
    background-color: #a52a2d;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Meetings List */
.meetings-list {
    max-height: 400px;
    overflow-y: auto;
}

.meeting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.meeting-item:hover {
    background-color: #f8f8f8;
    border-color: #6264a7;
}

.meeting-item .meeting-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.meeting-item .meeting-info p {
    font-size: 0.85rem;
    color: #666;
}

.meeting-item .meeting-arrow {
    color: #999;
    font-size: 1.2rem;
}

/* Meeting Actions */
.meeting-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* Transcript Content */
.transcript-content {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Summary Content */
.summary-content {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
}

.summary-content h4 {
    color: #6264a7;
    margin: 15px 0 10px 0;
    font-size: 1.1rem;
}

.summary-content h4:first-child {
    margin-top: 0;
}

.summary-content ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.summary-content li {
    margin-bottom: 5px;
}

.summary-content .topic-item {
    background: white;
    border-left: 3px solid #6264a7;
    padding: 10px 15px;
    margin-bottom: 10px;
}

.summary-content .action-item {
    background: white;
    border-left: 3px solid #107c10;
    padding: 10px 15px;
    margin-bottom: 10px;
}

.summary-content .action-item .assignee {
    color: #666;
    font-size: 0.9rem;
}

/* Loading */
.loading {
    text-align: center;
    color: #666;
    padding: 20px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay p {
    color: white;
    margin-top: 15px;
    font-size: 1.1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6264a7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

/* Error Message */
.error-message {
    background-color: #fde7e9;
    border: 1px solid #d13438;
    color: #d13438;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-state p {
    margin-bottom: 10px;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-top: 5px;
}

.badge-organizer {
    background-color: #dff6dd;
    color: #107c10;
}

.badge-participant {
    background-color: #f0f0f0;
    color: #666;
}

.badge-success {
    background-color: #dff6dd;
    color: #107c10;
}

.badge-gray {
    background-color: #f0f0f0;
    color: #999;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

/* Meeting Item - Organizer */
.meeting-item.is-organizer {
    border-left: 3px solid #107c10;
}

/* Warning Message */
.warning-message {
    background-color: #fff4ce;
    border: 1px solid #ffb900;
    color: #8a6d00;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
