/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  min-height: 100vh;
  padding: 20px 0;
  margin: 0;
}

a, a:hover, a:active, a:visited {
  text-decoration: none;
  color: initial;
}

.container {
  max-width: 1200px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 30px;
  margin: 20px auto;
}

/* Header Styles */
.dashboard-header,
.admin-header,
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 3px solid #e85d75;
}

.dashboard-header h1,
.admin-header h1,
.history-header h1 {
  color: #333;
  margin: 0;
  font-size: 2.5rem;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-actions .btn {
  background: transparent;
  border: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
}

.header-actions .btn:hover {
  background: #e85d75;
  color: white;
  border: none;
  transform: translateY(-2px);
}

.header-actions .btn-secondary:hover {
  background: #2c2c2c;
  color: white;
}

.header-actions .btn-outline-primary,
.header-actions .btn-primary {
  background: transparent;
  border: none;
  color: #333;
}

.header-actions .btn-outline-primary:hover,
.header-actions .btn-primary:hover {
  background: #e85d75;
  color: white;
}

.header-actions .btn-outline-danger:hover {
  background: #2c2c2c;
  color: white;
}


.admin-username {
  padding: 8px 15px;
  background: #f8f9fa;
  border-radius: 5px;
  font-weight: 500;
}

/* Grand Total Section */
.grand-total-section {
  text-align: center;
  margin: 30px 0;
  padding: 40px;
  background: linear-gradient(135deg, #e85d75 0%, #d94560 100%);
  border-radius: 15px;
  color: white;
}

.grand-total-section h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.grand-total {
  font-size: 4rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Employee Grid */
.employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.employee-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.employee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.employee-card.top-dog {
  border-color: #e85d75;
  background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
  box-shadow: 0 5px 20px rgba(232, 93, 117, 0.3);
}

.employee-rank {
  font-size: 1.2rem;
  font-weight: bold;
  color: #2c2c2c;
  margin-bottom: 10px;
}

.employee-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.top-dog-badge {
  display: inline-block;
  background: #2c2c2c;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-left: 10px;
  font-weight: bold;
}

.employee-amount {
  font-size: 2rem;
  font-weight: bold;
  color: #28a745;
  margin-bottom: 15px;
}

/* Chart Section */
.chart-section {
  margin: 40px 0;
}

.chart-section h3 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

.chart-container {
  margin-top: 40px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

/* Login Styles */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.login-box {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

/* Admin Section */
.admin-section {
  margin: 30px 0;
}

.card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin-bottom: 20px;
}

.card-header {
  background: linear-gradient(135deg, #e85d75 0%, #d94560 100%);
  color: white;
  border-radius: 10px 10px 0 0 !important;
  padding: 15px 20px;
}

.card-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

/* History Styles */
.history-section {
  margin: 30px 0;
}

.history-total {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e85d75;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 5px;
  text-align: center;
}

/* Table Styles */
.table {
  margin-top: 20px;
}

.table thead th {
  background: #2c2c2c;
  color: white;
  border: none;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(232, 93, 117, 0.05);
}

footer {
  text-align: center;
  padding: 20px;
  color: white;
  margin-top: 50px;
}

#mflash {
  color: red;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-header,
  .admin-header,
  .history-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .header-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .header-actions .btn {
    width: 100%;
  }
  
  .employee-grid {
    grid-template-columns: 1fr;
  }
  
  .grand-total {
    font-size: 3rem;
  }
}

