/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --accent-color: #ea4335;
    --warning-color: #fbbc04;
    --background-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --shadow-1: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-2: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    --animation-duration: 0.3s;
    --animation-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.4;
    min-height: 100vh;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1557b0 100%);
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow-1);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.header-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.header-title {
    font-size: 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    animation: slideInLeft var(--animation-duration) var(--animation-easing);
}

.header-icon {
    font-size: 2.5rem;
    animation: rotateIn 0.6s var(--animation-easing);
}

.header-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
    animation: slideInLeft var(--animation-duration) var(--animation-easing) 0.1s both;
}

/* Header Navigation */
.header-nav {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-link .material-icons {
    font-size: 20px;
}

/* Main Content */
.main-content {
    padding: 20px 0;
}

.onboarding-form {
    background: var(--surface-color);
    border-radius: 16px;
    box-shadow: var(--shadow-1);
    padding: 16px;
    animation: fadeInUp var(--animation-duration) var(--animation-easing);
}

/* Form Sections */
.form-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.section-icon {
    color: var(--primary-color);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.875rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

/* Form Controls */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.form-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--animation-duration) var(--animation-easing);
    background: var(--surface-color);
}

.form-input:hover {
    border-color: var(--primary-color);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* Space Cards */
.space-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.space-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
    transition: all var(--animation-duration) var(--animation-easing);
    overflow: hidden;
}

.space-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.space-card-header {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    user-select: none;
}

.space-card-header:hover {
    background: var(--background-color);
}

.space-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
}

.space-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
}

.space-expand-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: transform var(--animation-duration) var(--animation-easing);
}

.space-expand-btn.expanded {
    transform: rotate(90deg);
}

.space-expand-icon {
    transition: transform var(--animation-duration) var(--animation-easing);
}

.space-card.expanded .space-expand-icon {
    transform: rotate(90deg);
}

.space-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    border-radius: 4px;
    transition: all var(--animation-duration) var(--animation-easing);
}

.space-remove:hover {
    background: rgba(234, 67, 53, 0.1);
    color: var(--accent-color);
}

/* Space Card Body (Member Selection) */
.space-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--animation-duration) var(--animation-easing);
}

.space-card.expanded .space-card-body {
    max-height: 500px;
}

.space-card-body-inner {
    padding: 12px;
    border-top: 1px solid var(--border-color);
}

.space-members-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.space-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.space-member-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-color);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--animation-duration) var(--animation-easing);
}

.space-member-item:hover {
    border-color: var(--primary-color);
    background: var(--surface-color);
}

.space-member-item.member-selected {
    background: rgba(26, 115, 232, 0.05);
    border-color: var(--primary-color);
}

.space-member-item.manager-selected {
    background: rgba(52, 168, 83, 0.05);
    border-color: var(--secondary-color);
}

.member-checkbox {
    width: 16px;
    height: 16px;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-email {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manager-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: auto;
}

.manager-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.manager-label {
    cursor: pointer;
    user-select: none;
}

/* Welcome Message Section */
.space-message-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.space-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.space-message-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.set-default-message-btn {
    font-size: 0.75rem;
    padding: 4px 8px;
    gap: 4px;
}

.set-default-message-btn .material-icons {
    font-size: 16px;
}

.space-welcome-message {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 60px;
    transition: all 0.2s ease;
}

.space-welcome-message:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.space-welcome-message::placeholder {
    color: var(--text-primary);
    opacity: 0.8;
}

/* Add Space Button */
.add-space-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--animation-duration) var(--animation-easing);
}

.add-space-btn:hover {
    border-color: var(--primary-color);
    background: rgba(26, 115, 232, 0.05);
}

/* User List */
.user-list-header {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    padding: 0 12px 8px;
    align-items: center;
}

.user-list-header-labels {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.header-label {
    width: 50px;
    text-align: center;
    font-size: 0.75rem;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
    transition: all var(--animation-duration) var(--animation-easing);
}

.user-item:hover {
    box-shadow: var(--shadow-1);
}

.user-item.manager-selected {
    border-color: var(--secondary-color);
    background: rgba(52, 168, 83, 0.05);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.user-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.user-toggles {
    display: flex;
    gap: 16px;
    align-items: center;
}

.toggle-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.toggle-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: none;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 22px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: all var(--animation-duration) var(--animation-easing);
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all var(--animation-duration) var(--animation-easing);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle-input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--animation-duration) var(--animation-easing);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(26, 115, 232, 0.05);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn var(--animation-duration) var(--animation-easing);
}

.lightbox.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    background: var(--surface-color);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-2);
    animation: slideInUp var(--animation-duration) var(--animation-easing);
}

.lightbox-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lightbox-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.lightbox-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all var(--animation-duration) var(--animation-easing);
}

.lightbox-close:hover {
    background: var(--background-color);
}

.lightbox-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.lightbox-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 16px;
}

.progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.5s var(--animation-easing);
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Status Messages */
.status-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.status-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.875rem;
    animation: slideInLeft var(--animation-duration) var(--animation-easing);
}

.status-message.success {
    background: rgba(52, 168, 83, 0.1);
    color: var(--secondary-color);
}

.status-message.error {
    background: rgba(234, 67, 53, 0.1);
    color: var(--accent-color);
}

.status-message.info {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
}

.status-message.warning {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.status-icon {
    font-size: 1.25rem;
}

/* Preview Content */
.preview-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-section {
    padding: 12px;
    background: var(--background-color);
    border-radius: 6px;
}

.preview-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.preview-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preview-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.preview-list .material-icons {
    font-size: 1rem;
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: rotate(0);
    }
}

