body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f9fc;
}

#enrollment-history {
    margin: 30px auto; /* Center the table with automatic margins */
    max-width: 1200px; /* Set a maximum width for larger screens */
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff; /* Clean white background */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Softer shadow for depth */
}

table, th, td {
    border: none; /* No borders for cleaner look */
}

th, td {
    padding: 16px; /* Increased padding for better touch targets */
    text-align: center; /* Center text for a cleaner look */
}

thead {
    background-color: #4a90e2; /* Attractive header color */
    color: #ffffff; /* White text for contrast */
}

.styled-table thead tr {
    background-color: #4CAF50;
    color: #ffffff;
    text-align: left;
}

.styled-table th, .styled-table td {
    padding: 10px 15px;
    border: 1px solid #dddddd;
}
tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Light gray for even rows */
}

tbody tr:hover {
    background-color: #e3f2fd; /* Light blue on hover for visual feedback */
    cursor: pointer; /* Pointer cursor on hover */
}

tbody tr:active {
    background-color: #bbdefb; /* Slightly darker blue when clicked */
}

@media (max-width: 768px) {
    #profile-details {
        flex-direction: column;
        align-items: center;
        padding: 8px;
    }

    #profile-img {
        width: 120px; 
        height: 120px; 
        margin-bottom: 15px;
    }

    #profile-info h1 {
        font-size: 24px; 
    }

    #profile-info p {
        font-size: 14px; 
    }

    table, th, td {
        font-size: 14px; /* Slightly larger for better readability */
        padding: 10px; /* Consistent padding */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.card {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Slightly more pronounced shadow */
    border-radius: 8px;
}

.card-content {
    display: flex;
    align-items: center;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-right: 20px;
}

.student-info {
    display: flex;
    flex-direction: column;
}

h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

p {
    margin: 5px 0;
}

.enhis {
    text-align: center;
    margin-bottom: 20px;
}
