/* ==========================================================================
   FILE: /bonsai/public/assets/css/dashboard.css
   PROJECT: Bonsai Collection Tracker
   PURPOSE: Dashboard-specific styles layered over admin.css and global.css
   AUTHOR: [Your Name or Team]
   LAST UPDATED: 2025-11-14

   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   --------------------------------------------------------------------------
   1. OVERVIEW
   2. DASHBOARD GRID LAYOUT
   3. METRICS CARDS
   4. CHART SECTIONS
   5. ACTIVITY LOG / RECENT UPDATES
   6. TABLE HIGHLIGHTS
   7. RESPONSIVENESS
   --------------------------------------------------------------------------

   DEPENDENCIES:
   • global.css - for structure, header, footer
   • admin.css  - for sidebar, base controls

   NOTE:
   - Keep selectors dashboard-specific using `.dashboard-*` prefix.
   - Designed for flexible dashboards and report summaries.
   ========================================================================== */


/* ==========================================================================
   1. OVERVIEW
   ========================================================================== */

body.dashboard {
  background-color: #f8f9f5;
}

.dashboard-main {
  padding: 2rem;
}

.dashboard-header {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-header h1 {
  font-size: 1.8rem;
  color: #2d362d;
}

/* ==========================================================================
   2. DASHBOARD GRID LAYOUT
   ========================================================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ==========================================================================
   3. METRICS CARDS
   ========================================================================== */

.metric-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
}

.metric-title {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.4rem;
  letter-spacing: 0.4px;
}

.metric-value {
  font-size: 1.7rem;
  color: #2d362d;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.metric-diff {
  font-size: 0.85rem;
  color: #5a8245;
}

.metric-diff.negative {
  color: #b8453e;
}

/* Status Cards with Price Totals */
.status-cards .card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
}

.status-cards .card .price-total {
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  margin-top: -0.25rem;
  margin-bottom: 0.25rem;
}

.status-cards .card .count {
  margin-bottom: 0;
}


/* ==========================================================================
   4. CHART SECTIONS
   ========================================================================== */

.chart-container {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-top: 1.5rem;
}

.chart-header {
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chart-header h2 {
  font-size: 1.2rem;
  color: #2d362d;
}

.chart-placeholder {
  background-color: #ecf0e6;
  border-radius: 4px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* ==========================================================================
   5. ACTIVITY LOG / RECENT UPDATES
   ========================================================================== */

.activity-log {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-top: 2rem;
}

.activity-log h3 {
  font-size: 1.1rem;
  color: #2d362d;
  margin-bottom: 0.8rem;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 0.5rem 0;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item span {
  font-size: 0.9rem;
  color: #555;
}

/* ==========================================================================
   6. TABLE HIGHLIGHTS
   ========================================================================== */

.dashboard-table {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-top: 1.5rem;
  overflow-x: auto;
}

.dashboard-table table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
}

.dashboard-table th {
  background-color: #f3f5f0;
  color: #2d362d;
  font-weight: 600;
}

/* ==========================================================================
   7. RESPONSIVENESS
   ========================================================================== */

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    align-items: center;
    text-align: center;
  }

  .chart-container {
    padding: 1rem;
  }

  .dashboard-main {
    padding: 1rem;
  }
}

/* ==========================================================================
   END OF FILE: /bonsai/public/assets/css/dashboard.css
   ========================================================================== */
/* dashboard.css | v2.0.0 | 2025-11-16 */
