/* Main Content Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
}

.main-content {
  margin-left: 250px;
  padding: 20px;
  transition: all 0.3s ease;
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.search-container {
  position: relative;
  width: 300px;
}

.search-input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.search-container i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}

.top-bar-right {
  display: flex;
  align-items: center;
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-time {
  font-size: 14px;
  color: #555;
}

/* Dashboard Header */
.dashboard-header {
  margin-bottom: 20px;
}

.dashboard-header h1 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 5px;
}

.dashboard-header p {
  color: #7f8c8d;
  font-size: 14px;
}

/* Stats Container */
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.stat-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 24px;
  color: white;
}

.stat-icon.users {
  background-color: #3498db;
}

.stat-icon.products {
  background-color: #2ecc71;
}

.stat-icon.quotations {
  background-color: #f39c12;
}

.stat-icon.activities {
  background-color: #9b59b6;
}

.stat-details h3 {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 5px;
}

.stat-number {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
}

.stat-change {
  font-size: 12px;
  display: flex;
  align-items: center;
}

.stat-change i {
  margin-right: 5px;
}

.stat-change.positive {
  color: #2ecc71;
}

.stat-change.negative {
  color: #e74c3c;
}

/* Dashboard Content */
.dashboard-content {
  margin-top: 30px;
}

.row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.col-8 {
  flex: 8;
}

.col-4 {
  flex: 4;
}

/* Card Styles */
.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  overflow: hidden;
}

.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h2 {
  font-size: 18px;
  color: #2c3e50;
  margin: 0;
}

.view-all {
  color: #3498db;
  font-size: 14px;
  text-decoration: none;
}

.view-all:hover {
  text-decoration: underline;
}

.card-body {
  padding: 20px;
}

/* Table Styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 15px;
  text-align: left;
}

.data-table th {
  background-color: #f8f9fa;
  color: #7f8c8d;
  font-weight: 600;
  font-size: 14px;
}

.data-table tr {
  border-bottom: 1px solid #eee;
}

.data-table tr:last-child {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Status Badge */
.status-badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

.status-badge.approved {
  background-color: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
}

.status-badge.pending {
  background-color: rgba(243, 156, 18, 0.1);
  color: #f39c12;
}

.status-badge.rejected {
  background-color: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 5px;
}

.btn-icon {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon.view {
  background-color: rgba(52, 152, 219, 0.1);
  color: #3498db;
}

.btn-icon.edit {
  background-color: rgba(243, 156, 18, 0.1);
  color: #f39c12;
}

.btn-icon.delete {
  background-color: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.btn-icon:hover {
  opacity: 0.8;
}

/* Activity List */
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 14px;
  color: white;
}

.activity-icon.create {
  background-color: #3498db;
}

.activity-icon.edit {
  background-color: #f39c12;
}

.activity-icon.delete {
  background-color: #e74c3c;
}

.activity-icon.approve {
  background-color: #2ecc71;
}

.activity-icon.login {
  background-color: #9b59b6;
}

.activity-details p {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: #333;
}

.activity-time {
  font-size: 12px;
  color: #7f8c8d;
}

/* Quick Actions */
.mt-20 {
  margin-top: 20px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.quick-action-btn {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  text-decoration: none;
  color: #2c3e50;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quick-action-btn i {
  font-size: 24px;
  margin-bottom: 8px;
  color: #3498db;
}

.quick-action-btn span {
  font-size: 14px;
}

.quick-action-btn:hover {
  background-color: #3498db;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.quick-action-btn:hover i {
  color: white;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .row {
    flex-direction: column;
  }

  .col-8,
  .col-4 {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: 1fr;
  }

  .search-container {
    width: 200px;
  }
}

@media (max-width: 576px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-container {
    width: 100%;
    margin-bottom: 15px;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }
}
