* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;

    font-family: Arial, Helvetica, sans-serif;
}

[v-cloak] {
    display: none;
}

body {
    display: flex;
    flex-direction: column;

    min-height: 100vh;

    background-color: aliceblue;
    color: steelblue;

    padding: 10px;
}

.vue-app-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

main {
    flex: 1;
    justify-content: flex-start;
}

header,
main,
footer {
    display: flex;
    width: 100%;
}

header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.header-top {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.header-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 0;
}

.header-title {
    text-align: center;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    font-size: 22px;
}

.header-add-button {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;

    border: 2px solid steelblue;
    background-color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.header-add-button img {
    height: 16px;
}

.header-userpic {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    margin-inline-end: 15px;
    border-radius: 50%;
    background-image: url(/img/icons/circle-user-solid.svg);
    background-position: center;
    background-repeat: no-repeat;
}

.header-userpic.has-image {
    background: transparent;
    background-image: var(--profile-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.board {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    height: min-content;
    padding: 10px;
    border: 1px solid steelblue;
    display: flex;
    flex-direction: column;
}

.board-header,
.data-board-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.data-boards {
    display: flex;
    overflow: scroll;
    gap: 10px;
    flex: 1;
    margin: 10px 0;
}

.data-board {
    min-width: 80%;
    background-color: aliceblue;
    padding: 10px;
    border: 1px solid steelblue;
    display: flex;
    flex-direction: column;
}

.data-board-body .view-mode-content {
    display: flex;
    padding: 5px 0;
    flex: 1;
    gap: 5px;
}

.inner-board {
    background-color: aliceblue;
    border: 1px solid steelblue;
    border-radius: 5px;
    padding: 5px;
    height: 100%;
    width: 50%;
}

.inner-board-header {
    font-weight: bold;
    text-align: center;
}

.dashboard {
    flex: 1;
}

.tools-container {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    overflow: scroll;
}

.tool {
    background-color: aliceblue;
    min-height: 70px;
    min-width: calc(25% - 10px);
    border: 1px solid steelblue;
    border-radius: 5px;
    padding: 5px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
}

.tool-header {
    display: flex;
    justify-content: flex-end;
}

.tool-body {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3px;
    flex: 1;
}

.add-element,
.remove-element {
    display: none;
}

.tools.edit-mode .tools-container,
.dashboard.edit-mode .data-boards {
    display: grid;
    grid-template-columns: repeat(8, minmax(calc(25% - 10px), 1fr));
}

.tools.edit-mode .tool,
.dashboard.edit-mode .data-boards .data-board {
    height: auto;
    min-height: auto;
}

.tools.edit-mode .add-element,
.tools.edit-mode .remove-element,

.tools:not(.edit-mode) .edit-mode-toggle-show-more-tools,
.tools.edit-mode .edit-mode-toggle-back-to-tools,

.dashboard:not(.edit-mode) .edit-mode-toggle-show-more-databoards,
.dashboard.edit-mode .edit-mode-toggle-back-to-dashboard,

.dashboard.edit-mode .add-element,
.dashboard.edit-mode .remove-element,
.dashboard.edit-mode .edit-mode-toggle-back-to-dashboard {
    display: block;
}

.tools.edit-mode .edit-mode-toggle-show-more-tools,
.tools:not(.edit-mode) .edit-mode-toggle-back-to-tools,

.tools.edit-mode .move-element,

.dashboard.edit-mode .edit-mode-toggle-show-more-databoards,
.dashboard:not(.edit-mode) .edit-mode-toggle-back-to-dashboard,

.dashboard.edit-mode .move-element,
.dashboard.edit-mode h4,
.dashboard.edit-mode .view-mode-content,
.dashboard:not(.edit-mode) .edit-mode-content {
    display: none;
}

.tools:not(.edit-mode) .tool:not(.is-visible),
.dashboard:not(.edit-mode) .data-board:not(.is-visible) {
    display: none;
}

.dashboard:not(.edit-mode) .view-mode-content {
    display: flex;
}

.tools.edit-mode .tool.is-visible .add-element,
.dashboard.edit-mode .data-board.is-visible .add-element {
    display: none;
}

.tools.edit-mode .tool:not(.is-visible) .remove-element,
.dashboard.edit-mode .data-board:not(.is-visible) .remove-element {
    display: none;
}

.he,
.ar {
    direction: rtl;
}

.more-icon {
    display: flex;
    align-items: center;
}

.more-icon img {
    height: 16px;
    margin-inline-start: 10px;
}

.board-footer {
    display: flex;
    justify-content: flex-end;
    font-size: 20px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

.shortcuts {
    display: flex;
    width: 100%;
    gap: 10px;
}

.shortcut {
    width: 25%;
    height: 70px;
    border: 1px solid steelblue;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.shortcut img {
    width: 32px;
    height: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    background-color: steelblue;
    color: white;
    padding: 4px 8px;
    margin-inline-start: 6px;
    border-radius: 4px;
    cursor: pointer;
}


.button.button-inactive {
    cursor: not-allowed;
    background-color: lightgray;
}