* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    max-width: 100%;
    position: relative;
}

.container {
    display: flex;
    height: 100vh;
    transition: all 0.6s ease;
}

.toggle {
    position: absolute;
    left: -9999px;
}

header {
      width: 250px;
      background-color: #fafafa;
      border-right: 1px solid #e5e5e5;
      padding: 20px;
      box-sizing: border-box;
      transition: width 0.3s ease;
      overflow: hidden;
      position: relative;
    }

.toggle + label {
    font-size: 1.5em;
    position: absolute;
    left: 190px;
    transition: left 0.3s ease;
    background-color: #fafafa;
    padding: 0.5rem 1rem;
    cursor: pointer;
    user-select: none;
    z-index: 1000;
}

.toggle:checked ~ .container header {
    width: 0;
    padding: 0;
    border: none;
}

.toggle:checked + label {
    transform: translateX(-250px);
    left: 250px;
    background: none;
}

.user-info {
    text-align: center;
    margin-bottom: 30px;
}

.user-name {
    font-size: 1.3em;
    margin: 5px 0;
}

.user-email {
    color: #808080;
    font-size: 0.8em;
    margin: 0;
}

nav ul {
    list-style-type: none;
    padding-left: 0;
    margin:auto;
}

.line {
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #E5E5E5;
    margin: 30px 0;
}

.b-center, .b-left {
    border: solid 1px #E5E5E5;
    background-color: #FAFAFA;
    height: 35px;
    border-radius: 10px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.b-center {
    padding-left: 22%;
}

.b-left {
    padding-left: 5%;
}

.b-left a, .b-center a {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.b-left a {
    padding: 8px 16px;
}


main {
    flex: 1 0 0;
    padding: 30px;
    /* border: red 1px solid; */
    min-width: 0;
    overflow-x: auto;
    transition: all 0.3s ease;
}

.main-header {
    /* height: 5vh; */
    display: flex;
    justify-content: space-between;
    /* border: solid 1px black; */
}

.main-title, .add-user-button {
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-user-button {
    background-color: #e5e5e5;
    border-radius: 10px;
    padding: 0 10px;
    text-decoration: none;
    color: black;
    font-size: 1em;
}

@media screen and (max-width: 900px) {
    .add-user-button p {
        display: none;
    }
}

@media screen and (max-width: 750px) {
    .main-header {
        flex-direction: column;
        font-size: 0.8em;
    }
    .main-title img {
        width: 36px;
        height: 36px;
    }
    .crud img {
        width: 24px;
        height: 24px;
    }

}
