body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    text-align: center;
    margin: 20px auto;
}

h1 {
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 10px;
    text-align: left;
}

input {
    padding: 12px;
    margin-top: 5px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px; /* Prevents zoom on iOS */
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Mobile-specific input improvements */
@media (max-width: 768px) {
    input {
        padding: 15px;
        font-size: 16px; /* Prevents zoom on iOS */
        margin: 8px 0;
    }
}

button {
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    min-height: 48px; /* Touch-friendly size */
    width: 100%;
}

button:hover {
    background-color: #0056b3;
}

button:active {
    transform: translateY(1px);
}

/* Mobile-specific button improvements */
@media (max-width: 768px) {
    button {
        padding: 15px 20px;
        font-size: 18px;
        margin: 10px 0;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* Mobile-first responsive design */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 15px;
        margin: 10px auto;
    }

    h1 {
        font-size: 24px;
    }

    body {
        background-color: #f4f4f4;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .container {
        width: 85%;
        max-width: 500px;
    }
}

@media (min-width: 769px) {
    .container {
        width: 80%;
        max-width: 600px;
    }

    body {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    background-color: #f9f9f9;
    margin: 5px 0;
    padding: 10px;
    border-radius: 4px;
}

/* Improved link styling */
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets for mobile devices */
    button, a, input, select, textarea {
        min-height: 44px;
    }
}