/* Basic Reset & Font */
* { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { background-color: #f3f4f6; margin: 0; padding: 20px; color: #333; }

.dashboard-container { max-width: 1200px; margin: 0 auto; }

/* Header Area */
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; background: white; padding: 15px 25px; border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.top-bar h1 { margin: 0; font-size: 24px; color: #111; }
.date-controls input, .date-controls button { padding: 8px 12px; border: 1px solid #ccc; border-radius: 5px; margin-left: 10px; font-size: 14px;}
.date-controls button { background-color: #2563eb; color: white; border: none; cursor: pointer; font-weight: bold;}
.date-controls button:hover { background-color: #1d4ed8; }

/* Cards Grid */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.card h3 { margin: 0 0 10px 0; font-size: 14px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px;}
.metric { font-size: 32px; font-weight: bold; color: #111; margin-bottom: 5px; }
.trend { font-size: 13px; color: #6b7280; }

/* Dynamic Colors for Arrows (Handled by JS) */
.text-green { color: #16a34a; font-weight: bold; }
.text-red { color: #dc2626; font-weight: bold; }
.text-gray { color: #6b7280; font-weight: bold; }