/* Enhanced Team Styles for Boss AI Dashboard */

/* Context Switcher Enhancements */
.context-switcher {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(249, 115, 22, 0.2);
    transition: all 0.3s ease;
}

.context-switcher:hover {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
}

.context-switcher-label {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.context-selector {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid #475569;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.context-selector:hover {
    border-color: #f97316;
    background: rgba(15, 23, 42, 0.9);
    transform: translateY(-1px);
}

.context-selector:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.context-selector option {
    background: #1e293b;
    color: #e2e8f0;
    padding: 0.5rem;
}

/* Plan Limits Display */
.plan-limits-display {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(71, 85, 105, 0.3);
    border-radius: 8px;
    font-size: 0.875rem;
}

.limit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #e2e8f0;
}

.limit-item:last-child {
    margin-bottom: 0;
}

.limit-progress {
    width: 100%;
    height: 6px;
    background: rgba(71, 85, 105, 0.5);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.limit-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.limit-progress-bar.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.limit-progress-bar.danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Context Actions */
.context-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-context-action {
    padding: 0.5rem 1rem;
    border: 1px solid #475569;
    background: transparent;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    outline: none;
    flex: 1;
    min-width: 120px;
}

.btn-context-action:hover {
    border-color: #f97316;
    color: #f97316;
    background: rgba(249, 115, 22, 0.1);
    transform: translateY(-1px);
}

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

/* Team Header */
.team-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.team-header:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.team-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.team-info h2 {
    color: #60a5fa;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.team-info p {
    color: #94a3b8;
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
}

/* Enhanced Prompt Cards */
.prompt-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 2px solid #475569;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prompt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #ea580c);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prompt-card:hover {
    border-color: #f97316;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.2);
}

