*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button,
input,
textarea,
select {
    font: inherit;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: "Roboto Light", sans-serif;
}

h1 {
    margin-top: 20px;
}

.login-wrapper {
    display: flex;
    margin-top: 10%;
}

.login-form {
    max-width: 300px;
    margin: 50px auto 0;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    border: none;
    background: none;
    text-decoration: none;
    color: black;

    cursor: pointer;
}

.btn img {
    width: 30px;
    height: 30px;
}

.btn--outline {
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    padding: 0 16px 0 16px;
    height: 36px;
    border-radius: 4px;
    background-color: white;

    transition: background-color .2s ease-in-out, box-shadow .2s ease-in-out;
}

.btn--outline:hover {
    background-color: #e7e7e7;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
}

.btn--primary {
    height: 36px;
    border-radius: 4px;
    padding: 0 16px 0 16px;
    background-color: #314c9b;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    color: white;
}

.btn--primary:hover {
    background-color: #2a4080;
}

.btn--clear {
    height: 36px;
    border-radius: 4px;
    padding: 0 16px 0 16px;

    transition: background-color .2s ease-in-out;
}

.btn--clear:hover {
    background-color: hsla(0,0%,100%,.2);
}

.btn--add {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    padding: 10px;
    border-radius: 4px;
    background-color: #4CAF50;
    color: white;

    transition: background-color .2s ease-in-out, box-shadow .2s ease-in-out, width .2s ease-in-out;
}

.btn--add img {
    filter: invert(1);
}

.btn--add:hover {
    background-color: #45a049;
    width: 200px;
}

.btn--add span {
    width: 0;
    opacity: 0;
    white-space: nowrap;
    margin-left: 0;

    transition: width .2s ease-in-out, opacity .2s ease-in-out, margin-left .2s ease-in-out;
}

.btn--add:hover span {
    width: auto;
    opacity: 1;
    margin-left: 10px;
}

.btn--vlan {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translate(100%, -50%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 23px;
}

.btn--icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: background-color .2s ease-in-out;
}

.btn--icon img {
    width: 20px;
    height: 20px;
}

.btn--icon:hover {
    background-color: #b0b0b0;
}

.expand--more img {
    transform: rotate(180deg);
}

.btn:disabled {
    background-color: #e0e0e0 !important;
    box-shadow: none !important;
    cursor: none !important;
    pointer-events: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.wrapper {
    padding: 20px 0;
}

.wrapper h3 {
    margin-bottom: 20px;
}

.table--wrapper {
    overflow: auto;
    box-shadow: 0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;
}

.table {
    width: 100%;
    table-layout: auto;
    white-space: normal;
    border: 0;
    border-spacing: 0;
    background: white;
}

.table thead tr,
.table tbody tr {
    height: 56px;
}

.table tbody tr {
    cursor: pointer;
}

table tbody tr:hover {
    background: #f7f7f7;
}

.table th,
.table td {
    text-overflow: ellipsis;
    overflow: hidden;
    outline: none;
    text-align: left;
    color: #000000de;
    padding: 0 16px 0 16px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #0000001f;
    white-space: nowrap;
}

.table th:first-child,
.table td:first-child {
    position: sticky;
    left: 0;
    width: 80px;
    border-right: 1px solid #e0e0e0;
    background-color: white;
    z-index: 1;
}

.navbar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;
    padding: 10px 15px;
    background-color: #314c9b;
    z-index: 10;
}

.navbar__logo img {
    width: 180px;
}

.navbar__actions button {

}

/* MODAL CSS */

.modal.open .modal-overlay,
.modal.open .modal-window,
.modal.hide .modal-overlay,
.modal.hide .modal-window {
    opacity: 1;
    z-index: 1000;
}

.modal.open .modal-window {
    transform: translateY(100px);
}

.modal.open .modal-overlay {
    background-color: rgba(0, 0, 0, .5);
}

.modal.hide .modal-window {
    transform: translateY(-300px);
}

.modal.hide .modal-overlay {
    background-color: rgba(0, 0, 0, 0);
}

.modal-overlay,
.modal-window {
    opacity: 1;
    z-index: 1000;
}

.modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color .2s ease-in;
}

.modal-window {
    max-width: 300px;
    border-radius: 5px;
    background-color: #fff;
    transform: translateY(-200px);
    transition: transform .2s ease-in;
    margin: 0 auto;
}

.modal-header {
    padding: 20px 20px 10px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.modal-close {
    cursor: pointer;
    width: 24px;
    height: 24px;
}

.modal-body {
    padding: 10px 20px;
}

.modal-body p {
    margin: 0 0 5px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px;
    border-top: 1px solid #eee;
}
/* END MODAL CSS */

/* FORM CSS */

.form-group {
    position: relative;
    margin-bottom: 20px;
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group label {
    position: absolute;
    top: -9px;
    background-color: #fff;
    padding: 0 5px;
    font-weight: 300;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group select {
    border: none;
    outline: none;
    width: 100%;
    height: 30px;
    background: none;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="password"]::placeholder {
    color: #ccc;
}

.form-group .list {
    position: absolute;
    left: 0;
    top: 100%;
    max-height: 300px;
    overflow: auto;
    width: 100%;
    z-index: 3;
    border-radius: 6px;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.2);
    -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
    box-shadow: 0 5px 10px rgba(0,0,0,.2);
}

.form-group .list__item {
    padding: 5px;
    border-bottom: 1px solid #d3d3d3;
    cursor: pointer;
}

.form-group .item--disabled {
    background: lightgrey;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.7;
    color: #8f8f8f;
}

.form-group.error {
    border-color: #ff0000;
}

.form-group.error label {
    color: #ff0000;
}

.navigate {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(30,58,138,.5);
    padding: 4px;
    border-radius: 4px;
    width: 212px;
}

.navigate .btn {
    min-width: 100px;
}

.navigate .btn--outline:hover {
    pointer-events: none;
}

.navigate .btn--clear {
    color: white;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}
