/* Загальні стилі */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    /* background: linear-gradient(to bottom right, #f0f8ff, #e6e6fa) no-repeat fixed; */
    background: #bf85e6;
    background: linear-gradient(90deg,rgba(191, 133, 230, 1) 0%, rgba(232, 142, 142, 1) 50%, rgba(237, 172, 81, 1) 100%) no-repeat fixed;
}

header {
    background-color: #000;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
}

.header-right a {
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
}

main {
    padding: 20px;
}

.login-container, .main-container, form {
    max-width: 500px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 8px;
}

h1, h2 {
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

label {
    margin-top: 15px;
    font-size: 1em;
}

input {
    padding: 10px;
    margin-top: 5px;
    font-size: 1em;
}

button {
    padding: 10px 15px;
    background-color: #28a745; /* Зелений колір кнопки */
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    width: 50%;
}

.blogin, .senddata {
    margin-top: 25px;
}

button:hover {
    background-color: #218838; /* Темніший зелений при наведенні */
}

button:active {
    background-color: #1e7e34; /* Ще темніший зелений при натисканні */
}

button:focus {
    outline: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

table, th, td {
    border: 1px solid #ccc;
    background-color: #ffffffa3;
}

th, td {
    padding: 12px;
    text-align: center;
    font-size: 0.9em;
}

th {
    background-color: #545050;
    color: #fff;
}

.buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.buttons button {
    width: 265px;
    background-color: #060659;
}

.buttons button:hover {background-color: #0d0d3b;}

.header-right span {
    display: block;
}

/* Адаптивні стилі для мобільних пристроїв */
@media (max-width: 600px) {
    header {
        align-items: flex-start;
    }

    .header-left, .header-right {
        margin-bottom: 10px;
    }
    
    .header-left {
        margin-right: auto;
    }
    
    .header-right {
        margin-left: auto;
    }

    main {
        padding: 10px;
    }

    .login-container, .main-container, form {
        margin: 10px;
        padding: 20px;
    }

    label, input, button {
        font-size: 1em;
        width: 100%;
    }

    th, td {
        padding: 8px;
        font-size: 0.8em;
    }

    .buttons {
        flex-direction: column;
    }

    .buttons button {
        margin-top: 10px;
    }
    
    .header-right span {
        display: none;
    }
}
