@keyframes pulse {
    0% {
        box-shadow: 0 0 4px var(--tile-shadow);
    }

    50% {
        box-shadow: 0 0 9px var(--tile-shadow);
    }

    100% {
        box-shadow: 0 0 4px var(--tile-shadow);
    }
}

.dashboard-card.selected {
    animation: pulse 1s infinite;
    border: 2px solid var(--tile-shadow);
    border-radius: 8px !important;
}

.dashboard-card {
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.dashboard-card.selected::after {
    content: "\2714";
    position: absolute;
    top: 2px;
    right: 6px;
    font-size: 20px;
    color: #212529 !important;
    font-family: Impact, sans-serif;
    font-weight: 900;
    border-radius: 500;
}

#summary_content .card {
    background-color: transparent;
    color: var(--bs-input-font-color);
    text-align: left;
    border-radius: 0;
    border: none;
}

#building-dashboard-tiles .list-group-item {
    border: none;
    border-radius: 0;
}

#building-dashboard-tiles .bootstrap-select>.dropdown-toggle {
    color: var(--bs-table-th-color) !important;
    margin-top: -2px !important;
}

.dashboard-card {
    flex: 1 1 calc(25% - 20px);
    margin: 5px;
    justify-content: center;
    align-items: center;
    font-size: small;
    color: #4d4d4d;
    border-radius: 4px !important;
    box-shadow: 0 0.5px 2px var(--bs-table-shadow1-color),
        0 0.5px 2px var(--bs-table-shadow2-color), 0 0 6px rgba(184, 224, 187, 0.5);
}

.dashboard-card-header,
.dashboard-card-body {
    padding: 10px;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 500;
}

.dashboard-card-header {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.dashboard-card-body {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    position: relative;
}

.dashboard-card-text {
    font-size: x-large;
    font-weight: 600;
}

.critical-priority-header {
    background-color: #d9d9d9 !important;
}

.high-priority-header {
    background-color: #e6b8b7;
}

.medium-priority-header {
    background-color: #fcd5b4;
}

.low-priority-header {
    background-color: #d8e4bc;
}

.critical-priority-body {
    background-color: #f5f5f5;
}

.high-priority-body {
    background-color: #f2dcdb;
}

.medium-priority-body {
    background-color: #fde9d9;
}

.low-priority-body {
    background-color: #ebf1de;
}

.dashboard-card.clickable {
    cursor: pointer;
}

.dashboard-card.not-clickable {
    cursor: default;
    pointer-events: none;
}

@media (max-width: 1000px) {
    .dashboard-card {
        font-size: x-small;
    }

    .dashboard-card-text {
        font-size: medium;
    }
}

@media (max-width: 1024px) {
    .dashboard-card {
        flex: 1 1 calc(33.33% - 20px);
    }
}

@media (max-width: 768px) {
    .dashboard-card {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .dashboard-card {
        flex: 1 1 100%;
    }

    .dashboard-card-header,
    .dashboard-card-body {
        padding: 5px;
    }

    .dashboard-card-header {
        font-size: 1em;
    }

    .dashboard-card-body {
        font-size: 0.9em;
    }
}