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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 10px;
    color: #2c3e50;
    line-height: 1.6;
}

body > div:first-child {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 10px;
    border: 1px solid #e8eef5;
    animation: fadeInUp 0.6s ease-out;
}

h5 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #1a365d;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 15px;
}

h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #3182ce;
    border-radius: 2px;
}

/* .search-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
} */

/* Input styling - Clean and professional */
#stCode {
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 500;
    background: #ffffff;
    color: #2d3748;
    min-width: 200px;
}

#stCode:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

#stCode::placeholder {
    color: #a0aec0;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

#btFnd {
    background: #3182ce;
    color: white;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.25);
}

#btFnd:hover {
    background: #2c5aa0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.35);
}

#btFnd:active {
    transform: translateY(0);
}

#btSave {
    background: #008B8B;
    color: white;
    box-shadow: 0 2px 8px rgba(56, 161, 105, 0.25);
    margin-bottom: 20px;
}

#btSave:hover {
    background: #2f855a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.35);
}

#btNtPv {
    background: #20B2AA;
    color: white;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.25);
}

/* Student name styling */
#STNm {
    font-size: 1.3rem;
    font-weight: 600;
    color: green;
    padding: 5px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

table th {
    background: #4a5568;
    color: white;
    padding: 16px 12px;
    font-weight: 600;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 500;
    color: #4a5568;
}

table tr:hover {
    background: #f7fafc;
}

table tr:last-child td {
    border-bottom: none;
}

#sLsns {
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    outline: none;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #2d3748;
    width: 100%;
    max-width: 600px;
    margin-right: 30px;
}

#sLsns:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

#TcDv {
    margin-top: 20px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

#Msg {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
