@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

html, body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #e7e7e7;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
}

h1 {
  color: #f7c340;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5em;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  font-weight: 700;
}

div {
  margin-bottom: 15px;
}

label {
  color: #e7e7e7;
  margin-right: 10px;
  font-weight: 400;
}

input[type=text], select {
  padding: 10px;
  border: none;
  border-radius: 25px;
  margin-right: 15px;
  width: 220px;
  background-color: rgba(51, 51, 51, 0.8);
  color: #ddd;
  transition: all 0.3s ease;
  font-size: 14px;
}

input[type=text]:focus, select:focus {
  outline: none;
  box-shadow: 0 0 15px #f7c340;
  background-color: rgba(51, 51, 51, 1);
}
.table-container {
  overflow-y: auto;
  max-height: 70vh; /* Adjust this value as needed */
  margin-top: 30px;
  position: relative;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  background-color: transparent;
}

thead {
  position: sticky;
  top: 0;
  z-index: 1;
  transition: transform 0.3s ease;
}

th {
  background-color: rgba(68, 68, 68, 0.95);
  color: #f7c340;
  font-size: 1em;
  text-shadow: 2px 2px 4px #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 15px;
  border: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

td {
  background-color: rgba(28, 28, 28, 0.8);
  color: #e7e7e7;
  font-size: 0.9em;
  transition: all 0.3s ease;
  border-top: 1px solid #333;
  padding: 15px;
  border: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Add this for smooth shadow effect when scrolling */
.table-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.table-container.scrolled::after {
  opacity: 1;
}

tr:hover td {
  background-color: rgba(40, 40, 40, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Specific column widths */
.col-rank, .col-college-rank { width: 60px; }
.col-name { width: 200px; }
.col-roll { width: 100px; }
.col-institute { width: 250px; }
.col-gpa, .col-bangla, .col-english, .col-ict, .col-physics, .col-chemistry, .col-optional, .col-additional { width: 80px; }
.col-total { width: 100px; }

#subjectMenu {
  position: absolute;
  background-color: rgba(51, 51, 51, 0.95);
  min-width: 180px;
  border-radius: 10px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3);
  z-index: 1;
  overflow: hidden;
  transition: all 0.3s ease;
}


#customizeButton, #subjectButton {
  background: linear-gradient(45deg, #f7c340, #ffa500);
  color: #000;
  border: none;
  padding: 12px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}

#customizeButton:hover, #subjectButton:hover {
  background: linear-gradient(45deg, #ffa500, #f7c340);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

#rowsMenu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: rgba(68, 68, 68, 0.95);
  min-width: 180px;
  border-radius: 10px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 15px;
  border-top: 1px solid #555;
}

#rowsMenu div {
  margin: 10px 0;
}

#rowsMenu label {
  margin-left: 10px;
  cursor: pointer;
  transition: color 0.2s ease;
  display: block;
  padding: 5px 0;
}

#rowsMenu label:hover {
  color: #f7c340;
}

#rowsMenu input[type="checkbox"] {
  display: none;
}

#rowsMenu label:before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  background-color: #333;
  border: 2px solid #f7c340;
  border-radius: 3px;
  vertical-align: middle;
  transition: all 0.2s ease;
}

#rowsMenu input[type="checkbox"]:checked + label:before {
  background-color: #f7c340;
  border-color: #f7c340;
}

#rowsMenu input[type="checkbox"]:checked + label:after {

  position: absolute;
  left: 24px;
  color: #000;
  font-size: 14px;
  font-weight: bold;
}
