/* General styles for all devices */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container, .login-container {
    width: 90%;
    max-width: 400px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

h1, h2 {
    margin-bottom: 20px;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    text-align: left;
}

input[type="text"], input[type="password"] {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #45a049;
}

.error {
    color: #f44336;
    margin-top: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

form.inline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form.inline input[type="text"] {
    flex: 1;
}

/* Styles for smaller devices */
@media (max-width: 600px) {
    body {
        height: auto;
        padding: 20px;
        flex-direction: column;
        justify-content: flex-start;
    }

    .container, .login-container {
        width: 100%;
        padding: 20px;
        box-shadow: none;
        border-radius: 0;
    }

    h1, h2 {
        font-size: 24px;
    }

    input[type="text"], input[type="password"] {
        font-size: 16px;
    }

    input[type="submit"] {
        font-size: 16px;
    }

    table, th, td {
        font-size: 14px;
    }

    .actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    form.inline {
        flex-direction: column;
        gap: 10px;
    }
}
