/* Base layout copied from profile/home look */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
    min-height: 100vh;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
}

.logo h1 {
    color: #667eea;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: #fff;
}

.btn-ghost {
    background: transparent;
}

.main {
    padding: 2rem 0;
}

/* Group header */
.group-header {
    margin-bottom: 2rem;
}

.group-header-text h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.group-header-text p {
    color: #555;
    max-width: 600px;
}

/* Layout */
.group-content {
    display: grid;
    grid-template-columns: 1.5fr 1.3fr;
    gap: 1.5rem;
}

.group-left,
.group-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.current-room {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e5e7eb;
    font-size: 0.9rem;
}

.current-room h4 {
    margin-bottom: 0.5rem;
}

.small-text {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Notes share section */
.notes-actions-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.share-link-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.share-link-row input {
    flex: 1;
    font-size: 0.85rem;
}

.qr-wrapper {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-start;
}

.qr-wrapper canvas {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Participants */
.card-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.1);
    color: #4f46e5;
    font-size: 0.8rem;
    font-weight: 600;
}

.participants-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.participants-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.25rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
}

.participants-list li:last-child {
    border-bottom: none;
}

.avatar-circle-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.role-pill {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #ecfeff;
    color: #0f766e;
}

/* Chat */
.chat-box {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    min-height: 160px;
    max-height: 220px;
    padding: 0.6rem;
    overflow-y: auto;
    margin-bottom: 0.75rem;
}

.chat-message {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.chat-meta {
    font-size: 0.75rem;
    color: #6b7280;
}

.chat-text {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chat-input-row {
    display: flex;
    gap: 0.5rem;
}

.chat-input-row input {
    flex: 1;
}

/* Dark Theme */
.theme-dark .group-header {
    background: #111827;
    border-bottom-color: #1f2937;
}

.theme-dark .group-header-text h2 {
    color: #e2e8f0;
}

.theme-dark .group-header-text p {
    color: #94a3b8;
}

.theme-dark .group-card {
    background: #111827;
    border-color: #1f2937;
}

.theme-dark .group-card h3 {
    color: #e2e8f0;
}

.theme-dark .group-card p {
    color: #cbd5e1;
}

.theme-dark .group-card .group-meta {
    color: #94a3b8;
}

.theme-dark .group-card .group-meta strong {
    color: #cbd5e1;
}

.theme-dark .chat-box {
    background: #0f172a;
    border-color: #1f2937;
}

.theme-dark .chat-message {
    color: #cbd5e1;
}

.theme-dark .chat-meta {
    color: #64748b;
}

.theme-dark .chat-text {
    background: #1f2937;
    color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
    .group-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .group-header-text h2 {
        font-size: 1.6rem;
    }
}


