/**
 * Universal Dashboard Styles
 * 
 * Styling für das universelle Dashboard mit Rollenwechsel-Funktion
 */

/* ============================================
   Container & Layout
   ============================================ */

.rso-universal-dashboard {
	max-width: 1400px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

/* ============================================
   View Switcher (für Manager/Admin)
   ============================================ */

.rso-view-switcher {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 2rem;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rso-switcher-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: white;
	font-weight: 600;
	font-size: 0.95rem;
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.rso-switcher-icon {
	font-size: 1.2rem;
}

.rso-switcher-buttons {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.rso-view-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	background: rgba(255, 255, 255, 0.2);
	color: white;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 8px;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.rso-view-btn:hover {
	background: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.5);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.rso-view-btn.active {
	background: white;
	color: #667eea;
	border-color: white;
	font-weight: 600;
}

.rso-btn-icon {
	font-size: 1.2rem;
}

/* ============================================
   Demo Notice
   ============================================ */

.rso-demo-notice {
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 8px;
	padding: 1rem 1.5rem;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.rso-demo-notice .rso-notice-icon {
	font-size: 1.5rem;
}

.rso-demo-notice .rso-edit-link {
	margin-left: auto;
	padding: 0.5rem 1rem;
	background: #ffc107;
	color: #000;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 500;
	transition: background 0.3s ease;
}

.rso-demo-notice .rso-edit-link:hover {
	background: #ffb300;
}

/* ============================================
   Manager Dashboard
   ============================================ */

.rso-manager-dashboard {
	animation: fadeIn 0.3s ease;
}

.rso-dashboard-header {
	margin-bottom: 2rem;
}

.rso-dashboard-header h2 {
	font-size: 2rem;
	font-weight: 700;
	color: #1a202c;
	margin: 0 0 0.5rem 0;
}

.rso-welcome-text {
	color: #718096;
	font-size: 1.1rem;
	margin: 0;
}

/* ============================================
   Stats Grid
   ============================================ */

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

.rso-stat-card {
	background: white;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	display: flex;
	align-items: center;
	gap: 1.5rem;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.rso-stat-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.rso-stat-projects { border-color: #4299e1; }
.rso-stat-leads { border-color: #48bb78; }
.rso-stat-marketplace { border-color: #ed8936; }
.rso-stat-installers { border-color: #9f7aea; }

.rso-stat-icon {
	font-size: 3rem;
	line-height: 1;
}

.rso-stat-content {
	flex: 1;
}

.rso-stat-value {
	font-size: 2.5rem;
	font-weight: 700;
	color: #1a202c;
	line-height: 1;
	margin-bottom: 0.25rem;
}

.rso-stat-label {
	color: #718096;
	font-size: 0.9rem;
	font-weight: 500;
}

/* ============================================
   Quick Actions
   ============================================ */

.rso-quick-actions {
	margin-bottom: 3rem;
}

.rso-quick-actions h3 {
	font-size: 1.5rem;
	font-weight: 600;
	color: #1a202c;
	margin: 0 0 1.5rem 0;
}

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

.rso-action-card {
	background: white;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	padding: 1.5rem;
	text-align: center;
	text-decoration: none;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.rso-action-card:hover {
	border-color: #667eea;
	background: #f7fafc;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.rso-action-icon {
	font-size: 2.5rem;
	line-height: 1;
}

.rso-action-label {
	color: #2d3748;
	font-weight: 600;
	font-size: 0.95rem;
}

/* ============================================
   Recent Activity
   ============================================ */

.rso-recent-activity,
.rso-priority-section {
	background: white;
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	margin-bottom: 2rem;
}

.rso-recent-activity h3,
.rso-priority-section h3 {
	font-size: 1.5rem;
	font-weight: 600;
	color: #1a202c;
	margin: 0 0 1.5rem 0;
}

.rso-activity-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.rso-activity-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background: #f7fafc;
	border-radius: 8px;
	transition: background 0.2s ease;
}

.rso-activity-item:hover {
	background: #edf2f7;
}

.rso-activity-icon {
	font-size: 1.5rem;
	line-height: 1;
}

.rso-activity-content {
	flex: 1;
}

.rso-activity-title {
	font-weight: 600;
	color: #2d3748;
	margin-bottom: 0.25rem;
}

.rso-activity-title a {
	color: #667eea;
	text-decoration: none;
}

.rso-activity-title a:hover {
	text-decoration: underline;
}

.rso-activity-location {
	color: #718096;
	font-weight: 400;
	font-size: 0.9rem;
}

.rso-activity-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #718096;
	font-size: 0.85rem;
}

.rso-activity-separator {
	color: #cbd5e0;
}

.rso-no-activity {
	text-align: center;
	color: #a0aec0;
	padding: 2rem;
	font-style: italic;
}

/* ============================================
   Login Prompt
   ============================================ */

.rso-login-prompt {
	max-width: 500px;
	margin: 4rem auto;
	background: white;
	border-radius: 12px;
	padding: 3rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.rso-prompt-icon {
	font-size: 4rem;
	margin-bottom: 1rem;
}

.rso-login-prompt h3 {
	font-size: 1.75rem;
	font-weight: 600;
	color: #1a202c;
	margin: 0 0 1rem 0;
}

.rso-login-prompt p {
	color: #718096;
	margin-bottom: 2rem;
}

.rso-login-prompt form {
	text-align: left;
	margin-bottom: 2rem;
}

.rso-register-links {
	border-top: 1px solid #e2e8f0;
	padding-top: 1.5rem;
	margin-top: 1.5rem;
}

.rso-register-links p {
	margin-bottom: 1rem;
	color: #4a5568;
}

.rso-btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.rso-btn-secondary {
	background: #edf2f7;
	color: #2d3748;
	border: 2px solid #cbd5e0;
}

.rso-btn-secondary:hover {
	background: #e2e8f0;
	border-color: #a0aec0;
}

/* ============================================
   No Access / No Project
   ============================================ */

.rso-no-access,
.rso-no-project {
	max-width: 600px;
	margin: 4rem auto;
	background: white;
	border-radius: 12px;
	padding: 3rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.rso-no-access .rso-notice-icon,
.rso-no-project .rso-notice-icon {
	font-size: 4rem;
	margin-bottom: 1rem;
}

.rso-no-access h3,
.rso-no-project h3 {
	font-size: 1.75rem;
	font-weight: 600;
	color: #1a202c;
	margin: 0 0 1rem 0;
}

.rso-no-access p,
.rso-no-project p {
	color: #718096;
	font-size: 1.1rem;
}

/* ============================================
   Animations
   ============================================ */

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

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
	.rso-universal-dashboard {
		padding: 1rem 0.5rem;
	}

	.rso-view-switcher {
		padding: 1rem;
	}

	.rso-switcher-buttons {
		flex-direction: column;
		gap: 0.5rem;
	}

	.rso-view-btn {
		width: 100%;
		justify-content: center;
	}

	.rso-stats-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.rso-stat-card {
		padding: 1rem;
	}

	.rso-stat-icon {
		font-size: 2rem;
	}

	.rso-stat-value {
		font-size: 2rem;
	}

	.rso-actions-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}

	.rso-action-card {
		padding: 1rem;
	}

	.rso-action-icon {
		font-size: 2rem;
	}

	.rso-action-label {
		font-size: 0.85rem;
	}

	.rso-dashboard-header h2 {
		font-size: 1.5rem;
	}

	.rso-recent-activity,
	.rso-priority-section {
		padding: 1.5rem;
	}

	.rso-activity-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.rso-login-prompt {
		padding: 2rem 1.5rem;
		margin: 2rem 1rem;
	}
}

@media (max-width: 480px) {
	.rso-actions-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   Dark Mode Support (optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
	.rso-universal-dashboard {
		color: #e2e8f0;
	}

	.rso-dashboard-header h2,
	.rso-stat-value,
	.rso-activity-title,
	.rso-quick-actions h3,
	.rso-recent-activity h3,
	.rso-priority-section h3 {
		color: #f7fafc;
	}

	.rso-stat-card,
	.rso-action-card,
	.rso-recent-activity,
	.rso-priority-section,
	.rso-login-prompt,
	.rso-no-access,
	.rso-no-project {
		background: #2d3748;
		color: #e2e8f0;
	}

	.rso-activity-item {
		background: #1a202c;
	}

	.rso-activity-item:hover {
		background: #2d3748;
	}

	.rso-action-card {
		border-color: #4a5568;
	}

	.rso-action-card:hover {
		background: #2d3748;
		border-color: #667eea;
	}
}
