.card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    min-height: 0;
    /* Flexible height for dashboard grid and full page views */
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--text-secondary);
}

.header {
    padding: 1rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.iconBtn {
    padding: 0.4rem;
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.iconBtn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    position: relative;
}

/* Context Menu Styles */
.contextMenu {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 9999;
    animation: fadeIn 0.1s ease-out;
}

.menuItem {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.menuItem:hover {
    background-color: var(--bg-tertiary);
    color: var(--accent-primary);
}

.menuDivider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.4rem 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}