/* Alert, Confirm, and Prompt Lightboxes */
.lightbox-alert .lightbox-content,
.lightbox-confirm .lightbox-content,
.lightbox-prompt .lightbox-content {
    max-width: 400px;
}

.lightbox-icon {
    margin-right: 8px;
    font-size: 1.25rem;
}

.alert-message,
.confirm-message,
.prompt-message {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
}

.prompt-input {
    margin-top: 16px;
    width: 100%;
}

/* Alert specific styles */
.lightbox-alert .lightbox-header {
    background: var(--primary-light);
    border-bottom: 2px solid var(--primary-color);
}

.lightbox-alert .lightbox-icon {
    color: var(--primary-color);
}

/* Success alert variation */
.lightbox-alert.success .lightbox-header {
    background: rgba(52, 168, 83, 0.1);
    border-bottom: 2px solid var(--secondary-color);
}

.lightbox-alert.success .lightbox-icon {
    color: var(--secondary-color);
}

/* Error alert variation */
.lightbox-alert.error .lightbox-header {
    background: rgba(234, 67, 53, 0.1);
    border-bottom: 2px solid var(--accent-color);
}

.lightbox-alert.error .lightbox-icon {
    color: var(--accent-color);
}

/* Confirm specific styles */
.lightbox-confirm .lightbox-header {
    background: rgba(255, 193, 7, 0.1);
    border-bottom: 2px solid #ff9800;
}

.lightbox-confirm .lightbox-icon {
    color: #ff9800;
}

/* Prompt specific styles */
.lightbox-prompt .lightbox-header {
    background: rgba(33, 150, 243, 0.1);
    border-bottom: 2px solid #2196f3;
}

.lightbox-prompt .lightbox-icon {
    color: #2196f3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-title {
        font-size: 1.75rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .space-templates {
        grid-template-columns: 1fr;
    }
    
    .user-list-header {
        display: none;
    }
    
    .user-item {
        grid-template-columns: 36px 1fr;
    }
    
    .user-toggles {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 8px;
        gap: 24px;
    }
    
    .toggle-label {
        display: block;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Single Space Creation Styles */
.single-space-form {
    margin-bottom: 40px;
}

.single-space-section {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0%, rgba(26, 115, 232, 0.02) 100%);
    border: 2px solid rgba(26, 115, 232, 0.1);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.single-space-section .section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.single-space-section .section-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

/* Client Info Section within Single Space */
.client-info-section {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.subsection-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.subsection-icon {
    font-size: 20px;
    color: var(--primary-color);
}

/* Space Configuration Section within Single Space */
.space-config-section {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

/* Space Name Preview */
.space-name-preview {
    background: rgba(26, 115, 232, 0.05);
    border: 1px solid rgba(26, 115, 232, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Members Section within Single Space */
.members-section {
    margin-top: 24px;
}

.members-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(52, 168, 83, 0.05);
    border: 1px solid rgba(52, 168, 83, 0.2);
    border-radius: 8px;
    transition: all var(--animation-duration) var(--animation-easing);
}

.member-item:hover {
    background: rgba(52, 168, 83, 0.08);
    border-color: rgba(52, 168, 83, 0.3);
}

.member-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--secondary-color);
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.member-email {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.manager-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.manager-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

/* Form Textarea for Single Space */
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
    transition: border-color var(--animation-duration) var(--animation-easing);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-hint {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    margin: 48px 0;
    text-align: center;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.divider-text {
    margin: 0 24px;
    padding: 8px 16px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Multiple Spaces Section */
.multiple-spaces-section {
    background: linear-gradient(135deg, rgba(52, 168, 83, 0.05) 0%, rgba(52, 168, 83, 0.02) 100%);
    border: 2px solid rgba(52, 168, 83, 0.1);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 0;
}

.multiple-spaces-section .section-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.multiple-spaces-section .section-description {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* Custom Prefix Group */
#customPrefixGroup {
    animation: slideDown var(--animation-duration) var(--animation-easing);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Single Space */
@media (max-width: 768px) {
    .single-space-section,
    .multiple-spaces-section {
        padding: 24px 20px;
        margin-bottom: 24px;
    }
    
    .client-info-section,
    .space-config-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .section-divider {
        margin: 32px 0;
    }
    
    .divider-text {
        margin: 0 16px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ========================================
   Preview Modal Styles
   ======================================== */

.preview-managers-section {
    margin-bottom: 8px;
}

.preview-members-label {
    font-size: 0.875rem;
}

.preview-managers-label {
    color: var(--secondary-color);
}

.preview-regular-label {
    color: var(--primary-color);
}

.preview-members-list {
    margin: 4px 0 0 20px;
    padding: 0;
    list-style: none;
}

.preview-member-item {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-member-item .material-icons {
    font-size: 16px;
}

.preview-manager-icon {
    color: var(--secondary-color);
}

.preview-member-icon {
    color: var(--primary-color);
}

.preview-member-email {
    color: var(--text-secondary);
}

.preview-no-members {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.preview-space-card {
    margin-bottom: 20px;
    padding: 12px;
    background: var(--background-color);
    border-radius: 8px;
}

.preview-space-title {
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-space-title .material-icons {
    color: var(--primary-color);
}

.preview-single-field {
    margin: 16px 0;
}

.preview-welcome-box {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
}