body {
    font: normal 18px/1.5 "Fira Sans", "Helvetica Neue", sans-serif;
    background: rgb(204, 214, 221);
}

header {
    margin-bottom: 15px;
}

h1 {
    margin-top: 10px;
    margin-bottom: 0;
}

h2 {
    margin: 5px 0;
}

h3 {
    margin-bottom: 0;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 18px;
}

nav {
    margin-left: 5px;
}

.spin {
    animation: spin 1.5s linear infinite;
}

.ellipsis {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#login {
    display: flex;
    margin: auto;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#login > .card {
    height: 500px;
    text-align: center;
}

#login > .card > .logo {
    background: url("/static/assets/aggrecd-logo.png") no-repeat center center;
    background-size: 400px 400px;
    width: 400px;
    height: 400px;
    margin-bottom: 30px;
}

button, .button {
    background-color: rgb(250, 251, 252);
    border: 1px solid rgba(27, 31, 35, 0.15);
    border-radius: 6px;
    box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
    font-weight: 500;
    line-height: 20px;
    padding: 6px 16px;
    transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
    text-decoration: none;
    color: black;
}

button:hover, .button:hover {
    background-color: #F3F4F6;
    text-decoration: none;
    transition-duration: 0.1s;
    color: black;
}

.button:visited, .button:active {
    color: black;
    text-decoration: none;
}

#wrapper {
    display: flex;
    margin: auto
}

sidebar {
    width: 250px;
}

sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

sidebar ul > li {
    display: flex;
    align-items: center;
}

sidebar ul > li > label {
    flex: 1;
    display: flex;
    align-items: center;
    width: 229px;
    max-width: 229px;
}

sidebar ul > li > label > span:first-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 0 1 auto;
    min-width: 0;
}

sidebar ul > li > label > span.count {
    flex: 1;
    text-align: right;
}

main {
    flex: 1;
}

header {
    height: 80px;
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
    padding-right: 10px;
}

header > input {
    box-sizing: border-box;
    padding: 10px 15px;
    border-radius: 150px;
    border: 1px solid #ccc;
    margin-top: 20px;
    margin-left: 10px;
}

header > div.menu {
    margin-left: auto;
}

.menu > ul {
    list-style-type: none;
}

.menu > ul > li {
    display: inline;
}

#card-container {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    padding: 0 10px;
}

.card {
    flex: 1;
    font-size: 14px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-width: 300px;
    max-width: 400px;
    margin-bottom: 20px;
}

.card.healthy {
    border-left: 5px solid rgb(24, 190, 148);
}

.card.degraded {
    border-left: 5px solid rgb(233, 109, 118);
}

.card.progressing {
    border-left: 5px solid rgb(13, 173, 234);
}

.card.suspended {
    border-left: 5px solid rgb(118, 111, 148);
}

.card.missing {
    border-left: 5px solid rgb(244, 192, 48);
}

.card.unknown {
    border-left: 5px solid rgb(129, 141, 148);
}

.card.approved {
    border-left: 5px solid rgb(24, 190, 148);
}

.card.not-approved {
    border-left: 5px solid rgb(233, 109, 118);
}

.card > .name {
    font-weight: bold;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon {
    width: 18px;
    text-align: center;
}

.icon.healthy, .icon.synced {
    color: rgb(24, 190, 148);
}

.icon.degraded {
    color: rgb(233, 109, 118);
}

.icon.progressing {
    color: rgb(13, 173, 234);
}

.icon.suspended {
    color: rgb(118, 111, 148);
}

.icon.missing, .icon.outofsync {
    color: rgb(244, 192, 48);
}

.icon.unknown {
    color: rgb(129, 141, 148);
}

.icon.approved {
    color: rgb(24, 190, 148);
}

.icon.not-approved {
    color: rgb(233, 109, 118);
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.modal-wrapper {
    width: 550px;
    height: 200px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.modal-content {
    width: 100%;
}

.modal-content .cluster,
.modal-content .approval {
    font-weight: bold;
}

.btn.primary {
    background-color: rgb(13, 173, 234);
    color: white;
    border: none;
}

.btn.delete {
    background-color: rgb(233, 109, 118);
    color: white;
    border: none;
}

.hide {
    display: none;
}