* {
    font-family: Arial, sans-serif;
}

body {
    background: #f9f9f9;
}

input, select, textarea {
    padding: 5px 10px;
    border: 1px solid #cfcfcf;
}

input[type="submit"] {
    cursor: pointer;
}

table {
    border-collapse: collapse;
    width: 100%;
}

table th, table td {
    border: 1px solid #d8d8d8;
    padding: 8px;
    text-align: left;
}

/*=================*/
/*====LOGOWANIE====*/
/*===REJESTRACJA===*/
/*=================*/

#logowanie form,
#rejestracja form {
    margin: 0 auto;
    max-width: 400px;
    padding: 20px;
    gap: 5px 0;
    background: #fff;
    border: 1px solid #d8d8d8;
    display: flex;
    flex-direction: column;
}

/*============*/
/*===PROFIL===*/
/*============*/

#zmien_nazwe_form,
#zmien_haslo_form {
    max-width: 400px;
    gap: 5px 0;
    display: flex;
    flex-direction: column;
}

/*==========================*/
/*===PANEL ADMINISTRATORA===*/
/*==========================*/

#utworz_zaproszenia_form {
    max-width: 200px;
    gap: 5px 0;
    display: flex;
    flex-direction: column;
}

/*==================*/
/*===PANEL PLIKÓW===*/
/*==================*/

#przeslij_plik_form {
    max-width: 400px;
    gap: 5px 0;
    display: flex;
    flex-direction: column;
}

/*==============*/
/*===NAGŁÓWEK===*/
/*==============*/

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #ddd;
    position: relative;
}

header > section:last-child {
    position: relative;
}

header > section:last-child > button {
    cursor: pointer;
    border: 1px solid #cfcfcf;
    background: #fff;
    padding: 8px 12px;
}

header > section:last-child > ul {
    list-style: none;
    margin: 0;
    padding: 8px;
    min-width: 230px;
    position: absolute;
    right: 0;
    top: calc(100% + 2px);
    background: #fff;
    border: 1px solid #d8d8d8;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    display: none;
}

header > section:last-child > ul::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

header > section:last-child:hover > ul,
header > section:last-child:focus-within > ul {
    display: block;
}

header > section:last-child > ul li {
    margin: 0;
}

header > section:last-child > ul li + li {
    margin-top: 6px;
}

header > section:last-child > ul a,
header > section:last-child > ul input[type="submit"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    line-height: 1.25;
    padding: 8px 10px;
    text-decoration: none;
    color: #1f1f1f;
    border: 1px solid transparent;
    background: transparent;
    appearance: none;
    text-align: left;
    cursor: pointer;
}

header > section:last-child > ul a:hover,
header > section:last-child > ul input[type="submit"]:hover {
    background: #f3f6ff;
    border-color: #dbe3ff;
}

header > section:last-child > ul form {
    margin: 0;
}

/*==========*/
/*===MAIN===*/
/*==========*/

main {
    margin: 20px auto;
    padding: 0 20px;
    height: 100%;
}