/* Main Styles for ERP System */

/* General Styles */
body {
  background-color: #f8f9fc;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;
}

.content-wrapper {
  padding: 1.5rem;
}
.btn-primary{
    background-color:black !important;
    color:white;
    border:0px;
}
a.nav-link.active {
    background-color: black !important;
}

/* Sidebar Styles */
.sidebar {
  background-color: #dc4b4b;
  background-image: linear-gradient(180deg, #df4e4e 10%, #be2222 100%);
  background-size: cover;
  min-height: 100vh;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.sidebar hr {
  margin: 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1rem;
  font-weight: 500;
}

.sidebar .nav-link:hover {
  color: #fff;
}

.sidebar .nav-link.active {
  color: #fff;
  font-weight: 700;
}

.sidebar .nav-link i {
  margin-right: 0.5rem;
}

.sidebar .nav-link[data-bs-toggle="collapse"] {
  position: relative;
}

.sidebar .nav-link[data-bs-toggle="collapse"] i.bi-chevron-down,
.sidebar .nav-link[data-bs-toggle="collapse"] i.bi-chevron-up {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Top Navbar Styles */
.top-navbar {
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
  background-color: #fff;
  z-index: 999;
}

.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

/* Card Styles */
.card {
  margin-bottom: 1.5rem;
  border: none;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
  background-color: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
}

.dashboard-card {
  border-left: 0.25rem solid transparent;
}

.border-left-primary {
  border-left-color: #4e73df !important;
}

.border-left-success {
  border-left-color: #1cc88a !important;
}

.border-left-warning {
  border-left-color: #f6c23e !important;
}

.border-left-danger {
  border-left-color: #e74a3b !important;
}

/* Chart Styles */
.chart-container {
  position: relative;
  height: 20rem;
}

/* Table Styles */
.table th {
  font-weight: 700;
  color: #5a5c69;
}

/* Login Page Styles */
.login-page {
  background-color: #df4e4e;
  background-image: linear-gradient(180deg, #df4e4e 10%, #be2222 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-form {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  padding: 2rem;
  width: 100%;
  max-width: 30rem;
}

/* Responsive Styles */
@media (max-width: 767.98px) {
  .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1030;
      overflow-y: auto;
      transform: translateX(-100%);
      transition: transform 0.3s ease-in-out;
  }
  
  .sidebar.show {
      transform: translateX(0);
  }
  
  .content-wrapper {
      padding: 1rem;
  }
}

/* Payroll Process Steps */
.process-steps {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  position: relative;
}

.process-steps:before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e9ecef;
  z-index: 1;
}

.process-steps li {
  position: relative;
  z-index: 2;
  background: #fff;
  text-align: center;
  width: 20%;
}

.process-steps .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  margin: 0 auto 10px;
  font-weight: bold;
}

.process-steps .step-text {
  display: block;
  font-size: 14px;
  color: #6c757d;
}

.process-steps li.active .step-number {
  background: #000000;
  color: #fff;
}

.process-steps li.active .step-text {
  color: #000000;
  font-weight: bold;
}

.process-steps li.completed .step-number {
  background: #1cc88a;
  color: #fff;
}

/* Payslip Styles */
.payslip {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 2rem;
  margin-bottom: 2rem;
}

.payslip-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.payslip-company {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.payslip-title {
  font-size: 1.25rem;
  color: #4e73df;
  margin-bottom: 0.5rem;
}

.payslip-period {
  font-size: 1rem;
  color: #6c757d;
}

.payslip-employee {
  margin-bottom: 2rem;
}

.payslip-employee h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #5a5c69;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.payslip-details {
  margin-bottom: 2rem;
}

.payslip-details h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #5a5c69;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.payslip-summary {
  background-color: #f8f9fc;
  padding: 1rem;
  border-radius: 0.25rem;
}

.payslip-summary h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #5a5c69;
}

.payslip-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  text-align: center;
  color: #6c757d;
  font-size: 0.875rem;
}