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

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    background: #F4F4F4;
    color: #222;
    text-align: center;
    margin: 0;
    padding: 20px;
}

/* Header Section */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 15px;
    border-bottom: 2px solid #eee;
}

.logo {
    width: 60px;
    height: auto;
    margin-right: 15px;
}

.contact-info {
    text-align: left;
}

.contact-info p {
    margin: 5px 0;
    font-size: 16px;
    font-weight: 500;
}

/* Main Container */
.container {
    max-width: 500px;
    margin: auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Heading */
h1 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #111;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.search-box input {
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 250px;
    outline: none;
    transition: all 0.3s ease-in-out;
}

.search-box input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

/* Modern Button */
.search-box button {
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 500;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

.search-box button:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Student Details */
#studentDetails, .table-container {
    margin-top: 20px;
    text-align: left;
}

/* Table Styles */
#studentDetails table, .table-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

#studentDetails table th, #studentDetails table td,
.table-container table th, .table-container table td {
    border: 1px solid #eee;
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

/* Table Headers */
.table-container table th {
    background: #007BFF;
    color: white;
}

/* Table Hover Effect */
.table-container table tr:hover {
    background: rgba(0, 123, 255, 0.05);
}

/* Table Container */
.table-container {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Ã°Å¸â€Â¹ RESPONSIVE DESIGN FOR ALL ELEMENTS */
@media (max-width: 768px) {
    .logo {
        width: 50px; /* Smaller logo for tablets */
    }

    .container {
        max-width: 90%;
        padding: 20px;
    }

    h1 {
        font-size: 22px;
    }

    .search-box {
        flex-direction: column;
        align-items: center;
    }

    .search-box input {
        width: 90%;
    }

    .search-box button {
        width: 100%;
    }

    .table-container table th, .table-container table td {
        font-size: 13px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: row;
        text-align: center;
        padding: 10px;
    }

    .logo {
        width: 50px; /* Even smaller logo for mobile */
        margin-bottom: 5px;
    }

    .contact-info p {
        font-size: 14px; /* Slightly smaller text */
    }

    .container {
        max-width: 95%;
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    .search-box input {
        width: 90%;
        padding: 10px;
    }

    .search-box button {
        padding: 10px;
    }

    .table-container table th, .table-container table td {
        font-size: 12px;
        padding: 8px;
    }
}





/* Simple Custom Alert Box */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: black;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 1000;
    width: 300px;
    display: none;
    border: 1px solid #ddd;
}

.custom-alert button {
    margin-top: 10px;
    padding: 8px 15px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

.custom-alert button:hover {
    background: #0056b3;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: none;
}

.search-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
  }
  
/* Unified style for dropdowns and search input */
.search-box select,
#studentSearchInput {
  padding: 12px 15px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 12px; /* Updated: Match all inputs */
  width: 100%;
  outline: none;
  transition: all 0.3s ease-in-out;
  background: white;
  color: #222;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  appearance: none;
  margin: 0 auto 0 auto; /* Consistent spacing */
  display: block;
  box-sizing: border-box; /* Ã¢Å“â€¦ Ensures exact width across inputs */
}

/* Ã°Å¸â€Â¹ Focus effect for all inputs */
.search-box select:focus,
#studentSearchInput:focus {
  border-color: #007BFF;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}



/* Ã°Å¸â€Â¹ Spacing between dropdowns/inputs */
.search-box > div {
  width: 100%;
  margin-bottom: 10px;
  text-align: center;
}

/* Ã°Å¸â€Â¹ Suggestion box styling */
.suggestion-box {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  text-align: left;
  margin-top: 5px;
  display: none;
  width: 100%;
  margin: auto;
}

.suggestion-box div {
  padding: 10px;
  cursor: pointer;
}

.suggestion-box div:hover {
  background-color: #f1f1f1;
}

/* Ã°Å¸â€Â¹ Info message (for no data scenarios) */
.info-message {
  margin-top: 10px;
  font-size: 14px;
  color: #000000;
  font-weight: 500;
}


.clear-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
    cursor: pointer;
    user-select: none;
  }
  
  .clear-icon:hover {
    color: #000;
  }
  
  /* 🌈 Modern Dropdown Design */
.search-box select {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 15px;
    color: #333;
    appearance: none;
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23007BFF" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .search-box select:hover {
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  }
  
  .search-box select:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
  }
  
  /* Optional: Smooth dropdown animation (not logic, just UX) */
  .search-box select option {
    padding: 10px;
    font-size: 15px;
    background: #fff;
    color: #333;
  }
  
  /* On selection appearance (in dropdown) */
  .search-box select option:checked {
    background-color: #007BFF;
    color: white;
  }
  