/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f5f7fa, #e4e9f7);
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* Links */
a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0056b3;
  text-decoration: underline;
}

a:visited {
  color: #0056b3;
}

a:active {
  color: #003d82;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 0;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  width: 100%;
  max-width: 1200px;
}

h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #6c757d;
  margin-bottom: 1rem;
}

.subtext {
  font-size: 0.875rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

/* Container */
section, .container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Search Bar */
input[type="text"] {
  padding: 0.75rem 1rem;
  width: 100%;
  max-width: 400px;
  border: 1px solid #ced4da;
  border-radius: 25px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Table (index.php) */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

th {
  background: #007bff;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

tr:nth-child(even) {
  background-color: #f8f9fa;
}

tr:hover {
  background-color: #e9ecef;
  transition: background-color 0.3s ease;
}

tr.selected {
  background-color: #d1e7dd;
}


/* Deal Box (front.php) */
.deal-box {
  padding: 1rem;
  min-height: 80px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deal-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.deal-box .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

.deal-box .text-muted {
  font-size: 0.75rem;
}

/* Pagination */
.pagination {
  margin-top: 2rem;
}

.page-link {
  border-radius: 25px;
  margin: 0 0.25rem;
  transition: background-color 0.3s ease;
}

.page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
}

.page-link:hover {
  background-color: #e9ecef;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  border-top: 1px solid #e9ecef;
  width: 100%;
  max-width: 1200px;
}

footer .subtext {
  font-size: 0.75rem;
  color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1rem;
  }
  input[type="text"] {
    max-width: 100%;
  }
  table, th, td {
    font-size: 0.875rem;
    padding: 0.5rem;
  }
  .deal-box {
    min-height: 60px;
  }
}