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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #2c3e50;
  transition: background-color 0.3s, color 0.3s;
  padding: 2rem;
}

.page-wrapper {
  max-width: 1200px;
  margin: auto;
}

/* Header Section */
.main-header {
  text-align: center;
  margin-bottom: 2rem;
}

.main-header h1 {
  font-size: 2rem;
  color: #27ae60;
  margin-bottom: 0.5rem;
}

.sub-text {
  font-size: 1rem;
  color: #7f8c8d;
}

/* Controls (Dropdown, Search, Toggle) */
.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.controls select,
.controls input,
.controls button {
  padding: 0.8rem 1.2rem;
  border-radius: 16px;
  font-size: 1rem;
  border: none;
  transition: all 0.3s ease;
}

/* Search Input */
#searchInput {
  background-color: #ecf0f1;
  color: #2c3e50;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#searchInput::placeholder {
  color: #95a5a6;
}

#searchInput:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.3);
}

/* Crate Dropdown */
.controls select {
  appearance: none;
  background-color: #ecf0f1;
  color: #2c3e50;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23333' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.controls select:hover {
  background-color: #d0ece7;
  cursor: pointer;
}

.controls select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.3);
}

/* Toggle Button */
#toggleTheme {
  background-color: #27ae60;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#toggleTheme:hover {
  background-color: #219150;
  cursor: pointer;
}

/* Table Styles */
.table-container {
  overflow-x: auto;
  margin-top: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

thead {
  background-color: #2ecc71;
  color: white;
}

th, td {
  padding: 1rem;
  text-align: center;
}

tbody tr {
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background-color: #eafaf1;
}

img {
  border-radius: 10px;
}

/* Dark Mode */
body.dark-mode {
  background-color: #1c1c1c;
  color: #ecf0f1;
}

body.dark-mode .main-header h1 {
  color: #2ecc71;
}

body.dark-mode .sub-text {
  color: #bdc3c7;
}

body.dark-mode table {
  background-color: #2c3e50;
}

body.dark-mode thead {
  background-color: #27ae60;
}

body.dark-mode tbody tr:hover {
  background-color: #34495e;
}

body.dark-mode th,
body.dark-mode td {
  color: #ecf0f1;
}

body.dark-mode #toggleTheme {
  background-color: #2ecc71;
}

body.dark-mode #toggleTheme:hover {
  background-color: #27ae60;
}

body.dark-mode #searchInput {
  background-color: #34495e;
  color: #ecf0f1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode #searchInput::placeholder {
  color: #95a5a6;
}

body.dark-mode .controls select {
  background-color: #34495e;
  color: #ecf0f1;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23ecf0f1' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .controls select:hover {
  background-color: #3b5998;
}

.site-logo {
  top: 10px;
  right: 20px;
  width: 300px;
  
  
 
  transition: transform 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.05);
}



@media (max-width: 768px) {
  th, td {
    padding: 12px 10px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  th, td {
    padding: 10px 8px;
    font-size: 13px;
  }

  table {
    min-width: 100%;
  }
}

.site-footer {
  background-color: #d0f0c0; /* soft green */
  padding: 30px 20px;
  margin-top: 40px;
  text-align: center;
  border-radius: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer .footer-content {
  color: #2c3e50;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

.site-footer h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  color: #1a3e2b;
}

.site-footer p {
  margin: 0 0 5px;
  font-size: 1rem;
  color: #2c3e50;
}

.site-footer small {
  font-size: 0.85rem;
  color: #555;
}

body.dark-mode .site-footer {
  background-color: #1f2d26;
  color: #eee;
}

body.dark-mode .site-footer h2,
body.dark-mode .site-footer p,
body.dark-mode .site-footer small {
  color: #e0f8e9;
}


/* Responsive Design */
@media (max-width: 600px) {
  .controls {
    flex-direction: column;
    align-items: stretch;
  }

 
  .main-header h1 {
    font-size: 1.5rem;
  }
}

