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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4f46e5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #4f46e5;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #4f46e5;
    color: white;
}

.btn-primary:hover {
    background: #4338ca;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-ghost {
    background: transparent;
    color: #6b7280;
}

.btn-ghost:hover {
    background: #f3f4f6;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.view {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.view.active {
    display: block;
}

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

/* Dashboard */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: #6b7280;
    font-size: 1.125rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-card {
    text-align: center;
    cursor: pointer;
}

.card-icon {
    font-size: 3rem;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Workflow */
.workflow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.progress-bar {
    display: flex;
    gap: 1rem;
}

.progress-step {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-radius: 20px;
    font-weight: 500;
    color: #6b7280;
    position: relative;
}

.progress-step.active {
    background: #4f46e5;
    color: white;
}

.progress-step.completed {
    background: #10b981;
    color: white;
}

/* Step Content */
.step-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.step-content.hidden {
    display: none;
}

.step-content h2 {
    margin-bottom: 2rem;
    color: #1f2937;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Template Grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.template-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.template-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1);
}

.template-card.selected {
    border-color: #4f46e5;
    background: #f0f9ff;
}

.template-preview {
    font-size: 2rem;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.template-card h3 {
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.template-card p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Forms */
.settings-form {
    max-width: 500px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    height: 100px;
}

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

.input-group input {
    flex: 1;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-option input {
    width: auto;
}

/* Team Section */
.team-invite-section {
    max-width: 600px;
}

.invited-members {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
}

.invited-members h4 {
    margin-bottom: 1rem;
    color: #374151;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-info i {
    font-size: 1.25rem;
    color: #6b7280;
}

.remove-member {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.75rem;
}

/* Review Section */
.review-section {
    display: grid;
    gap: 1.5rem;
}

.review-item {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.review-item h4 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.review-item p {
    color: #6b7280;
}

/* Whiteboard */
.whiteboard-toolbar {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.toolbar-group {
    display: flex;
    gap: 0.5rem;
}

.tool-btn {
    padding: 0.75rem;
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    color: #6b7280;
}

.tool-btn:hover,
.tool-btn.active {
    background: #4f46e5;
    color: white;
}

.toolbar-actions {
    margin-left: auto;
    display: flex;
    gap: 1rem;
}

.whiteboard-canvas {
    background: white;
    border-radius: 12px;
    min-height: 500px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.canvas-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.125rem;
}

/* Team Management */
.team-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.team-header h2 {
    color: #1f2937;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-card h3 {
    font-size: 2rem;
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #6b7280;
    font-size: 0.875rem;
}

.team-list {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.team-list h3 {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.member-avatar {
    font-size: 2rem;
    color: #6b7280;
}

.member-details {
    flex: 1;
}

.member-details h4 {
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.member-details p {
    color: #6b7280;
    font-size: 0.875rem;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.role-badge.admin {
    background: #fef3c7;
    color: #d97706;
}

.role-badge.editor {
    background: #dbeafe;
    color: #2563eb;
}

.role-badge.viewer {
    background: #f3f4f6;
    color: #6b7280;
}

/* Templates Gallery */
.templates-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.template-filters select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.template-gallery-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.template-gallery-card:hover {
    transform: translateY(-2px);
}

.template-thumbnail {
    font-size: 3rem;
    color: #4f46e5;
    text-align: center;
    margin-bottom: 1rem;
}

.template-gallery-card h3 {
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.template-gallery-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.template-actions {
    display: flex;
    gap: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        display: none;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .progress-bar {
        justify-content: center;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .whiteboard-toolbar {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .toolbar-actions {
        margin-left: 0;
    }
    
    .team-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .templates-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .member-card {
        flex-direction: column;
        align-items: start;
        gap: 1rem;
    }
    
    .member-actions {
        align-self: stretch;
    }
}