/**
 * My Daily Report1 Styling
 * Modern card-based layout (Boss Report style)
 */

/* ========================================
   REPORT AREA CONTAINER
   ======================================== */

#myReport1Area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fafaf9;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
}

#myReport1Content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* ========================================
   HEADER SECTION
   ======================================== */

.my-report1-header {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
  overflow: hidden;
}

.my-report1-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 16px 24px;
}

.my-report1-header-middle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 24px 16px 30px;
}

.my-report1-header-icon {
  font-size: 20px;
  line-height: 1;
}

.my-report1-header-text {
  flex: 1;
}

.my-report1-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.my-report1-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* ========================================
   STATS CARDS (INSIDE HEADER)
   ======================================== */

.my-report1-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 24px 20px 24px;
}

.my-report1-stat-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.my-report1-stat-card:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.my-report1-stat-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}

.my-report1-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

/* ========================================
   SECTION CONTAINERS
   ======================================== */

.my-report1-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e7e5e4;
}

.my-report1-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e7e5e4;
}

.my-report1-section-icon {
  font-size: 18px;
  line-height: 1;
}

.my-report1-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6366f1;
  margin: 0;
}

/* ========================================
   EXECUTIVE SUMMARY
   ======================================== */

.my-report1-summary {
  background: #fcf3fc;
  border-left: 4px solid #6366f1;
}

.my-report1-summary-text {
  font-size: 14px;
  color: #1c1917;
  margin: 0;
}

/* ========================================
   ACTIVITY SECTION
   ======================================== */

.my-report1-activity-card {
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 12px;
}

.my-report1-activity-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 0;
}

.my-report1-activity-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.my-report1-activity-info {
  flex: 1;
}

.my-report1-activity-name {
  font-size: 14px;
  font-weight: 600;
  color: #1c1917;
  margin-bottom: 2px;
}

.my-report1-activity-email {
  font-size: 12px;
  color: #78716c;
}

.my-report1-activity-status {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.my-report1-activity-status.on-track {
  background: #d4edda;
  color: #155724;
}

.my-report1-activity-status.at-risk {
  background: #fff3cd;
  color: #856404;
}

.my-report1-activity-status.blocked {
  background: #f8d7da;
  color: #721c24;
}

.my-report1-activity-summary {
  font-size: 14px;
  color: #44403c;
  margin: 0 0 15px 0;
}

.my-report1-activity-section {
  margin-bottom: 20px;
}

.my-report1-activity-section:last-child {
  margin-bottom: 0;
}

.my-report1-activity-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #78716c;
  margin: 0 0 12px 0;
}

.my-report1-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.my-report1-activity-list li {
  font-size: 12px;
  color: #44403c;
  padding-left: 20px;
  position: relative;
}

.my-report1-activity-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #6366f1;
  font-weight: 700;
}

.my-report1-blocker-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: #fff3cd;
  border-left: 3px solid #fbbf24;
  border-radius: 6px;
  margin-bottom: 8px;
}

.my-report1-blocker-item:last-child {
  margin-bottom: 0;
}

.my-report1-blocker-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.my-report1-blocker-text {
  font-size: 14px;
  color: #92400e;
  line-height: 1.5;
}

/* ========================================
   KEY INSIGHTS SECTION
   ======================================== */

.my-report1-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.my-report1-insight-card {
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  padding: 20px;
}

.my-report1-insight-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e7e5e4;
}

.my-report1-insight-icon {
  font-size: 18px;
  line-height: 1;
}

.my-report1-insight-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #44403c;
  margin: 0;
  flex: 1;
}

.my-report1-insight-count {
  min-width: 20px;
  height: 20px;
  padding: 0 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.my-report1-insight-item {
  font-size: 14px;
  color: #44403c;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f4;
  line-height: 1.5;
}

.my-report1-insight-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.my-report1-insight-detail {
  color: #78716c;
  font-size: 13px;
}

.my-report1-insight-empty {
  font-size: 14px;
  color: #a8a29e;
  font-style: italic;
  padding: 12px 0;
}

/* ========================================
   PRIORITIES FOR TOMORROW
   ======================================== */

.my-report1-priorities-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: priority-counter;
}

.my-report1-priority-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  background: #fafaf9;
  border-left: 3px solid #6366f1;
  border-radius: 6px;
  margin-bottom: 12px;
  counter-increment: priority-counter;
  position: relative;
  padding-left: 48px;
}

.my-report1-priority-item:before {
  content: counter(priority-counter);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.my-report1-priority-item:last-child {
  margin-bottom: 0;
}

.my-report1-priority-text {
  flex: 1;
  font-size: 15px;
  color: #1c1917;
  font-weight: 500;
  line-height: 1.5;
}

.my-report1-priority-time {
  font-size: 13px;
  color: #78716c;
  white-space: nowrap;
}

.my-report1-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #a8a29e;
  font-size: 15px;
  font-style: italic;
}

/* ========================================
   RESPONSIVE DESIGN (MOBILE)
   ======================================== */

@media (max-width: 768px) {
  #myReport1Content {
    padding: 16px;
  }

  .my-report1-header-top {
    padding: 20px 20px 10px 20px;
  }

  .my-report1-title {
    font-size: 24px;
  }

  .my-report1-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px 20px 20px;
  }

  .my-report1-insights-grid {
    grid-template-columns: 1fr;
  }

  .my-report1-priority-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .my-report1-priority-time {
    margin-top: 4px;
  }

  .my-report1-activity-header {
    flex-wrap: wrap;
  }

  .my-report1-activity-status {
    width: 100%;
    text-align: center;
  }
}

/* ========================================
   LOADING & ERROR STATES
   ======================================== */

.daily-report-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.daily-report-loading p {
  margin-top: 20px;
  font-size: 16px;
  color: #78716c;
}

.daily-report-loading-hint {
  font-size: 14px;
  color: #a8a29e;
  font-style: italic;
}

.eodr-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.eodr-error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.eodr-error h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1c1917;
  margin: 0 0 12px 0;
}

.eodr-error p {
  font-size: 15px;
  color: #78716c;
  margin: 0 0 24px 0;
}

.eodr-error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.eodr-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.2s ease;
}

.eodr-btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border-color: #6366f1;
}

.eodr-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.eodr-btn-secondary {
  background: #ffffff;
  color: #44403c;
  border-color: #e7e5e4;
}

.eodr-btn-secondary:hover {
  background: #fafaf9;
  border-color: #d6d3d1;
}

/* ========================================
   SPINNER ANIMATION
   ======================================== */

.eodr-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e7e5e4;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
