/* Care Ecosystem Dashboard Styles */

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

:root {
  --primary: #667eea;
  --primary-dark: #764ba2;
  --secondary: #6c757d;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  --light: #f8f9fa;
  --dark: #343a40;
  --gray-100: #f6f8fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-600: #6c757d;
  --gray-800: #343a40;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.6;
}

/* Dashboard Container */
.dashboard-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.dashboard-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}

.header-content p {
  font-size: 16px;
  opacity: 0.9;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Navigation Tabs */
.dashboard-nav {
  background: white;
  border-bottom: 2px solid var(--gray-200);
  padding: 0 40px;
  display: flex;
  gap: 8px;
}

.nav-tab {
  padding: 16px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.nav-tab:hover {
  color: var(--primary);
  background: var(--gray-100);
}

.nav-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Main Content */
.dashboard-main {
  flex: 1;
  padding: 40px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.view-content {
  display: none;
}

.view-content.active {
  display: block;
}

.view-header {
  margin-bottom: 32px;
}

.view-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.view-subtitle {
  font-size: 16px;
  color: var(--gray-600);
}

/* Date Selector */
.date-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  background: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.nav-arrow {
  width: 40px;
  height: 40px;
  border: 2px solid var(--gray-300);
  background: white;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}

.nav-arrow:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--gray-100);
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.date-dropdown {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.date-dropdown:hover {
  border-color: var(--primary);
}

.date-dropdown:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Report Container */
.report-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  height: calc(100vh - 400px);
  min-height: 600px;
}

.report-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--gray-800);
}

.empty-state p {
  font-size: 16px;
  color: var(--gray-600);
  text-align: center;
  max-width: 500px;
}

/* About View */
.about-container {
  max-width: 800px;
  margin: 0 auto;
}

.about-container h2 {
  font-size: 32px;
  margin-bottom: 32px;
}

.info-card {
  background: white;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.info-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.info-card p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-card ul {
  list-style: none;
  padding-left: 0;
}

.info-card li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.info-card li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--primary);
  font-weight: bold;
}

.info-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.info-card a:hover {
  text-decoration: underline;
}

.footer-info {
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
}

/* Footer */
.dashboard-footer {
  background: white;
  border-top: 2px solid var(--gray-200);
  padding: 24px 40px;
  text-align: center;
  color: var(--gray-600);
  font-size: 14px;
}

.dashboard-footer a {
  color: var(--primary);
  text-decoration: none;
}

.dashboard-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }

  .header-content {
    text-align: center;
  }

  .dashboard-nav {
    padding: 0 16px;
    overflow-x: auto;
  }

  .nav-tab {
    padding: 12px 16px;
    font-size: 14px;
  }

  .dashboard-main {
    padding: 24px 16px;
  }

  .date-selector {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .date-dropdown {
    width: 100%;
    order: -1;
  }

  .report-container {
    height: calc(100vh - 500px);
    min-height: 400px;
  }

  .info-card {
    padding: 24px 20px;
  }
}
