/* S4 Meeting Extractor – Stylesheet */

.s4me-wrap {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a2e;
}

.s4me-wrap h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.6rem;
}

.s4me-wrap h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.6rem;
}

/* Form */
.s4me-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin: 1rem 0 0.3rem;
}

.s4me-form input[type="text"],
.s4me-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
    background: #f8fafc;
    transition: border-color 0.2s;
}

.s4me-form input[type="text"]:focus,
.s4me-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: #fff;
}

.s4me-form textarea {
    resize: vertical;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Buttons */
.s4me-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.55rem 1.4rem;
    background: #6366f1;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.s4me-btn:hover { background: #4f46e5; }

.s4me-btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; margin-top: 0; }

.s4me-btn-ghost {
    background: transparent;
    color: #64748b !important;
    border: 1px solid #cbd5e1;
}
.s4me-btn-ghost:hover { background: #f1f5f9; }

/* Messages */
.s4me-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.s4me-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Results */
.s4me-results { margin-top: 2rem; }

.s4me-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}

.s4me-section ul {
    margin: 0;
    padding-left: 1.2rem;
}

.s4me-section li {
    padding: 0.3rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.s4me-owner {
    font-size: 0.8rem;
    color: #6366f1;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* History table */
.s4me-filters {
    margin-bottom: 1.2rem;
}

.s4me-filters form {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.s4me-filters select {
    padding: 0.4rem 0.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #f8fafc;
}

.s4me-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.s4me-table th {
    background: #f1f5f9;
    text-align: left;
    padding: 0.6rem 0.8rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.s4me-table td {
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.s4me-table tr:hover td { background: #f8fafc; }

/* Badges */
.s4me-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.s4me-badge-idea     { background: #ede9fe; color: #5b21b6; }
.s4me-badge-task     { background: #dcfce7; color: #166534; }
.s4me-badge-decision { background: #dbeafe; color: #1e40af; }
.s4me-badge-question { background: #fef3c7; color: #92400e; }
