/* styles/dashboard.css */ .dashboard-container { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; max-width: 1200px; margin: 0 auto; padding: 20px; } .dashboard-header { color: #2c3e50; border-bottom: 2px solid #3498db; padding-bottom: 10px; margin-bottom: 30px; } .dashboard-card { background: white; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); padding: 20px; margin-bottom: 30px; } .card-title { color: #2980b9; margin-top: 0; } .stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-bottom: 20px; } .stat-card { background: #f8f9fa; padding: 15px; border-radius: 6px; border-left: 4px solid #3498db; } .stat-value { font-size: 24px; font-weight: bold; color: #2c3e50; } .stat-label { color: #7f8c8d; font-size: 14px; } .table-container { overflow-x: auto; } .data-table { width: 100%; border-collapse: collapse; margin-top: 20px; } .data-table th { background-color: #3498db; color: white; padding: 12px; text-align: left; } .data-table td { padding: 10px 12px; border-bottom: 1px solid #ecf0f1; } .data-table tr:hover { background-color: #f8f9fa; } .action-btn { background-color: #3498db; color: white; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; margin-right: 5px; font-size: 14px; } .action-btn.secondary { background-color: #95a5a6; } .action-btn.danger { background-color: #e74c3c; } .action-btn:hover { opacity: 0.9; } .chart-container { height: 300px; margin: 20px 0; } .search-filter { display: flex; justify-content: space-between; margin-bottom: 20px; } .search-box { padding: 10px; border: 1px solid #ddd; border-radius: 4px; width: 300px; } .filter-select { padding: 10px; border: 1px solid #ddd; border-radius: 4px; background: white; } .page-title { color: #2c3e50; border-bottom: 3px solid #4A90E2; padding-bottom: 0.5rem; margin-bottom: 2rem; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; } .chart-card, .metrics-card { background: white; padding: 1.5rem; border-radius: 10px; box-shadow: 0 2px 15px rgba(0,0,0,0.1); } .recent-sales table { width: 100%; border-collapse: collapse; margin-top: 1rem; } th, td { text-align: left; padding: 12px; border-bottom: 1px solid #eee; } .status { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; } .status.completed { background: #e8f5e9; color: #2e7d32; } .progress-bar { height: 8px; background: #eee; border-radius: 4px; overflow: hidden; } .progress-fill { height: 100%; background: #4A90E2; transition: width 0.3s ease; } /* Sales Reports Specific */ .report-filters { display: flex; gap: 1rem; margin-bottom: 2rem; } .report-filters select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 5px; background: white; } .export-btn { padding: 6px 12px; border: none; border-radius: 5px; margin: 2px; cursor: pointer; } .export-btn.pdf { background: #ff4757; color: white; } .export-btn.excel { background: #2ed573; color: white; } /* Stock & Campaign Management */ .management-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; } .stock-item { background: white; padding: 1rem; margin-bottom: 1rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); } .stock-quantity.low { color: #e74c3c; } .campaign-card { background: white; padding: 1rem; margin-bottom: 1rem; border-left: 4px solid; border-radius: 6px; } .campaign-card.active { border-color: #4A90E2; } .campaign-card.planned { border-color: #f1c40f; } .campaign-form { background: #f9f9f9; padding: 1.5rem; border-radius: 8px; margin-top: 2rem; } .campaign-form input { display: block; width: 100%; padding: 8px; margin: 8px 0; border: 1px solid #ddd; } .add-button { background: #4A90E2; color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; margin-top: 1rem; } @media (max-width: 768px) { .management-container { grid-template-columns: 1fr; } .grid-container { grid-template-columns: 1fr; } }