/* 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: 80px;
    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: column;
        text-align: center;
        padding: 10px;
    }

    .logo {
        width: 40px; /* 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: 100%;
        padding: 10px;
    }

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

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

.red-text {
    color: red;
}
