/* Custom CSS */

/* Font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary: #8b4513;
  --primary-light: #a0522d;
  --secondary: #f5f5dc;
  --text-dark: #333333;
  --text-light: #ffffff;
}

body {
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

/* Mobile Sidebar */
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  main {
    margin-left: 0 !important;
  }
}

/* Cards */
.card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
}

/* Dashboard Stats */
.stat-card {
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

/* Table Styling */
.table-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table {
  margin-bottom: 0;
}

.table thead th {
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
}

/* Modal Styling */
.modal-content {
  border-radius: 10px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--primary);
  color: var(--text-light);
}

.modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Login Page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--secondary);
}

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

.login-logo {
  text-align: center;
  margin-bottom: 20px;
}

/* Form Controls */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.25);
}

/* Badge Styling */
.badge {
  padding: 6px 10px;
  font-weight: normal;
  border-radius: 5px;
}

/* Receipt Styling */
.receipt-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media print {
  body * {
    visibility: hidden;
  }
  .receipt-container,
  .receipt-container * {
    visibility: visible;
  }
  .receipt-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
  }
  .no-print {
    display: none;
  }
}