.prompt-card:hover::before {
    opacity: 1;
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.prompt-title {
    color: #e2e8f0;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    margin-right: 1rem;
}

.prompt-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prompt-card:hover .prompt-actions {
    opacity: 1;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.btn-icon:hover {
    background: rgba(249, 115, 22, 0.2);
    transform: scale(1.1);
}

.prompt-teaser {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prompt-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #475569;
}

.prompt-owner {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
}

.prompt-visibility {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.visibility-private {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.visibility-public {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.visibility-team {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.prompt-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #64748b;
}

/* Create Prompt Modal Enhancements */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 2px solid #475569;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #475569;
}

.modal-header h2 {
    color: #f97316;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.modal-body {
    padding: 1.5rem;
}

/* Context Selection in Modal */
.context-selection {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(71, 85, 105, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(71, 85, 105, 0.3);
}

.context-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.context-radio-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 2px solid #475569;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.3);
}

.context-radio-item:hover {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.05);
    transform: translateY(-1px);
}

.context-radio-item.selected {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.1);
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2);
}

.context-radio-item input[type="radio"] {
    margin: 0;
    accent-color: #f97316;
}

.context-radio-info {
    flex: 1;
}

.context-radio-title {
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.context-radio-description {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    display: block;
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid #475569;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Limit Warning */
.limit-warning {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.limit-warning::before {
    content: '⚠️';
    font-size: 1rem;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #475569;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.empty-state div {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    color: #64748b;
    font-size: 0.875rem;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    max-width: 400px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease;
}

.notification-success {
    background: #10b981;
    color: white;
}

.notification-error {
    background: #ef4444;
    color: white;
}

.notification-info {
    background: #3b82f6;
    color: white;
}

.notification-warning {
    background: #f59e0b;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .context-actions {
        flex-direction: column;
    }
    
    .btn-context-action {
        flex: none;
        min-width: auto;
    }
    
    .team-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-actions {
        flex-direction: column-reverse;
    }
    
    .prompt-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .prompt-actions {
        opacity: 1;
        align-self: flex-end;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .context-selector option {
        background: #0f172a;
    }
}

/* Loading states */
.loading .context-switcher {
    opacity: 0.5;
    pointer-events: none;
}

.loading .context-selector {
    background: rgba(71, 85, 105, 0.3);
}

/* Accessibility improvements */
.context-radio-item:focus-within {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

.btn-icon:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .context-switcher {
        border-width: 3px;
    }
    
    .prompt-card {
        border-width: 3px;
    }
    
    .context-radio-item {
        border-width: 3px;
    }
}

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

.stat-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-color: #64748b;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(249, 115, 22, 0.2);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-progress {
    margin-top: 0.5rem;
    height: 4px;
    background: #334155;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f97316, #fb923c);
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* Button States */
.btn-primary:disabled {
    background: #64748b;
    border-color: #64748b;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primary:disabled:hover {
    background: #64748b;
    border-color: #64748b;
    transform: none;
}

.btn-icon {
    margin-right: 0.5rem;
} 

/* Enhanced Team Member Management Styles */

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.member-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.6));
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-card:hover::before {
    opacity: 1;
}

.member-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.member-card.inactive {
    opacity: 0.7;
    border-color: var(--warning-color);
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

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

.member-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-email {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: #94a3b8;
    font-family: 'Monaco', 'Menlo', monospace;
}

.member-role {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-role.role-owner {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #92400e;
}

.member-role.role-admin {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.member-role.role-member {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

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

.member-actions .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.member-actions .btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 1px solid #dc2626;
    color: white;
}

.member-actions .btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: scale(1.05);
}
    color: var(--text-secondary);
    word-break: break-word;
}

.member-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.member-role,
.member-status,
.owner-badge {
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.member-role.role-owner {
    background: var(--success-bg);
    color: var(--success-color);
}

.member-role.role-admin {
    background: var(--warning-bg);
    color: var(--warning-color);
}

.member-role.role-member {
    background: var(--info-bg);
    color: var(--info-color);
}

.member-status.status-active {
    background: var(--success-bg);
    color: var(--success-color);
}

.member-status.status-inactive {
    background: var(--error-bg);
    color: var(--error-color);
}

.owner-badge {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #8b4513;
}

.member-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.member-stats .stat {
    white-space: nowrap;
}

.member-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

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

.btn-small.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-small.btn-secondary {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Enhanced Statistics Cards */
.stat-card .stat-details {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.stat-detail {
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    font-size: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.stat-detail.active {
    background: var(--success-bg);
    color: var(--success-color);
    border-color: var(--success-color);
}

.stat-detail.inactive {
    background: var(--error-bg);
    color: var(--error-color);
    border-color: var(--error-color);
}

.stat-limit {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Member Details Modal */
.member-details-modal {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.member-profile {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.member-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.member-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-avatar-large .avatar-placeholder {
    font-size: 2rem;
}

.member-info-detailed h3 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.member-info-detailed p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
}

.member-badges {
    display: flex;
    gap: 0.5rem;
}

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

.badge.role-owner {
    background: var(--success-bg);
    color: var(--success-color);
}

.badge.role-admin {
    background: var(--warning-bg);
    color: var(--warning-color);
}

.badge.role-member {
    background: var(--info-bg);
    color: var(--info-color);
}

.badge.status-active {
    background: var(--success-bg);
    color: var(--success-color);
}

.badge.status-inactive {
    background: var(--error-bg);
    color: var(--error-color);
}

.member-stats-detailed {
    margin-bottom: 1.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-value {
    color: var(--text-primary);
}

.member-recent-activity,
.member-recent-prompts {
    margin-bottom: 1.5rem;
}

.member-recent-activity h4,
.member-recent-prompts h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.activity-list {
    max-height: 200px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-description {
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.prompts-list {
    max-height: 200px;
    overflow-y: auto;
}

.prompt-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.prompt-item:last-child {
    border-bottom: none;
}

.prompt-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.prompt-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.prompt-category,
.prompt-visibility,
.prompt-date {
    padding: 0.125rem 0.375rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

/* Team Header Enhancements */
.team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

.team-info h1 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.team-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.team-owner,
.team-status,
.trial-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.team-owner {
    background: var(--info-bg);
    color: var(--info-color);
}

.team-status.status-active {
    background: var(--success-bg);
    color: var(--success-color);
}

.team-status.status-suspended {
    background: var(--error-bg);
    color: var(--error-color);
}

.trial-badge {
    background: var(--warning-bg);
    color: var(--warning-color);
}

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

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    margin: 0;
    color: var(--text-primary);
}

/* Activity Section */
.no-activity {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
}

.activity-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.activity-user {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .member-card {
        flex-direction: column;
        text-align: center;
    }
    
    .member-actions {
        justify-content: center;
    }
    
    .team-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .team-actions {
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
} 

/* Team Members Management Styles */
.members-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #475569;
}

.members-preview-header h4 {
    color: #f1f5f9;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.member-limit-info {
    display: flex;
    align-items: center;
}

.limit-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
}

.limit-badge.available {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.limit-badge.full {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

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

.member-preview-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(71, 85, 105, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(71, 85, 105, 0.5);
    transition: all 0.2s ease;
}

.member-preview-item:hover {
    background: rgba(71, 85, 105, 0.5);
    border-color: #f97316;
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

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

.member-name {
    font-weight: 600;
    color: #f1f5f9;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.owner-badge {
    font-size: 0.75rem;
    color: #fbbf24;
    font-weight: 500;
}

.member-role {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.125rem;
}

.member-actions {
    display: flex;
    align-items: center;
}

.btn-icon {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(71, 85, 105, 0.5);
    color: #f1f5f9;
}

.show-more-members {
    text-align: center;
    margin-top: 0.5rem;
}

.btn-link {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.875rem;
}

.btn-link:hover {
    color: #60a5fa;
}

/* Members List Modal Styles */
.members-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(71, 85, 105, 0.2);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.member-item {
    transition: all 0.2s ease;
}

.member-item:hover {
    background: rgba(71, 85, 105, 0.5) !important;
    border-color: #f97316 !important;
}

.member-item .member-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.member-email {
    margin-top: 0.25rem;
}

.member-meta {
    margin-top: 0.25rem;
}

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

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.btn-secondary.btn-sm {
    background: #475569;
    color: #f1f5f9;
    border: 1px solid #64748b;
}

.btn-secondary.btn-sm:hover {
    background: #64748b;
    border-color: #94a3b8;
}

.btn-danger.btn-sm {
    background: #ef4444;
    color: white;
    border: 1px solid #dc2626;
}

.btn-danger.btn-sm:hover {
    background: #dc2626;
    border-color: #b91c1c;
}

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

.stat-card {
    background: rgba(71, 85, 105, 0.3);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    background: rgba(71, 85, 105, 0.5);
    border-color: #f97316;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #f1f5f9;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Team Info Section */
.team-info-section {
    margin-bottom: 2rem;
}

.team-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-details h2 {
    color: #f1f5f9;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.team-details p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.875rem;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.role-badge.owner {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.role-badge.admin {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.role-badge.member {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Status Badge Styles */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.enterprise {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.trial {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Team Management Section */
.team-management-section,
.team-view-section {
    background: rgba(71, 85, 105, 0.2);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.section-header h3 {
    color: #f1f5f9;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.section-header p {
    color: #94a3b8;
    margin: 0 0 1rem 0;
    font-size: 0.875rem;
}

.management-actions,
.view-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Error and Loading States */
.error-state {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
}

.error-state h3 {
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.loading-skeleton {
    padding: 2rem;
    text-align: center;
}

.loading-text {
    color: #94a3b8;
    font-style: italic;
}

/* Modal Enhancements */
.modal-overlay {
    backdrop-filter: blur(4px);
}

.modal-content {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .member-preview-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .member-actions {
        align-self: flex-end;
    }
    
    .team-header-info {
        flex-direction: column;
        text-align: center;
    }
    
    .management-actions,
    .view-actions {
        flex-direction: column;
    }
    
    .team-stats-grid {
        grid-template-columns: 1fr;
    }
} 

/* Floating Team Management Button */
.floating-team-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-team-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.float-team-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

.float-team-btn.main {
    width: 64px;
    height: 64px;
    font-size: 1.8rem;
}

.float-team-btn:not(.main) {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.floating-team-actions.expanded .float-team-btn:not(.main) {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.float-btn-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid #475569;
}

.float-team-btn:hover .float-btn-tooltip {
    opacity: 1;
}

/* Enhanced Team Management Section Visibility */
.team-management-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(30, 64, 175, 0.05));
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.team-management-section .section-header h3 {
    color: #60a5fa;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.team-management-section .management-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.team-management-section .btn-primary,
.team-management-section .btn-secondary {
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.team-management-section .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* Pulsing indicator for team features */
@keyframes pulse-team {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.team-feature-highlight {
    animation: pulse-team 2s infinite;
}

/* Team context indicator */
.team-context-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.team-context-indicator::before {
    content: "👥 ";
}

/* Enterprise Team Creation Prompt */
.enterprise-team-prompt {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 2px solid #f97316;
    border-radius: 12px;
    padding: 0;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.5s ease;
}

.enterprise-prompt-content {
    padding: 1.5rem;
}

.enterprise-prompt-content h3 {
    color: #f97316;
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
}

.enterprise-prompt-content p {
    color: #e2e8f0;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.enterprise-prompt-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.enterprise-prompt-actions .btn-primary,
.enterprise-prompt-actions .btn-secondary {
    flex: 1;
    min-width: 120px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive adjustments for mobile */
/* Team Settings Styles */
.team-settings-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #475569;
}

.team-settings-header h2 {
    color: #f1f5f9;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.team-settings-header p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.95rem;
}

.team-info-section,
.team-members-section {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h3 {
    color: #e2e8f0;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.section-header p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

.team-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #475569;
    border-radius: 8px;
}

.info-item label {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.875rem;
}

.info-item span {
    color: #e2e8f0;
    font-weight: 600;
}

.plan-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
}

.members-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #475569;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.member-card:hover {
    border-color: #64748b;
    background: rgba(30, 41, 59, 0.9);
}

.member-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
}

.member-name {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.member-email {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.member-role {
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.member-role.role-owner {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.member-role.role-admin {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.member-role.role-member {
    background: rgba(71, 85, 105, 0.5);
    color: #94a3b8;
    border: 1px solid #64748b;
}

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

.btn-remove {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.add-member-btn {
    background: linear-gradient(135deg, #10a37f, #059669);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-member-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 163, 127, 0.3);
}

.empty-members {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.3);
    border: 2px dashed #475569;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .enterprise-team-prompt {
        position: fixed;
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .enterprise-prompt-actions {
        flex-direction: column;
    }
    
    .enterprise-prompt-actions .btn-primary,
    .enterprise-prompt-actions .btn-secondary {
        flex: none;
    }
    
    .team-info-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
} 