/* Reset + base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #1d2671, #c33764);
    min-height: 100vh;
    padding: 40px;
    color: #333;
}

/* Container look */
h1 {
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* Form styling */
form {
    background: #ffffff;
    max-width: 500px;
    margin: 0 auto 30px auto;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

form label {
    width: 100%;
    font-weight: 600;
    color: #444;
}

form input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

form input[type="text"]:focus {
    outline: none;
    border-color: #1d2671;
    box-shadow: 0 0 0 2px rgba(29, 38, 113, 0.2);
}

form input[type="submit"] {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1d2671, #c33764);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* Table styling */
table {
    width: 90%;
    max-width: 900px;
    margin: 0 auto 30px auto;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

th {
    background: linear-gradient(135deg, #1d2671, #c33764);
    color: #fff;
    padding: 14px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

tr:nth-child(even) td {
    background: #f7f7f7;
}

tr:hover td {
    background: #eef1ff;
    transition: background 0.2s ease;
}

/* Mobile friendly */
@media (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    th {
        display: none;
    }

    tr {
        margin-bottom: 15px;
    }

    td {
        padding: 10px;
        position: relative;
    }
}
