@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 100vh;
  background: #e0eafc; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to right,
    #cfdef3,
    #e0eafc
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to right,
    #cfdef3,
    #e0eafc
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.container {
  max-width: 650px;
  width: calc(100vw - 2rem);
  padding: 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.drag-area {
  height: 170px;
  border: 3px dashed #e0eafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 10px auto;
}

h3 {
  margin-bottom: 20px;
  font-weight: 500;
}

.drag-area .icon {
  font-size: 50px;
  color: #1683ff;
}

.drag-area .header {
  font-size: 20px;
  font-weight: 500;
  color: #34495e;
}

.drag-area .support {
  font-size: 12px;
  color: gray;
  margin: 10px 0 15px 0;
}

.drag-area .button {
  font-size: 20px;
  font-weight: 500;
  color: #1683ff;
  cursor: pointer;
}

.drag-area.active {
  border: 2px solid #1683ff;
}

.drag-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
  color: #333;
  background-color: #f7f7f7;
}
h1 {
  color: #1a1a1a;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid #1683ff;
  padding-bottom: 10px;
}
.filters {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.filter-group {
  flex: 1;
  min-width: 200px;
}
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
}
input, select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border 0.3s;
}
input:focus, select:focus {
  border-color: #1683ff;
  outline: none;
}
button {
  background-color: #1683ff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: 600;
}
button:hover {
  background-color: #2980b9;
}
.button-group {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}
#reset-filters {
  background-color: #e74c3c;
}
#reset-filters:hover {
  background-color: #c0392b;
}
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
th {
  background-color: #34495e;
  color: white;
  position: sticky;
  top: 0;
  cursor: pointer;
  user-select: none;
}
th:hover {
  background-color: #2c3e50;
}
th::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
}
th.sort-asc::after {
  content: '↑';
}
th.sort-desc::after {
  content: '↓';
}
tr:nth-child(even) {
  background-color: #f9f9f9;
}
tr:hover {
  background-color: #f1f1f1;
}
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 5px;
}
.pagination button {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
  padding: 8px 12px;
  min-width: 40px;
}
.pagination button.active {
  background-color: #1683ff;
  color: white;
  border-color: #1683ff;
}
.no-results {
  text-align: center;
  padding: 40px;
  color: #7f8c8d;
  font-style: italic;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.loading {
  text-align: center;
  padding: 40px;
}
.track-number {
  width: 80px;
  text-align: center;
}
.track-title {
  width: 50%;
}
.artist {
  width: 30%;
}
