/* Global Styles */
:root {
    --bs-dark-rgb: 18, 20, 22;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: rgba(var(--bs-dark-rgb), 1);
}

main {
    flex: 1;
}

/* Card styles */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Dashboard grid styling */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-normal {
    background-color: var(--bs-success);
}

.status-warning {
    background-color: var(--bs-warning);
}

.status-critical {
    background-color: var(--bs-danger);
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

.pulse-animation {
    animation: pulse 1.5s infinite;
}

/* Security alerts styling */
.alert-security {
    border-left: 4px solid var(--bs-danger);
}

/* Transaction list custom styles */
.transaction-item {
    transition: background-color 0.2s;
    border-left: 3px solid transparent;
}

.transaction-item:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.transaction-item.suspicious {
    border-left-color: var(--bs-warning);
}

.transaction-item.malicious {
    border-left-color: var(--bs-danger);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Attack simulation styles */
.simulation-container {
    position: relative;
    margin: 20px 0;
}

.node {
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bs-secondary);
    line-height: 60px;
    text-align: center;
    margin: 5px;
    transition: all 0.3s ease;
}

.node.malicious {
    background-color: var(--bs-danger);
}

.node.victim {
    background-color: var(--bs-warning);
}

/* Responsive tables */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}
