* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #111111;
}

.page {
    min-height: 100vh;
    padding: 40px 16px;
}

.container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.header {
    margin-bottom: 16px;
}

.header h1 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.content-card {
    background: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    padding: 20px;
}

#student-form {
    display: grid;
    grid-template-columns: 1.3fr 1fr auto;
    gap: 10px;
    margin-bottom: 20px;
}

#student-form input,
#student-form button {
    height: 42px;
    border-radius: 8px;
    border: 1px solid #c7c7c7;
    font-size: 0.95rem;
    padding: 0 12px;
}

#student-form input {
    background: #ffffff;
    color: #111111;
}

#student-form input:focus {
    outline: none;
    border-color: #777777;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

#student-form button {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

#student-table button.delete-button {
    background: #ff0000;
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #ff0000;
    border-radius: 8px;
    height: 32px;
    padding: 0 12px;
    transition: background-color 0.15s ease;
}

#student-form button.delete-button:hover {
    background: #cc0000;
}

#student-form button:hover {
    background: #2a2a2a;
}

#student-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

#student-table th,
#student-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #e2e2e2;
}

#student-table th {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4f4f4f;
    background: #fafafa;
}

#student-table tr:hover {
    cursor: pointer;
    background: #f0f0f0 !important;
    transition: background-color 0.15s ease !important;
}

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

@media (max-width: 700px) {
    .page {
        padding: 24px 12px;
    }

    .content-card {
        padding: 14px;
    }

    #student-form {
        grid-template-columns: 1fr;
    }

    #student-form button {
        width: 100%;
    }

    #student-table th,
    #student-table td {
        padding: 10px 8px;
        font-size: 0.92rem;
    }
}